Get Service
| servicediscovery_get_service | R Documentation | 
Gets the settings for a specified service¶
Description¶
Gets the settings for a specified service.
Usage¶
servicediscovery_get_service(Id)
Arguments¶
| Id | [required] The ID of the service that you want to get settings for. | 
Value¶
A list with the following syntax:
list(
  Service = list(
    Id = "string",
    Arn = "string",
    Name = "string",
    NamespaceId = "string",
    Description = "string",
    InstanceCount = 123,
    DnsConfig = list(
      NamespaceId = "string",
      RoutingPolicy = "MULTIVALUE"|"WEIGHTED",
      DnsRecords = list(
        list(
          Type = "SRV"|"A"|"AAAA"|"CNAME",
          TTL = 123
        )
      )
    ),
    Type = "HTTP"|"DNS_HTTP"|"DNS",
    HealthCheckConfig = list(
      Type = "HTTP"|"HTTPS"|"TCP",
      ResourcePath = "string",
      FailureThreshold = 123
    ),
    HealthCheckCustomConfig = list(
      FailureThreshold = 123
    ),
    CreateDate = as.POSIXct(
      "2015-01-01"
    ),
    CreatorRequestId = "string"
  )
)
Request syntax¶
svc$get_service(
  Id = "string"
)
Examples¶
## Not run: 
# This example gets the settings for a specified service.
svc$get_service(
  Id = "srv-e4anhexample0004"
)
## End(Not run)