CodeDeploy.Client.
batch_get_on_premises_instances
(**kwargs)¶Gets information about one or more on-premises instances. The maximum number of on-premises instances that can be returned is 25.
See also: AWS API Documentation
Request Syntax
response = client.batch_get_on_premises_instances(
instanceNames=[
'string',
]
)
[REQUIRED]
The names of the on-premises instances about which to get information. The maximum number of instance names you can specify is 25.
{
'instanceInfos': [
{
'instanceName': 'string',
'iamSessionArn': 'string',
'iamUserArn': 'string',
'instanceArn': 'string',
'registerTime': datetime(2015, 1, 1),
'deregisterTime': datetime(2015, 1, 1),
'tags': [
{
'Key': 'string',
'Value': 'string'
},
]
},
]
}
Response Structure
Represents the output of a BatchGetOnPremisesInstances
operation.
Information about the on-premises instances.
Information about an on-premises instance.
The name of the on-premises instance.
The ARN of the IAM session associated with the on-premises instance.
The IAM user ARN associated with the on-premises instance.
The ARN of the on-premises instance.
The time at which the on-premises instance was registered.
If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
The tags currently associated with the on-premises instance.
Information about a tag.
The tag's key.
The tag's value.
Exceptions
CodeDeploy.Client.exceptions.InstanceNameRequiredException
CodeDeploy.Client.exceptions.InvalidInstanceNameException
CodeDeploy.Client.exceptions.BatchLimitExceededException