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
1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 | |