Get Instance
| servicediscovery_get_instance | R Documentation |
Gets information about a specified instance¶
Description¶
Gets information about a specified instance.
Usage¶
servicediscovery_get_instance(ServiceId, InstanceId)
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. |
InstanceId |
[required] The ID of the instance that you want to get information about. |
Value¶
A list with the following syntax:
list(
ResourceOwner = "string",
Instance = list(
Id = "string",
CreatorRequestId = "string",
Attributes = list(
"string"
),
CreatedByAccount = "string"
)
)
Request syntax¶
svc$get_instance(
ServiceId = "string",
InstanceId = "string"
)
Examples¶
## Not run:
# This example gets information about a specified instance.
svc$get_instance(
InstanceId = "i-abcd1234",
ServiceId = "srv-e4anhexample0004"
)
## End(Not run)