list_services
¶
list_services(
*,
config_overrides: Optional[ServiceDiscoveryClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
filters: Optional[ServiceFilters] = None,
) -> ListServicesResponse
Lists summary information for all the services that are associated with one or more namespaces.
Parameters:
-
next_token(Optional[NextToken], default:None) –For the first
ListServicesrequest, omit this value.If the response contains
NextToken, submit anotherListServicesrequest to get the next group of results. Specify the value ofNextTokenfrom the previous response in the next request.Cloud Map gets
MaxResultsservices and then filters them based on the specified criteria. It's possible that no services in the firstMaxResultsservices matched the specified criteria but that subsequent groups ofMaxResultsservices do contain services that match the criteria. -
max_results(Optional[MaxResults], default:None) –The maximum number of services that you want Cloud Map to return in the response to a
ListServicesrequest. If you don't specify a value forMaxResults, Cloud Map returns up to 100 services. -
filters(Optional[ServiceFilters], default:None) –A complex type that contains specifications for the namespaces that you want to list services for.
If you specify more than one filter, an operation must match all filters to be returned by
ListServices.
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:
Example: List services Example: List services
Source code in docs_src/capo_servicediscovery/_services/service_discovery.py
1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 | |