SnapshotProps
Properties for defining a Snapshot
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-snapshot
Initializer
using AlibabaCloud.SDK.ROS.CDK.Ecs;
new SnapshotProps {
object DiskId,
object Description = null,
object InstantAccess = null,
object InstantAccessRetentionDays = null,
object ResourceGroupId = null,
object RetentionDays = null,
object SnapshotName = null,
TagsProperty[] Tags = null,
object Timeout = null
};
Properties
Name | Type | Description |
---|---|---|
DiskId |
object |
Property diskId: Indicates the ID of the specified disk. |
Description |
object |
Property description: The description of a snapshot can be 2 to 256 characters in length and cannot begin with http:\/\/ or https:\/\/. |
InstantAccess |
object |
Property instantAccess: Specifies whether to enable the instant access feature. |
InstantAccessRetentionDays |
object |
Property instantAccessRetentionDays: Specifies the retention period of the instant access feature. |
ResourceGroupId |
object |
Property resourceGroupId: Resource group id. |
RetentionDays |
object |
Property retentionDays: Set the retention period of a snapshot in days. |
SnapshotName |
object |
Property snapshotName: The name of the snapshot, [2, 128] English or Chinese characters. |
Tags |
TagsProperty[] |
Property tags: Tags to attach to instance. |
Timeout |
object |
Property timeout: The number of minutes to wait for create snapshot. |
DiskId
Required
public object DiskId { get; set; }
- Type: object
Property diskId: Indicates the ID of the specified disk.
Description
Optional
public object Description { get; set; }
- Type: object
Property description: The description of a snapshot can be 2 to 256 characters in length and cannot begin with http:\/\/ or https:\/\/.
The description will appear on the console. By default, the value is zero.
InstantAccess
Optional
public object InstantAccess { get; set; }
- Type: object
Property instantAccess: Specifies whether to enable the instant access feature.
Valid values: true: enables the instant access feature. This feature can be enabled only for enhanced SSDs (ESSDs) false: disables the instant access feature. If InstantAccess is set to false, normal snapshots are created. Default value: false. Note This parameter and the Category parameter cannot be specified at the same time. For more information, see the "Description" section in this topic.
InstantAccessRetentionDays
Optional
public object InstantAccessRetentionDays { get; set; }
- Type: object
Property instantAccessRetentionDays: Specifies the retention period of the instant access feature.
After the retention period ends, the snapshot is automatically released. This parameter takes effect only when InstantAccess is set to true. Unit: days. Valid values: 1 to 65535. By default, the value of this parameter is the same as that of RetentionDays.
ResourceGroupId
Optional
public object ResourceGroupId { get; set; }
- Type: object
Property resourceGroupId: Resource group id.
RetentionDays
Optional
public object RetentionDays { get; set; }
- Type: object
Property retentionDays: Set the retention period of a snapshot in days.
The snapshot will be automatically released after the retention period expires. The value ranges from 1 to 65536.
SnapshotName
Optional
public object SnapshotName { get; set; }
- Type: object
Property snapshotName: The name of the snapshot, [2, 128] English or Chinese characters.
It must begin with an uppercase/lowercase letter or a Chinese character, and may contain numbers, '_' or '-'. It cannot begin with http:// or https://.
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.
Timeout
Optional
public object Timeout { get; set; }
- Type: object
Property timeout: The number of minutes to wait for create snapshot.