list_operations
¶
list_operations(
*,
config_overrides: Optional[ServiceDiscoveryClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
filters: Optional[OperationFilters] = None,
) -> ListOperationsResponse
Lists operations that match the criteria that you specify.
Parameters:
-
next_token(Optional[NextToken], default:None) –For the first
ListOperationsrequest, omit this value.If the response contains
NextToken, submit anotherListOperationsrequest to get the next group of results. Specify the value ofNextTokenfrom the previous response in the next request.Cloud Map gets
MaxResultsoperations and then filters them based on the specified criteria. It's possible that no operations in the firstMaxResultsoperations matched the specified criteria but that subsequent groups ofMaxResultsoperations do contain operations that match the criteria. -
max_results(Optional[MaxResults], default:None) –The maximum number of items that you want Cloud Map to return in the response to a
ListOperationsrequest. If you don't specify a value forMaxResults, Cloud Map returns up to 100 operations. -
filters(Optional[OperationFilters], default:None) –A complex type that contains specifications for the operations that you want to list, for example, operations that you started between a specified start date and end date.
If you specify more than one filter, an operation must match all filters to be returned by
ListOperations.
Raises:
-
InvalidInput–One or more specified values aren't valid. For example, a required value might be missing, a numeric value might be outside the allowed range, or a string value might exceed length constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
ListOperations Example This example gets the operations that have a STATUS of either PENDING or SUCCESS.
>>> client.list_operations(filters=[{'Name': 'STATUS', 'Condition': 'IN', 'Values': ['PENDING', 'SUCCESS']}])
Source code in docs_src/capo_servicediscovery/_services/service_discovery.py
1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 | |