1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ens
  5. Disk
Alibaba Cloud v3.55.0 published on Tuesday, Apr 30, 2024 by Pulumi

alicloud.ens.Disk

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.55.0 published on Tuesday, Apr 30, 2024 by Pulumi

    Provides a ENS Disk resource. The disk. When you use it for the first time, please contact the product classmates to add a resource whitelist.

    For information about ENS Disk and how to use it, see What is Disk.

    NOTE: Available since v1.213.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = new alicloud.ens.Disk("default", {
        category: "cloud_ssd",
        size: 20,
        paymentType: "PayAsYouGo",
        ensRegionId: "cn-chongqing-11",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.ens.Disk("default",
        category="cloud_ssd",
        size=20,
        payment_type="PayAsYouGo",
        ens_region_id="cn-chongqing-11")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ens"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := ens.NewDisk(ctx, "default", &ens.DiskArgs{
    			Category:    pulumi.String("cloud_ssd"),
    			Size:        pulumi.Int(20),
    			PaymentType: pulumi.String("PayAsYouGo"),
    			EnsRegionId: pulumi.String("cn-chongqing-11"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new AliCloud.Ens.Disk("default", new()
        {
            Category = "cloud_ssd",
            Size = 20,
            PaymentType = "PayAsYouGo",
            EnsRegionId = "cn-chongqing-11",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ens.Disk;
    import com.pulumi.alicloud.ens.DiskArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var default_ = new Disk("default", DiskArgs.builder()        
                .category("cloud_ssd")
                .size("20")
                .paymentType("PayAsYouGo")
                .ensRegionId("cn-chongqing-11")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:ens:Disk
        properties:
          category: cloud_ssd
          size: '20'
          paymentType: PayAsYouGo
          ensRegionId: cn-chongqing-11
    

    Create Disk Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Disk(name: string, args: DiskArgs, opts?: CustomResourceOptions);
    @overload
    def Disk(resource_name: str,
             args: DiskArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Disk(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             category: Optional[str] = None,
             ens_region_id: Optional[str] = None,
             payment_type: Optional[str] = None,
             disk_name: Optional[str] = None,
             encrypted: Optional[bool] = None,
             kms_key_id: Optional[str] = None,
             size: Optional[int] = None,
             snapshot_id: Optional[str] = None)
    func NewDisk(ctx *Context, name string, args DiskArgs, opts ...ResourceOption) (*Disk, error)
    public Disk(string name, DiskArgs args, CustomResourceOptions? opts = null)
    public Disk(String name, DiskArgs args)
    public Disk(String name, DiskArgs args, CustomResourceOptions options)
    
    type: alicloud:ens:Disk
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DiskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DiskArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DiskArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DiskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DiskArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var alicloudDiskResource = new AliCloud.Ens.Disk("alicloudDiskResource", new()
    {
        Category = "string",
        EnsRegionId = "string",
        PaymentType = "string",
        DiskName = "string",
        Encrypted = false,
        KmsKeyId = "string",
        Size = 0,
        SnapshotId = "string",
    });
    
    example, err := ens.NewDisk(ctx, "alicloudDiskResource", &ens.DiskArgs{
    	Category:    pulumi.String("string"),
    	EnsRegionId: pulumi.String("string"),
    	PaymentType: pulumi.String("string"),
    	DiskName:    pulumi.String("string"),
    	Encrypted:   pulumi.Bool(false),
    	KmsKeyId:    pulumi.String("string"),
    	Size:        pulumi.Int(0),
    	SnapshotId:  pulumi.String("string"),
    })
    
    var alicloudDiskResource = new Disk("alicloudDiskResource", DiskArgs.builder()        
        .category("string")
        .ensRegionId("string")
        .paymentType("string")
        .diskName("string")
        .encrypted(false)
        .kmsKeyId("string")
        .size(0)
        .snapshotId("string")
        .build());
    
    alicloud_disk_resource = alicloud.ens.Disk("alicloudDiskResource",
        category="string",
        ens_region_id="string",
        payment_type="string",
        disk_name="string",
        encrypted=False,
        kms_key_id="string",
        size=0,
        snapshot_id="string")
    
    const alicloudDiskResource = new alicloud.ens.Disk("alicloudDiskResource", {
        category: "string",
        ensRegionId: "string",
        paymentType: "string",
        diskName: "string",
        encrypted: false,
        kmsKeyId: "string",
        size: 0,
        snapshotId: "string",
    });
    
    type: alicloud:ens:Disk
    properties:
        category: string
        diskName: string
        encrypted: false
        ensRegionId: string
        kmsKeyId: string
        paymentType: string
        size: 0
        snapshotId: string
    

    Disk Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Disk resource accepts the following input properties:

    Category string
    Types of disk instancesValues: cloud_efficiency (high-efficiency cloud disk),cloud_ssd (full Flash cloud disk),local_hdd (local HDD),local_ssd (local ssd).
    EnsRegionId string
    Ens node IDExample value: cn-chengdu-telecom.
    PaymentType string
    Billing type of the disk instanceValue: PayAsYouGo.
    DiskName string
    Name of the disk instance.
    Encrypted bool
    Indicates whether the cloud disk is Encrypted. If Encrypted = true, the default service key is used when KMSKeyId is not entered. Value range:true, false(default).
    KmsKeyId string
    The ID of the KMS key used by the cloud disk. If Encrypted is set to true, the service default key is used when KMSKeyId is empty.
    Size int
    The size of the disk instance. Unit: GiB.
    SnapshotId string

    The ID of the snapshot used to create the cloud disk.

    The SnapshotId and Size parameters have the following limitations:

    • If the snapshot capacity corresponding to the SnapshotId parameter is greater than the specified Size parameter, the Size of the cloud disk created is the Size of the specified snapshot.
    • If the snapshot capacity corresponding to the SnapshotId parameter is less than the set Size parameter value, the Size of the cloud disk created is the specified Size parameter value.
    Category string
    Types of disk instancesValues: cloud_efficiency (high-efficiency cloud disk),cloud_ssd (full Flash cloud disk),local_hdd (local HDD),local_ssd (local ssd).
    EnsRegionId string
    Ens node IDExample value: cn-chengdu-telecom.
    PaymentType string
    Billing type of the disk instanceValue: PayAsYouGo.
    DiskName string
    Name of the disk instance.
    Encrypted bool
    Indicates whether the cloud disk is Encrypted. If Encrypted = true, the default service key is used when KMSKeyId is not entered. Value range:true, false(default).
    KmsKeyId string
    The ID of the KMS key used by the cloud disk. If Encrypted is set to true, the service default key is used when KMSKeyId is empty.
    Size int
    The size of the disk instance. Unit: GiB.
    SnapshotId string

    The ID of the snapshot used to create the cloud disk.

    The SnapshotId and Size parameters have the following limitations:

    • If the snapshot capacity corresponding to the SnapshotId parameter is greater than the specified Size parameter, the Size of the cloud disk created is the Size of the specified snapshot.
    • If the snapshot capacity corresponding to the SnapshotId parameter is less than the set Size parameter value, the Size of the cloud disk created is the specified Size parameter value.
    category String
    Types of disk instancesValues: cloud_efficiency (high-efficiency cloud disk),cloud_ssd (full Flash cloud disk),local_hdd (local HDD),local_ssd (local ssd).
    ensRegionId String
    Ens node IDExample value: cn-chengdu-telecom.
    paymentType String
    Billing type of the disk instanceValue: PayAsYouGo.
    diskName String
    Name of the disk instance.
    encrypted Boolean
    Indicates whether the cloud disk is Encrypted. If Encrypted = true, the default service key is used when KMSKeyId is not entered. Value range:true, false(default).
    kmsKeyId String
    The ID of the KMS key used by the cloud disk. If Encrypted is set to true, the service default key is used when KMSKeyId is empty.
    size Integer
    The size of the disk instance. Unit: GiB.
    snapshotId String

    The ID of the snapshot used to create the cloud disk.

    The SnapshotId and Size parameters have the following limitations:

    • If the snapshot capacity corresponding to the SnapshotId parameter is greater than the specified Size parameter, the Size of the cloud disk created is the Size of the specified snapshot.
    • If the snapshot capacity corresponding to the SnapshotId parameter is less than the set Size parameter value, the Size of the cloud disk created is the specified Size parameter value.
    category string
    Types of disk instancesValues: cloud_efficiency (high-efficiency cloud disk),cloud_ssd (full Flash cloud disk),local_hdd (local HDD),local_ssd (local ssd).
    ensRegionId string
    Ens node IDExample value: cn-chengdu-telecom.
    paymentType string
    Billing type of the disk instanceValue: PayAsYouGo.
    diskName string
    Name of the disk instance.
    encrypted boolean
    Indicates whether the cloud disk is Encrypted. If Encrypted = true, the default service key is used when KMSKeyId is not entered. Value range:true, false(default).
    kmsKeyId string
    The ID of the KMS key used by the cloud disk. If Encrypted is set to true, the service default key is used when KMSKeyId is empty.
    size number
    The size of the disk instance. Unit: GiB.
    snapshotId string

    The ID of the snapshot used to create the cloud disk.

    The SnapshotId and Size parameters have the following limitations:

    • If the snapshot capacity corresponding to the SnapshotId parameter is greater than the specified Size parameter, the Size of the cloud disk created is the Size of the specified snapshot.
    • If the snapshot capacity corresponding to the SnapshotId parameter is less than the set Size parameter value, the Size of the cloud disk created is the specified Size parameter value.
    category str
    Types of disk instancesValues: cloud_efficiency (high-efficiency cloud disk),cloud_ssd (full Flash cloud disk),local_hdd (local HDD),local_ssd (local ssd).
    ens_region_id str
    Ens node IDExample value: cn-chengdu-telecom.
    payment_type str
    Billing type of the disk instanceValue: PayAsYouGo.
    disk_name str
    Name of the disk instance.
    encrypted bool
    Indicates whether the cloud disk is Encrypted. If Encrypted = true, the default service key is used when KMSKeyId is not entered. Value range:true, false(default).
    kms_key_id str
    The ID of the KMS key used by the cloud disk. If Encrypted is set to true, the service default key is used when KMSKeyId is empty.
    size int
    The size of the disk instance. Unit: GiB.
    snapshot_id str

    The ID of the snapshot used to create the cloud disk.

    The SnapshotId and Size parameters have the following limitations:

    • If the snapshot capacity corresponding to the SnapshotId parameter is greater than the specified Size parameter, the Size of the cloud disk created is the Size of the specified snapshot.
    • If the snapshot capacity corresponding to the SnapshotId parameter is less than the set Size parameter value, the Size of the cloud disk created is the specified Size parameter value.
    category String
    Types of disk instancesValues: cloud_efficiency (high-efficiency cloud disk),cloud_ssd (full Flash cloud disk),local_hdd (local HDD),local_ssd (local ssd).
    ensRegionId String
    Ens node IDExample value: cn-chengdu-telecom.
    paymentType String
    Billing type of the disk instanceValue: PayAsYouGo.
    diskName String
    Name of the disk instance.
    encrypted Boolean
    Indicates whether the cloud disk is Encrypted. If Encrypted = true, the default service key is used when KMSKeyId is not entered. Value range:true, false(default).
    kmsKeyId String
    The ID of the KMS key used by the cloud disk. If Encrypted is set to true, the service default key is used when KMSKeyId is empty.
    size Number
    The size of the disk instance. Unit: GiB.
    snapshotId String

    The ID of the snapshot used to create the cloud disk.

    The SnapshotId and Size parameters have the following limitations:

    • If the snapshot capacity corresponding to the SnapshotId parameter is greater than the specified Size parameter, the Size of the cloud disk created is the Size of the specified snapshot.
    • If the snapshot capacity corresponding to the SnapshotId parameter is less than the set Size parameter value, the Size of the cloud disk created is the specified Size parameter value.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Disk resource produces the following output properties:

    CreateTime string
    Disk instance creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the disk instance:Value:In-use: In useAvailable: To be mountedAttaching: AttachingDetaching: uninstallingCreating: CreatingReIniting: Resetting.
    CreateTime string
    Disk instance creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the disk instance:Value:In-use: In useAvailable: To be mountedAttaching: AttachingDetaching: uninstallingCreating: CreatingReIniting: Resetting.
    createTime String
    Disk instance creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the disk instance:Value:In-use: In useAvailable: To be mountedAttaching: AttachingDetaching: uninstallingCreating: CreatingReIniting: Resetting.
    createTime string
    Disk instance creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of the disk instance:Value:In-use: In useAvailable: To be mountedAttaching: AttachingDetaching: uninstallingCreating: CreatingReIniting: Resetting.
    create_time str
    Disk instance creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Status of the disk instance:Value:In-use: In useAvailable: To be mountedAttaching: AttachingDetaching: uninstallingCreating: CreatingReIniting: Resetting.
    createTime String
    Disk instance creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the disk instance:Value:In-use: In useAvailable: To be mountedAttaching: AttachingDetaching: uninstallingCreating: CreatingReIniting: Resetting.

    Look up Existing Disk Resource

    Get an existing Disk resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DiskState, opts?: CustomResourceOptions): Disk
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            category: Optional[str] = None,
            create_time: Optional[str] = None,
            disk_name: Optional[str] = None,
            encrypted: Optional[bool] = None,
            ens_region_id: Optional[str] = None,
            kms_key_id: Optional[str] = None,
            payment_type: Optional[str] = None,
            size: Optional[int] = None,
            snapshot_id: Optional[str] = None,
            status: Optional[str] = None) -> Disk
    func GetDisk(ctx *Context, name string, id IDInput, state *DiskState, opts ...ResourceOption) (*Disk, error)
    public static Disk Get(string name, Input<string> id, DiskState? state, CustomResourceOptions? opts = null)
    public static Disk get(String name, Output<String> id, DiskState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Category string
    Types of disk instancesValues: cloud_efficiency (high-efficiency cloud disk),cloud_ssd (full Flash cloud disk),local_hdd (local HDD),local_ssd (local ssd).
    CreateTime string
    Disk instance creation time.
    DiskName string
    Name of the disk instance.
    Encrypted bool
    Indicates whether the cloud disk is Encrypted. If Encrypted = true, the default service key is used when KMSKeyId is not entered. Value range:true, false(default).
    EnsRegionId string
    Ens node IDExample value: cn-chengdu-telecom.
    KmsKeyId string
    The ID of the KMS key used by the cloud disk. If Encrypted is set to true, the service default key is used when KMSKeyId is empty.
    PaymentType string
    Billing type of the disk instanceValue: PayAsYouGo.
    Size int
    The size of the disk instance. Unit: GiB.
    SnapshotId string

    The ID of the snapshot used to create the cloud disk.

    The SnapshotId and Size parameters have the following limitations:

    • If the snapshot capacity corresponding to the SnapshotId parameter is greater than the specified Size parameter, the Size of the cloud disk created is the Size of the specified snapshot.
    • If the snapshot capacity corresponding to the SnapshotId parameter is less than the set Size parameter value, the Size of the cloud disk created is the specified Size parameter value.
    Status string
    Status of the disk instance:Value:In-use: In useAvailable: To be mountedAttaching: AttachingDetaching: uninstallingCreating: CreatingReIniting: Resetting.
    Category string
    Types of disk instancesValues: cloud_efficiency (high-efficiency cloud disk),cloud_ssd (full Flash cloud disk),local_hdd (local HDD),local_ssd (local ssd).
    CreateTime string
    Disk instance creation time.
    DiskName string
    Name of the disk instance.
    Encrypted bool
    Indicates whether the cloud disk is Encrypted. If Encrypted = true, the default service key is used when KMSKeyId is not entered. Value range:true, false(default).
    EnsRegionId string
    Ens node IDExample value: cn-chengdu-telecom.
    KmsKeyId string
    The ID of the KMS key used by the cloud disk. If Encrypted is set to true, the service default key is used when KMSKeyId is empty.
    PaymentType string
    Billing type of the disk instanceValue: PayAsYouGo.
    Size int
    The size of the disk instance. Unit: GiB.
    SnapshotId string

    The ID of the snapshot used to create the cloud disk.

    The SnapshotId and Size parameters have the following limitations:

    • If the snapshot capacity corresponding to the SnapshotId parameter is greater than the specified Size parameter, the Size of the cloud disk created is the Size of the specified snapshot.
    • If the snapshot capacity corresponding to the SnapshotId parameter is less than the set Size parameter value, the Size of the cloud disk created is the specified Size parameter value.
    Status string
    Status of the disk instance:Value:In-use: In useAvailable: To be mountedAttaching: AttachingDetaching: uninstallingCreating: CreatingReIniting: Resetting.
    category String
    Types of disk instancesValues: cloud_efficiency (high-efficiency cloud disk),cloud_ssd (full Flash cloud disk),local_hdd (local HDD),local_ssd (local ssd).
    createTime String
    Disk instance creation time.
    diskName String
    Name of the disk instance.
    encrypted Boolean
    Indicates whether the cloud disk is Encrypted. If Encrypted = true, the default service key is used when KMSKeyId is not entered. Value range:true, false(default).
    ensRegionId String
    Ens node IDExample value: cn-chengdu-telecom.
    kmsKeyId String
    The ID of the KMS key used by the cloud disk. If Encrypted is set to true, the service default key is used when KMSKeyId is empty.
    paymentType String
    Billing type of the disk instanceValue: PayAsYouGo.
    size Integer
    The size of the disk instance. Unit: GiB.
    snapshotId String

    The ID of the snapshot used to create the cloud disk.

    The SnapshotId and Size parameters have the following limitations:

    • If the snapshot capacity corresponding to the SnapshotId parameter is greater than the specified Size parameter, the Size of the cloud disk created is the Size of the specified snapshot.
    • If the snapshot capacity corresponding to the SnapshotId parameter is less than the set Size parameter value, the Size of the cloud disk created is the specified Size parameter value.
    status String
    Status of the disk instance:Value:In-use: In useAvailable: To be mountedAttaching: AttachingDetaching: uninstallingCreating: CreatingReIniting: Resetting.
    category string
    Types of disk instancesValues: cloud_efficiency (high-efficiency cloud disk),cloud_ssd (full Flash cloud disk),local_hdd (local HDD),local_ssd (local ssd).
    createTime string
    Disk instance creation time.
    diskName string
    Name of the disk instance.
    encrypted boolean
    Indicates whether the cloud disk is Encrypted. If Encrypted = true, the default service key is used when KMSKeyId is not entered. Value range:true, false(default).
    ensRegionId string
    Ens node IDExample value: cn-chengdu-telecom.
    kmsKeyId string
    The ID of the KMS key used by the cloud disk. If Encrypted is set to true, the service default key is used when KMSKeyId is empty.
    paymentType string
    Billing type of the disk instanceValue: PayAsYouGo.
    size number
    The size of the disk instance. Unit: GiB.
    snapshotId string

    The ID of the snapshot used to create the cloud disk.

    The SnapshotId and Size parameters have the following limitations:

    • If the snapshot capacity corresponding to the SnapshotId parameter is greater than the specified Size parameter, the Size of the cloud disk created is the Size of the specified snapshot.
    • If the snapshot capacity corresponding to the SnapshotId parameter is less than the set Size parameter value, the Size of the cloud disk created is the specified Size parameter value.
    status string
    Status of the disk instance:Value:In-use: In useAvailable: To be mountedAttaching: AttachingDetaching: uninstallingCreating: CreatingReIniting: Resetting.
    category str
    Types of disk instancesValues: cloud_efficiency (high-efficiency cloud disk),cloud_ssd (full Flash cloud disk),local_hdd (local HDD),local_ssd (local ssd).
    create_time str
    Disk instance creation time.
    disk_name str
    Name of the disk instance.
    encrypted bool
    Indicates whether the cloud disk is Encrypted. If Encrypted = true, the default service key is used when KMSKeyId is not entered. Value range:true, false(default).
    ens_region_id str
    Ens node IDExample value: cn-chengdu-telecom.
    kms_key_id str
    The ID of the KMS key used by the cloud disk. If Encrypted is set to true, the service default key is used when KMSKeyId is empty.
    payment_type str
    Billing type of the disk instanceValue: PayAsYouGo.
    size int
    The size of the disk instance. Unit: GiB.
    snapshot_id str

    The ID of the snapshot used to create the cloud disk.

    The SnapshotId and Size parameters have the following limitations:

    • If the snapshot capacity corresponding to the SnapshotId parameter is greater than the specified Size parameter, the Size of the cloud disk created is the Size of the specified snapshot.
    • If the snapshot capacity corresponding to the SnapshotId parameter is less than the set Size parameter value, the Size of the cloud disk created is the specified Size parameter value.
    status str
    Status of the disk instance:Value:In-use: In useAvailable: To be mountedAttaching: AttachingDetaching: uninstallingCreating: CreatingReIniting: Resetting.
    category String
    Types of disk instancesValues: cloud_efficiency (high-efficiency cloud disk),cloud_ssd (full Flash cloud disk),local_hdd (local HDD),local_ssd (local ssd).
    createTime String
    Disk instance creation time.
    diskName String
    Name of the disk instance.
    encrypted Boolean
    Indicates whether the cloud disk is Encrypted. If Encrypted = true, the default service key is used when KMSKeyId is not entered. Value range:true, false(default).
    ensRegionId String
    Ens node IDExample value: cn-chengdu-telecom.
    kmsKeyId String
    The ID of the KMS key used by the cloud disk. If Encrypted is set to true, the service default key is used when KMSKeyId is empty.
    paymentType String
    Billing type of the disk instanceValue: PayAsYouGo.
    size Number
    The size of the disk instance. Unit: GiB.
    snapshotId String

    The ID of the snapshot used to create the cloud disk.

    The SnapshotId and Size parameters have the following limitations:

    • If the snapshot capacity corresponding to the SnapshotId parameter is greater than the specified Size parameter, the Size of the cloud disk created is the Size of the specified snapshot.
    • If the snapshot capacity corresponding to the SnapshotId parameter is less than the set Size parameter value, the Size of the cloud disk created is the specified Size parameter value.
    status String
    Status of the disk instance:Value:In-use: In useAvailable: To be mountedAttaching: AttachingDetaching: uninstallingCreating: CreatingReIniting: Resetting.

    Import

    ENS Disk can be imported using the id, e.g.

    $ pulumi import alicloud:ens/disk:Disk example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.55.0 published on Tuesday, Apr 30, 2024 by Pulumi