Skip to content

DisksProps

Properties for defining a Disks.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-ecs-disks

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs/datasource"
&datasource.DisksProps {
    AdditionalAttributes: interface{},
    AutoSnapshotPolicyId: interface{},
    Category: interface{},
    DeleteAutoSnapshot: interface{},
    DeleteWithInstance: interface{},
    DiskChargeType: interface{},
    DiskIds: interface{},
    DiskName: interface{},
    DiskType: interface{},
    EnableAutomatedSnapshotPolicy: interface{},
    EnableAutoSnapshot: interface{},
    EnableShared: interface{},
    Encrypted: interface{},
    Filters: interface{},
    InstanceId: interface{},
    KmsKeyId: interface{},
    MultiAttach: interface{},
    Portable: interface{},
    RefreshOptions: interface{},
    ResourceGroupId: interface{},
    SnapshotId: interface{},
    Status: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.RosDisks.TagsProperty,
    ZoneId: interface{},
}

Properties

Name Type Description
AdditionalAttributes interface{} Property additionalAttributes: The value of attribute N.
AutoSnapshotPolicyId interface{} Property autoSnapshotPolicyId: The ID of the automatic snapshot policy that is applied to the cloud disk.
Category interface{} Property category: The category of the disk.
DeleteAutoSnapshot interface{} Property deleteAutoSnapshot: Specifies whether to delete the automatic snapshots of the cloud disk when the disk is released.
DeleteWithInstance interface{} Property deleteWithInstance: Specifies whether to release the cloud disk when its associated instance is released.
DiskChargeType interface{} Property diskChargeType: The billing method of the disk.
DiskIds interface{} Property diskIds: The IDs of disks.
DiskName interface{} Property diskName: The name of the disk.
DiskType interface{} Property diskType: The type of the disk.
EnableAutomatedSnapshotPolicy interface{} Property enableAutomatedSnapshotPolicy: Specifies whether an automatic snapshot policy is applied to the cloud disk.
EnableAutoSnapshot interface{} Property enableAutoSnapshot: Specifies whether the automatic snapshot policy feature is enabled for the cloud disk.
EnableShared interface{} Property enableShared: Specifies whether the disk is a Shared Block Storage device.
Encrypted interface{} Property encrypted: Specifies whether to query only encrypted cloud disks.
Filters interface{} Property filters: Filter value when querying resources.
InstanceId interface{} Property instanceId: The ID of the instance to which the disk is attached.
KmsKeyId interface{} Property kmsKeyId: The ID of the Key Management Service (KMS) key used by the cloud disk.
MultiAttach interface{} Property multiAttach: Specifies whether the multi-attach feature is enabled for the disk.
Portable interface{} Property portable: Specifies whether the disk is removable.
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 disk belongs.
SnapshotId interface{} Property snapshotId: The ID of the snapshot used to create the cloud disk.
Status interface{} Property status: The state of the cloud disk.
Tags *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.RosDisks.TagsProperty Property tags: Tags of disks.
ZoneId interface{} Property zoneId: The ID of the zone for which to query resources.

AdditionalAttributesOptional

AdditionalAttributes interface{}
  • Type: interface{}

Property additionalAttributes: The value of attribute N.

Set the value to IOPS, which indicates the maximum IOPS of the disk.


AutoSnapshotPolicyIdOptional

AutoSnapshotPolicyId interface{}
  • Type: interface{}

Property autoSnapshotPolicyId: The ID of the automatic snapshot policy that is applied to the cloud disk.


CategoryOptional

Category interface{}
  • Type: interface{}

Property category: The category of the disk.

Valid values: all: all disk categories cloud: basic disk cloud_efficiency: ultra disk cloud_ssd: standard SSD ephemeral: retired local disk ephemeral_ssd: local SSD cloud_essd: ESSD local_ssd_pro: I/O-intensive local disk local_hdd_pro: throughput-intensive local disk


DeleteAutoSnapshotOptional

DeleteAutoSnapshot interface{}
  • Type: interface{}

Property deleteAutoSnapshot: Specifies whether to delete the automatic snapshots of the cloud disk when the disk is released.

Default value: false.


DeleteWithInstanceOptional

DeleteWithInstance interface{}
  • Type: interface{}

Property deleteWithInstance: Specifies whether to release the cloud disk when its associated instance is released.

Valid values: true: The cloud disk is released when its associated instance is released. false: The cloud disk is not released but is retained as a pay-as-you-go data disk when its associated instance is released. Default value: false.


DiskChargeTypeOptional

DiskChargeType interface{}
  • Type: interface{}

Property diskChargeType: The billing method of the disk.

Valid values: PrePaid: subscription PostPaid: pay-as-you-go


DiskIdsOptional

DiskIds interface{}
  • Type: interface{}

Property diskIds: The IDs of disks.

The value is a JSON array that consists of up to 100 disk IDs. Separate the disk IDs with commas (,).


DiskNameOptional

DiskName interface{}
  • Type: interface{}

Property diskName: The name of the disk.


DiskTypeOptional

DiskType interface{}
  • Type: interface{}

Property diskType: The type of the disk.

Valid values: all: system disk and data disk system: system disk data: data disk Default value: all.


EnableAutomatedSnapshotPolicyOptional

EnableAutomatedSnapshotPolicy interface{}
  • Type: interface{}

Property enableAutomatedSnapshotPolicy: Specifies whether an automatic snapshot policy is applied to the cloud disk.

true: An automatic snapshot policy is applied to the cloud disk. false: No automatic snapshot policy is applied to the cloud disk. Default value: false.


EnableAutoSnapshotOptional

EnableAutoSnapshot interface{}
  • Type: interface{}

Property enableAutoSnapshot: Specifies whether the automatic snapshot policy feature is enabled for the cloud disk.

true: The automatic snapshot policy feature is enabled for the cloud disk. false: The automatic snapshot policy feature is disabled for the cloud disk. Note By default, the automatic snapshot policy feature is enabled for created cloud disks. You need only to apply an automatic snapshot policy to a cloud disk before you can use the automatic snapshot policy.


EnableSharedOptional

EnableShared interface{}
  • Type: interface{}

Property enableShared: Specifies whether the disk is a Shared Block Storage device.


EncryptedOptional

Encrypted interface{}
  • Type: interface{}

Property encrypted: Specifies whether to query only encrypted cloud disks.

Default value: false.


FiltersOptional

Filters interface{}
  • Type: interface{}

Property filters: Filter value when querying resources.


InstanceIdOptional

InstanceId interface{}
  • Type: interface{}

Property instanceId: The ID of the instance to which the disk is attached.


KmsKeyIdOptional

KmsKeyId interface{}
  • Type: interface{}

Property kmsKeyId: The ID of the Key Management Service (KMS) key used by the cloud disk.


MultiAttachOptional

MultiAttach interface{}
  • Type: interface{}

Property multiAttach: Specifies whether the multi-attach feature is enabled for the disk.

Valid values: Disabled: The multi-attach feature is disabled. Enabled: The multi-attach feature is enabled. LegacyShared: Shared Block Storage devices are queried. The multi-attach feature is in invitational preview. To use this feature, submit a ticket.


PortableOptional

Portable interface{}
  • Type: interface{}

Property portable: Specifies whether the disk is removable.

Valid values: true: The disk is removable.A removable disk can independently exist and can be attached to or detached from an instance within the same zone. false: The disk is not removable. A disk that is not removable cannot independently exist or be attached to or detached from an instance within the same zone. The Portable attribute of the following disks is false, and these disks share the same lifecycle with their associated instances: Local disks Local SSDs Subscription data disks


RefreshOptionsOptional

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.

ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: The ID of the resource group to which the disk 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.


SnapshotIdOptional

SnapshotId interface{}
  • Type: interface{}

Property snapshotId: The ID of the snapshot used to create the cloud disk.


StatusOptional

Status interface{}
  • Type: interface{}

Property status: The state of the cloud disk.

For more information, see Disk states. Valid values: In_use Available Attaching Detaching Creating ReIniting All Default value: All.


TagsOptional

Tags *[]TagsProperty
  • Type: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.RosDisks.TagsProperty

Property tags: Tags of disks.


ZoneIdOptional

ZoneId interface{}
  • Type: interface{}

Property zoneId: The ID of the zone for which to query resources.