InstanceCloneProps
Properties for defining a InstanceClone
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-instanceclone
Initializer
using AlibabaCloud.SDK.ROS.CDK.Ecs;
new InstanceCloneProps {
object SourceInstanceId,
object BackendServerWeight = null,
object DeletionProtection = null,
object Description = null,
object DiskMappings = null,
object ImageId = null,
object InstanceChargeType = null,
object InstanceName = null,
object InternetMaxBandwidthIn = null,
object KeyPairName = null,
object LoadBalancerIdToAttach = null,
object Password = null,
object Period = null,
object RamRoleName = null,
object ResourceGroupId = null,
object SecurityGroupId = null,
object SpotPriceLimit = null,
object SpotStrategy = null,
TagsProperty[] Tags = null,
object ZoneId = null
};
Properties
Name | Type | Description |
---|---|---|
SourceInstanceId |
object |
Property sourceInstanceId: Source ecs instance used to copy properties to clone new ecs instance. |
BackendServerWeight |
object |
Property backendServerWeight: The weight of backend server of load balancer. |
DeletionProtection |
object |
Property deletionProtection: Whether an instance can be released manually through the console or API, deletion protection only support postPaid instance. |
Description |
object |
Property description: Description of the instance, [2, 256] characters. |
DiskMappings |
object |
Property diskMappings: Disk mappings to attach to instance. |
ImageId |
object |
Property imageId: Image ID to create ecs instance. |
InstanceChargeType |
object |
Property instanceChargeType: Instance Charge type, allowed value: Prepaid and Postpaid. |
InstanceName |
object |
Property instanceName: Display name of the instance, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'. |
InternetMaxBandwidthIn |
object |
Property internetMaxBandwidthIn: Max internet out band width setting, unit in Mbps(Mega bit per second). |
KeyPairName |
object |
Property keyPairName: SSH key pair name. |
LoadBalancerIdToAttach |
object |
Property loadBalancerIdToAttach: After the instance is created. |
Password |
object |
Property password: Password of created ecs instance. |
Period |
object |
Property period: Prepaid time period. |
RamRoleName |
object |
Property ramRoleName: Instance RAM role name. |
ResourceGroupId |
object |
Property resourceGroupId: Resource group id. |
SecurityGroupId |
object |
Property securityGroupId: Security group to create ecs instance. |
SpotPriceLimit |
object |
Property spotPriceLimit: The hourly price threshold of a instance, and it takes effect only when parameter InstanceChargeType is PostPaid. |
SpotStrategy |
object |
Property spotStrategy: The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter InstanceChargeType is PostPaid. |
Tags |
TagsProperty[] |
Property tags: Tags to attach to instance. |
ZoneId |
object |
Property zoneId: The ID of the zone to which the instance belongs. |
SourceInstanceId
Required
public object SourceInstanceId { get; set; }
- Type: object
Property sourceInstanceId: Source ecs instance used to copy properties to clone new ecs instance.
It will copy the InstanceType, ImageId, InternetChargeType, InternetMaxBandwidthIn, InternetMaxBandwidthOut and the system disk and data disk configurations. If the instance network is VPC, it will also clone the relative properties. If specified instance with more than one security group, it will use the first security group to create instance. you can also specify the SecurityGroupId to override it.
BackendServerWeight
Optional
public object BackendServerWeight { get; set; }
- Type: object
Property backendServerWeight: The weight of backend server of load balancer.
From 0 to 100, 0 means offline. Default is 100.
DeletionProtection
Optional
public object DeletionProtection { get; set; }
- Type: object
Property deletionProtection: Whether an instance can be released manually through the console or API, deletion protection only support postPaid instance.
Description
Optional
public object Description { get; set; }
- Type: object
Property description: Description of the instance, [2, 256] characters.
Do not fill or empty, the default is empty.
DiskMappings
Optional
public object DiskMappings { get; set; }
- Type: object
Property diskMappings: Disk mappings to attach to instance.
Max support 16 disks. If the image contains a data disk, you can specify other parameters of the data disk via the same value of parameter "Device". If parameter "Category" is not specified, it will be cloud_efficiency instead of "Category" of data disk in the image.
ImageId
Optional
public object ImageId { get; set; }
- Type: object
Property imageId: Image ID to create ecs instance.
InstanceChargeType
Optional
public object InstanceChargeType { get; set; }
- Type: object
Property instanceChargeType: Instance Charge type, allowed value: Prepaid and Postpaid.
If specified Prepaid, please ensure you have sufficient balance in your account. Or instance creation will be failure. Default value is Postpaid.
InstanceName
Optional
public object InstanceName { get; set; }
- Type: object
Property instanceName: Display name of the instance, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.
InternetMaxBandwidthIn
Optional
public object InternetMaxBandwidthIn { get; set; }
- Type: object
Property internetMaxBandwidthIn: Max internet out band width setting, unit in Mbps(Mega bit per second).
The range is [0,200], default is 200 Mbps.
KeyPairName
Optional
public object KeyPairName { get; set; }
- Type: object
Property keyPairName: SSH key pair name.
LoadBalancerIdToAttach
Optional
public object LoadBalancerIdToAttach { get; set; }
- Type: object
Property loadBalancerIdToAttach: After the instance is created.
Automatic attach it to the load balancer.
Password
Optional
public object Password { get; set; }
- Type: object
Property password: Password of created ecs instance.
Must contain at least 3 types of special character, lower character, upper character, number.
Period
Optional
public object Period { get; set; }
- Type: object
Property period: Prepaid time period.
Unit is month, it could be from 1 to 9 or 12, 24, 36, 48, 60. Default value is 1.
RamRoleName
Optional
public object RamRoleName { get; set; }
- Type: object
Property ramRoleName: Instance RAM role name.
The name is provided and maintained by Resource Access Management (RAM) and can be queried using ListRoles. For more information, see RAM API CreateRole and ListRoles.
ResourceGroupId
Optional
public object ResourceGroupId { get; set; }
- Type: object
Property resourceGroupId: Resource group id.
SecurityGroupId
Optional
public object SecurityGroupId { get; set; }
- Type: object
Property securityGroupId: Security group to create ecs instance.
For classic instance need the security group not belong to VPC, for VPC instance, please make sure the security group belong to specified VPC.
SpotPriceLimit
Optional
public object SpotPriceLimit { get; set; }
- Type: object
Property spotPriceLimit: The hourly price threshold of a instance, and it takes effect only when parameter InstanceChargeType is PostPaid.
Three decimals is allowed at most.
SpotStrategy
Optional
public object SpotStrategy { get; set; }
- Type: object
Property spotStrategy: The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter InstanceChargeType is PostPaid.
Value range: "NoSpot: A regular Pay-As-You-Go instance", "SpotWithPriceLimit: A price threshold for a spot instance, ""SpotAsPriceGo: A price that is based on the highest Pay-As-You-Go instance. "Default value: NoSpot.
Tags
Optional
public TagsProperty[] Tags { get; set; }
- Type: TagsProperty[]
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.
ZoneId
Optional
public object ZoneId { get; set; }
- Type: object
Property zoneId: The ID of the zone to which the instance belongs.
For more information, call the DescribeZones operation to query the most recent zone list. Default value is empty, which means random selection.