list_operations
async
¶
list_operations(
*,
config_overrides: Optional[AsyncServiceDiscoveryClientConfig] = 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.
>>> await client.list_operations(filters=[{'Name': 'STATUS', 'Condition': 'IN', 'Values': ['PENDING', 'SUCCESS']}])
Source code in docs_src/capo_servicediscovery/_services/async_service_discovery.py
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 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 | |