Get Instances Health Status
| servicediscovery_get_instances_health_status | R Documentation |
Gets the current health status (Healthy, Unhealthy, or Unknown) of one or more instances that are associated with a specified service¶
Description¶
Gets the current health status (Healthy, Unhealthy, or Unknown) of
one or more instances that are associated with a specified service.
There's a brief delay between when you register an instance and when the health status for the instance is available.
Usage¶
servicediscovery_get_instances_health_status(ServiceId, Instances,
MaxResults, NextToken)
Arguments¶
ServiceId |
[required] The ID or Amazon Resource Name (ARN) of the service that the instance is associated with. For services created in a shared namespace, specify the service ARN. For more information about shared namespaces, see Cross-account Cloud Map namespace sharing in the Cloud Map Developer Guide. |
Instances |
An array that contains the IDs of all the instances that you want to get the health status for. If you omit To get the IDs for the instances that you've registered by using a
specified service, submit a |
MaxResults |
The maximum number of instances that you want Cloud Map to return
in the response to a |
NextToken |
For the first If more than |
Value¶
A list with the following syntax:
list(
Status = list(
"HEALTHY"|"UNHEALTHY"|"UNKNOWN"
),
NextToken = "string"
)
Request syntax¶
svc$get_instances_health_status(
ServiceId = "string",
Instances = list(
"string"
),
MaxResults = 123,
NextToken = "string"
)
Examples¶
## Not run:
# This example gets the current health status of one or more instances
# that are associate with a specified service.
svc$get_instances_health_status(
ServiceId = "srv-e4anhexample0004"
)
## End(Not run)