CmdID / aws / aws deploy
aws deploy batch-get-on-premises-instances
Gets information about one or more on-premises instances. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To get information about one or more on-premises instances
The following batch-get-on-premises-instances example gets information about two on-premises instances.
aws deploy batch-get-on-premises-instances --instance-names AssetTag12010298EX AssetTag23121309EXIdentify--instance-namesThe names of the on-premises instances about which to get information.Its output
{
"instanceInfos": [
{
"iamUserArn": "arn:aws:iam::123456789012:user/AWS/CodeDeploy/AssetTag12010298EX",
"tags": [
{
"Value": "CodeDeployDemo-OnPrem",
"Key": "Name"
}
],
"instanceName": "AssetTag12010298EX",
"registerTime": 1425579465.228,
"instanceArn": "arn:aws:codedeploy:us-west-2:123456789012:instance/AssetTag12010298EX_4IwLNI2Alh"
},
{
"iamUserArn": "arn:aws:iam::123456789012:user/AWS/CodeDeploy/AssetTag23121309EX",
"tags": [
{
"Value": "CodeDeployDemo-OnPrem",
"Key": "Name"
}
],
"instanceName": "AssetTag23121309EX",
"registerTime": 1425595585.988,
"instanceArn": "arn:aws:codedeploy:us-west-2:80398EXAMPLE:instance/AssetTag23121309EX_PomUy64Was"
}
]
}For more information, see Get information about multiple on-premises instances in the AWS CodeDeploy User Guide.
Options
--instance-namesThe names of the on-premises instances about which to get information.