SnapshotsProps
Properties for defining a Snapshots
.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-ecs-snapshots
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs/datasource"
&datasource.SnapshotsProps {
Category: interface{},
DiskId: interface{},
Encrypted: interface{},
Filters: interface{},
InstanceId: interface{},
KmsKeyId: interface{},
RefreshOptions: interface{},
ResourceGroupId: interface{},
SnapshotIds: interface{},
SnapshotLinkId: interface{},
SnapshotName: interface{},
SnapshotType: interface{},
SourceDiskType: interface{},
Status: interface{},
Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.RosSnapshots.TagsProperty,
Usage: interface{},
}
Properties
Name | Type | Description |
---|---|---|
Category |
interface{} |
Property category: The category of the snapshot. |
DiskId |
interface{} |
Property diskId: The ID of the disk. |
Encrypted |
interface{} |
Property encrypted: Specifies whether the snapshot is encrypted. |
Filters |
interface{} |
Property filters: Filter value when querying resources. |
InstanceId |
interface{} |
Property instanceId: The ID of the instance. |
KmsKeyId |
interface{} |
Property kmsKeyId: The ID of the Key Management Service (KMS) key used by the data disk. |
RefreshOptions |
interface{} |
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. |
ResourceGroupId |
interface{} |
Property resourceGroupId: The ID of the resource group to which the snapshot belongs. |
SnapshotIds |
interface{} |
Property snapshotIds: The IDs of snapshots. |
SnapshotLinkId |
interface{} |
Property snapshotLinkId: The ID of the snapshot chain. |
SnapshotName |
interface{} |
Property snapshotName: The name of the snapshot. |
SnapshotType |
interface{} |
Property snapshotType: Specifies whether the snapshot has been used to create images or disks. |
SourceDiskType |
interface{} |
Property sourceDiskType: The type of the source disk for which the snapshot was created. |
Status |
interface{} |
Property status: The status of the snapshot. |
Tags |
*[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.RosSnapshots.TagsProperty |
Property tags: Tags of snapshot. |
Usage |
interface{} |
Property usage: The type of the snapshot. |
Category
Optional
Category interface{}
- Type: interface{}
Property category: The category of the snapshot.
Valid values: Standard: normal snapshot Flash: local snapshot The local snapshot feature is replaced by the instant access feature. When you specify this parameter, take note of the following items: If you have used local snapshots before December 14, 2020, you can use this parameter. If you have not used local snapshots before December 14, 2020, you cannot use this parameter. Note This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility.
DiskId
Optional
DiskId interface{}
- Type: interface{}
Property diskId: The ID of the disk.
Encrypted
Optional
Encrypted interface{}
- Type: interface{}
Property encrypted: Specifies whether the snapshot is encrypted.
Default value: false.
Filters
Optional
Filters interface{}
- Type: interface{}
Property filters: Filter value when querying resources.
InstanceId
Optional
InstanceId interface{}
- Type: interface{}
Property instanceId: The ID of the instance.
KmsKeyId
Optional
KmsKeyId interface{}
- Type: interface{}
Property kmsKeyId: The ID of the Key Management Service (KMS) key used by the data disk.
RefreshOptions
Optional
RefreshOptions interface{}
- Type: interface{}
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Valid values:
- Never: Never refresh the datasource resource when the stack is updated.
- Always: Always refresh the datasource resource when the stack is updated. Default is Never.
ResourceGroupId
Optional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: The ID of the resource group to which the snapshot belongs.
If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response.
SnapshotIds
Optional
SnapshotIds interface{}
- Type: interface{}
Property snapshotIds: The IDs of snapshots.
The value can be a JSON array that consists of up to 100 snapshot IDs. Separate multiple snapshot IDs with commas (,).
SnapshotLinkId
Optional
SnapshotLinkId interface{}
- Type: interface{}
Property snapshotLinkId: The ID of the snapshot chain.
SnapshotName
Optional
SnapshotName interface{}
- Type: interface{}
Property snapshotName: The name of the snapshot.
SnapshotType
Optional
SnapshotType interface{}
- Type: interface{}
Property snapshotType: Specifies whether the snapshot has been used to create images or disks.
Valid values: auto: automatic snapshot user: manual snapshot all: all snapshot types
SourceDiskType
Optional
SourceDiskType interface{}
- Type: interface{}
Property sourceDiskType: The type of the source disk for which the snapshot was created.
Valid values: System: system disk Data: data disk Note These values are case-insensitive.
Status
Optional
Status interface{}
- Type: interface{}
Property status: The status of the snapshot.
Default value: all. Valid values: progressing: The snapshot is being created. accomplished: The snapshot is created. failed: The snapshot fails to be created. all: all snapshot statuses.
Tags
Optional
Tags *[]TagsProperty
- Type: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.RosSnapshots.TagsProperty
Property tags: Tags of snapshot.
Usage
Optional
Usage interface{}
- Type: interface{}
Property usage: The type of the snapshot.
Default value: all. Valid values: image: The snapshot has been used to create custom images. disk: The snapshot has been used to create disks. image_disk: The snapshot has been used to create custom images and data disks. none: The snapshot has not been used to create custom images or disks.