Skip to content

List Services

servicediscovery_list_services R Documentation

Lists summary information for all the services that are associated with one or more namespaces

Description

Lists summary information for all the services that are associated with one or more namespaces.

Usage

servicediscovery_list_services(NextToken, MaxResults, Filters)

Arguments

NextToken

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.

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.

MaxResults

The maximum number of services that you want Cloud Map to return in the response to a list_services request. If you don't specify a value for MaxResults, Cloud Map returns up to 100 services.

Filters

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.

Value

A list with the following syntax:

list(
  Services = list(
    list(
      Id = "string",
      Arn = "string",
      Name = "string",
      Type = "HTTP"|"DNS_HTTP"|"DNS",
      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"
)

Request syntax

svc$list_services(
  NextToken = "string",
  MaxResults = 123,
  Filters = list(
    list(
      Name = "NAMESPACE_ID",
      Values = list(
        "string"
      ),
      Condition = "EQ"|"IN"|"BETWEEN"|"BEGINS_WITH"
    )
  )
)

Examples

## Not run: 
# Example: List services
svc$list_services()

## End(Not run)