CodeDeploy.Client.
list_on_premises_instances
(**kwargs)¶Gets a list of names for one or more on-premises instances.
Unless otherwise specified, both registered and deregistered on-premises instance names are listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.
See also: AWS API Documentation
Request Syntax
response = client.list_on_premises_instances(
registrationStatus='Registered'|'Deregistered',
tagFilters=[
{
'Key': 'string',
'Value': 'string',
'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE'
},
],
nextToken='string'
)
The registration status of the on-premises instances:
Deregistered
: Include deregistered on-premises instances in the resulting list.Registered
: Include registered on-premises instances in the resulting list.The on-premises instance tags that are used to restrict the on-premises instance names returned.
Information about an on-premises instance tag filter.
The on-premises instance tag filter key.
The on-premises instance tag filter value.
The on-premises instance tag filter type:
dict
Response Syntax
{
'instanceNames': [
'string',
],
'nextToken': 'string'
}
Response Structure
(dict) --
Represents the output of the list on-premises instances operation.
instanceNames (list) --
The list of matching on-premises instance names.
nextToken (string) --
If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list on-premises instances call to return the next set of on-premises instances in the list.
Exceptions
CodeDeploy.Client.exceptions.InvalidRegistrationStatusException
CodeDeploy.Client.exceptions.InvalidTagFilterException
CodeDeploy.Client.exceptions.InvalidNextTokenException