SnapshotProps
Properties for defining a Snapshot.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-snapshot
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.SnapshotProps {
DiskId: interface{},
Description: interface{},
InstantAccess: interface{},
InstantAccessRetentionDays: interface{},
ResourceGroupId: interface{},
RetentionDays: interface{},
SnapshotName: interface{},
Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.RosSnapshot.TagsProperty,
Timeout: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
DiskId |
interface{} |
Property diskId: Indicates the ID of the specified disk. |
Description |
interface{} |
Property description: The description of a snapshot can be 2 to 256 characters in length and cannot begin with http:\/\/ or https:\/\/. |
InstantAccess |
interface{} |
Property instantAccess: Specifies whether to enable the instant access feature. |
InstantAccessRetentionDays |
interface{} |
Property instantAccessRetentionDays: Specifies the retention period of the instant access feature. |
ResourceGroupId |
interface{} |
Property resourceGroupId: Resource group id. |
RetentionDays |
interface{} |
Property retentionDays: Set the retention period of a snapshot in days. |
SnapshotName |
interface{} |
Property snapshotName: The name of the snapshot, [2, 128] English or Chinese characters. |
Tags |
*[]TagsProperty |
Property tags: Tags to attach to instance. |
Timeout |
interface{} |
Property timeout: The number of minutes to wait for create snapshot. |
DiskIdRequired
DiskId interface{}
- Type: interface{}
Property diskId: Indicates the ID of the specified disk.
DescriptionOptional
Description interface{}
- Type: interface{}
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.
InstantAccessOptional
InstantAccess interface{}
- Type: interface{}
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.
InstantAccessRetentionDaysOptional
InstantAccessRetentionDays interface{}
- Type: interface{}
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.
ResourceGroupIdOptional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: Resource group id.
RetentionDaysOptional
RetentionDays interface{}
- Type: interface{}
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.
SnapshotNameOptional
SnapshotName interface{}
- Type: interface{}
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://.
TagsOptional
Tags *[]TagsProperty
- 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.
TimeoutOptional
Timeout interface{}
- Type: interface{}
Property timeout: The number of minutes to wait for create snapshot.