2015/07/09 - Amazon EC2 Container Service - 1 updated api methods
{'containerInstanceArn': 'string'}
Registers an Amazon EC2 instance into the specified cluster. This instance will become available to place containers on.
Request Syntax
client.register_container_instance( cluster='string', instanceIdentityDocument='string', instanceIdentityDocumentSignature='string', totalResources=[ { 'name': 'string', 'type': 'string', 'doubleValue': 123.0, 'longValue': 123, 'integerValue': 123, 'stringSetValue': [ 'string', ] }, ], versionInfo={ 'agentVersion': 'string', 'agentHash': 'string', 'dockerVersion': 'string' }, containerInstanceArn='string' )
string
The short name or full Amazon Resource Name (ARN) of the cluster that you want to register your container instance with. If you do not specify a cluster, the default cluster is assumed..
string
The instance identity document for the Amazon EC2 instance to register. This document can be found by running the following command from the instance: curl http://169.254.169.254/latest/dynamic/instance-identity/document/
string
The instance identity document signature for the Amazon EC2 instance to register. This signature can be found by running the following command from the instance: curl http://169.254.169.254/latest/dynamic/instance-identity/signature/
list
The resources available on the instance.
(dict) --
Describes the resources available for a container instance.
name (string) --
The name of the resource, such as CPU, MEMORY, PORTS, or a user-defined resource.
type (string) --
The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET.
doubleValue (float) --
When the doubleValue type is set, the value of the resource must be a double precision floating-point type.
longValue (integer) --
When the longValue type is set, the value of the resource must be an extended precision floating-point type.
integerValue (integer) --
When the integerValue type is set, the value of the resource must be an integer.
stringSetValue (list) --
When the stringSetValue type is set, the value of the resource must be a string type.
(string) --
dict
The version information for the Amazon ECS container agent and Docker daemon running on the container instance.
agentVersion (string) --
The version number of the Amazon ECS container agent.
agentHash (string) --
The Git commit hash for the Amazon ECS container agent build on the amazon-ecs-agent GitHub repository.
dockerVersion (string) --
The Docker version running on the container instance.
string
The Amazon Resource Name (ARN) of the container instance (if it was previously registered).
dict
Response Syntax
{ 'containerInstance': { 'containerInstanceArn': 'string', 'ec2InstanceId': 'string', 'versionInfo': { 'agentVersion': 'string', 'agentHash': 'string', 'dockerVersion': 'string' }, 'remainingResources': [ { 'name': 'string', 'type': 'string', 'doubleValue': 123.0, 'longValue': 123, 'integerValue': 123, 'stringSetValue': [ 'string', ] }, ], 'registeredResources': [ { 'name': 'string', 'type': 'string', 'doubleValue': 123.0, 'longValue': 123, 'integerValue': 123, 'stringSetValue': [ 'string', ] }, ], 'status': 'string', 'agentConnected': True|False, 'runningTasksCount': 123, 'pendingTasksCount': 123, 'agentUpdateStatus': 'PENDING'|'STAGING'|'STAGED'|'UPDATING'|'UPDATED'|'FAILED' } }
Response Structure
(dict) --
containerInstance (dict) --
An Amazon EC2 instance that is running the Amazon ECS agent and has been registered with a cluster.
containerInstanceArn (string) --
The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance UUID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_UUID.
ec2InstanceId (string) --
The Amazon EC2 instance ID of the container instance.
versionInfo (dict) --
The version information for the Amazon ECS container agent and Docker daemon running on the container instance.
agentVersion (string) --
The version number of the Amazon ECS container agent.
agentHash (string) --
The Git commit hash for the Amazon ECS container agent build on the amazon-ecs-agent GitHub repository.
dockerVersion (string) --
The Docker version running on the container instance.
remainingResources (list) --
The remaining resources of the container instance that are available for new tasks.
(dict) --
Describes the resources available for a container instance.
name (string) --
The name of the resource, such as CPU, MEMORY, PORTS, or a user-defined resource.
type (string) --
The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET.
doubleValue (float) --
When the doubleValue type is set, the value of the resource must be a double precision floating-point type.
longValue (integer) --
When the longValue type is set, the value of the resource must be an extended precision floating-point type.
integerValue (integer) --
When the integerValue type is set, the value of the resource must be an integer.
stringSetValue (list) --
When the stringSetValue type is set, the value of the resource must be a string type.
(string) --
registeredResources (list) --
The registered resources on the container instance that are in use by current tasks.
(dict) --
Describes the resources available for a container instance.
name (string) --
The name of the resource, such as CPU, MEMORY, PORTS, or a user-defined resource.
type (string) --
The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET.
doubleValue (float) --
When the doubleValue type is set, the value of the resource must be a double precision floating-point type.
longValue (integer) --
When the longValue type is set, the value of the resource must be an extended precision floating-point type.
integerValue (integer) --
When the integerValue type is set, the value of the resource must be an integer.
stringSetValue (list) --
When the stringSetValue type is set, the value of the resource must be a string type.
(string) --
status (string) --
The status of the container instance. The valid values are ACTIVE or INACTIVE. ACTIVE indicates that the container instance can accept tasks.
agentConnected (boolean) --
This parameter returns true if the agent is actually connected to Amazon ECS. Registered instances with an agent that may be unhealthy or stopped will return false, and instances without a connected agent cannot accept placement request.
runningTasksCount (integer) --
The number of tasks on the container instance that are in the RUNNING status.
pendingTasksCount (integer) --
The number of tasks on the container instance that are in the PENDING status.
agentUpdateStatus (string) --
The status of the most recent agent update. If an update has never been requested, this value is NULL.