Skip to content

ActivationProps

Properties for defining a Activation.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-activation

Initializer

using AlibabaCloud.SDK.ROS.CDK.Ecs;
new ActivationProps {
    object Description = null,
    object InstanceCount = null,
    object InstanceName = null,
    object IpAddressRange = null,
    TagsProperty[] Tags = null,
    object TimeToLiveInHours = null
};

Properties

Name Type Description
Description object Property description: The description of the activation code.
InstanceCount object Property instanceCount: The maximum number of times that you can use the activation code to register managed instances.
InstanceName object Property instanceName: The default instance name prefix.
IpAddressRange object Property ipAddressRange: The IP addresses of hosts that are allowed to use the activation code.
Tags TagsProperty[] Property tags: Tags to attach to instance.
TimeToLiveInHours object Property timeToLiveInHours: The validity period of the activation code.

DescriptionOptional

public object Description { get; set; }
  • Type: object

Property description: The description of the activation code.

It must be 1 to 100 characters in length.


InstanceCountOptional

public object InstanceCount { get; set; }
  • Type: object

Property instanceCount: The maximum number of times that you can use the activation code to register managed instances.

Valid values: 1 to 1000.Default value: 10.


InstanceNameOptional

public object InstanceName { get; set; }
  • Type: object

Property instanceName: The default instance name prefix.

The instance name prefix must be 2 to 50 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, periods (.), underscores (_), hyphens (-), and colons (:). If you use the activation code that is created by calling this operation (CreateActivation) to register managed instances, the instances are assigned sequential names that are prefixed by the value of this parameter. You can also specify a new instance name to replace the assigned sequential name when you register a managed instance.If you specify InstanceName when you register a managed instance, an instance name in theformat of - is generated. The number of digits in the value isdetermined by that in the InstanceCount value. Example: 001. If you do not specify InstanceName, the hostname (Hostname) is used as the instance name.


IpAddressRangeOptional

public object IpAddressRange { get; set; }
  • Type: object

Property ipAddressRange: The IP addresses of hosts that are allowed to use the activation code.

The value can be IPv4 addresses, IPv6 addresses, or CIDR blocks.


TagsOptional

public TagsProperty[] Tags { get; set; }

Property tags: Tags to attach to instance.

Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.


TimeToLiveInHoursOptional

public object TimeToLiveInHours { get; set; }
  • Type: object

Property timeToLiveInHours: The validity period of the activation code.

The activation code can no longer be used to register instances after the period ends. Unit: hours. Valid values: 1 to 876576, which represents a range of time from 1 hour to 100 years.Default value: 4.