list_services
async
¶
list_services(
*,
config_overrides: Optional[AsyncServiceDiscoveryClientConfig] = 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/async_service_discovery.py
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 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 | |