ALIYUN::ECS::Activation is used to create an activation code.
The activation code is used to register servers that are not provided by Alibaba Cloud as Alibaba Cloud managed instances.
Syntax
{
"Type": "ALIYUN::ECS::Activation",
"Properties": {
"InstanceName": String,
"InstanceCount": Integer,
"Description": String,
"TimeToLiveInHours": Integer,
"IpAddressRange": String,
"Tags": List
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
InstanceName | String | No | No | The default prefix of the instance name. | The prefix must be 2 to 50 characters in length, and can contain only periods (.), underscores (_), hyphens (-), and colons (:). It must start with a letter and cannot start with a special character or digit. It cannot start with a If you use the activation code created by calling the CreateActivation operation to register managed instances, the instances are assigned sequential names that are prefixed by the value of this property. You can also specify a new instance name to override the assigned sequential name when you register a managed instance. If InstanceName is specified when you register a managed instance, an instance name in the format of |
InstanceCount | Integer | No | No | The maximum number of times that you can use the activation code to register managed instances. | Valid values: 1 to 1000. Default value: 10. |
Description | String | No | No | The description of the activation code. | The description must be 1 to 100 characters in length. |
TimeToLiveInHours | Integer | No | No | The validity period of the activation code. | The activation code cannot be used to register a new instance after the validity period expires. Unit: hour. Valid values: 1 to 876576. This represents a range of time from 1 hour to 100 years. Default value: 4. |
IpAddressRange | String | No | No | The IP addresses of hosts that are allowed to use the activation code. | The value can be IPv4 addresses, IPv6 addresses, or CIDR blocks. |
Tags | List | No | Yes | The tags. | You can specify 1 to 20 tags. For more information, see Tags properties. |
Tags syntax
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags properties
Property | Type | Required | Editable | Description | Constraint |
Value | String | No | No | The value of the tag to add to the activation code. | The tag value can be an empty string. |
Key | String | Yes | No | The key of the tag to add to the activation code. | If the tag value is passed, the tag key cannot be an empty string. |
Return values
Fn::GetAtt
DeregisteredCount: the number of deregistered instances.
ActivationId: the ID of the activation code.
RegisteredCount: the number of registered instances.
ActivationCode: the value of the activation code.