Lists summary information for all the services that are associated with one or more specified namespaces.
servicediscovery_list_services(NextToken, MaxResults, Filters)
For the first list_services
request,
omit this value.
If the response contains NextToken
, submit another
list_services
request to get the
next group of results. Specify the value of NextToken
from the
previous response in the next request.
AWS Cloud Map gets MaxResults
services and then filters them based on
the specified criteria. It's possible that no services in the first
MaxResults
services matched the specified criteria but that subsequent
groups of MaxResults
services do contain services that match the
criteria.
The maximum number of services that you want AWS Cloud Map to return in
the response to a list_services
request. If you don't specify a value for MaxResults
, AWS Cloud Map
returns up to 100 services.
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 list_services
.
A list with the following syntax:
list( Services = list( list( Id = "string", Arn = "string", Name = "string", Description = "string", InstanceCount = 123, DnsConfig = list( NamespaceId = "string", RoutingPolicy = "MULTIVALUE"|"WEIGHTED", DnsRecords = list( list( Type = "SRV"|"A"|"AAAA"|"CNAME", TTL = 123 ) ) ), HealthCheckConfig = list( Type = "HTTP"|"HTTPS"|"TCP", ResourcePath = "string", FailureThreshold = 123 ), HealthCheckCustomConfig = list( FailureThreshold = 123 ), CreateDate = as.POSIXct( "2015-01-01" ) ) ), NextToken = "string" )
svc$list_services( NextToken = "string", MaxResults = 123, Filters = list( list( Name = "NAMESPACE_ID", Values = list( "string" ), Condition = "EQ"|"IN"|"BETWEEN" ) ) )
# NOT RUN {
# Example: List services
svc$list_services()
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab