Gets the current health status (Healthy, Unhealthy, or Unknown) of one or more instances that are associated with a specified service
Source:R/servicediscovery_operations.R
servicediscovery_get_instances_health_status.RdGets the current health status (Healthy, Unhealthy, or Unknown) of one or more instances that are associated with a specified service.
See https://www.paws-r-sdk.com/docs/servicediscovery_get_instances_health_status/ for full documentation.
Usage
servicediscovery_get_instances_health_status(
ServiceId,
Instances = NULL,
MaxResults = NULL,
NextToken = NULL
)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
Instances, Cloud Map returns the health status for all the instances that are associated with the specified service.To get the IDs for the instances that you've registered by using a specified service, submit a
list_instancesrequest.- MaxResults
The maximum number of instances that you want Cloud Map to return in the response to a
get_instances_health_statusrequest. If you don't specify a value forMaxResults, Cloud Map returns up to 100 instances.- NextToken
For the first
get_instances_health_statusrequest, omit this value.If more than
MaxResultsinstances match the specified criteria, you can submit anotherget_instances_health_statusrequest to get the next group of results. Specify the value ofNextTokenfrom the previous response in the next request.