1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ens
  5. Disk
Alibaba Cloud v3.77.0 published on Friday, May 2, 2025 by Pulumi

alicloud.ens.Disk

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.77.0 published on Friday, May 2, 2025 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,
             tags: Optional[Mapping[str, 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.

    Constructor 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",
        Tags = 
        {
            { "string", "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"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var alicloudDiskResource = new com.pulumi.alicloud.ens.Disk("alicloudDiskResource", com.pulumi.alicloud.ens.DiskArgs.builder()
        .category("string")
        .ensRegionId("string")
        .paymentType("string")
        .diskName("string")
        .encrypted(false)
        .kmsKeyId("string")
        .size(0)
        .snapshotId("string")
        .tags(Map.of("string", "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",
        tags={
            "string": "string",
        })
    
    const alicloudDiskResource = new alicloud.ens.Disk("alicloudDiskResource", {
        category: "string",
        ensRegionId: "string",
        paymentType: "string",
        diskName: "string",
        encrypted: false,
        kmsKeyId: "string",
        size: 0,
        snapshotId: "string",
        tags: {
            string: "string",
        },
    });
    
    type: alicloud:ens:Disk
    properties:
        category: string
        diskName: string
        encrypted: false
        ensRegionId: string
        kmsKeyId: string
        paymentType: string
        size: 0
        snapshotId: string
        tags:
            string: 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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Disk resource accepts the following input properties:

    Category string
    The category of the disk. Valid values: cloud_efficiency (high-efficiency cloud disk), cloud_ssd (full Flash cloud disk), local_hdd (local HDD), local_ssd (local ssd).
    EnsRegionId string
    The ID of the edge node.
    PaymentType string
    The billing method of the instance. Valid values: PayAsYouGo.
    DiskName string
    The name of the disk.
    Encrypted bool
    Specifies whether to encrypt the new system disk. Valid values: 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 snapshot_id 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 snapshot_id parameter is less than the set size parameter value, the Size of the cloud disk created is the specified size parameter value.
    Tags Dictionary<string, string>
    The label to which the instance is bound.
    Category string
    The category of the disk. Valid values: cloud_efficiency (high-efficiency cloud disk), cloud_ssd (full Flash cloud disk), local_hdd (local HDD), local_ssd (local ssd).
    EnsRegionId string
    The ID of the edge node.
    PaymentType string
    The billing method of the instance. Valid values: PayAsYouGo.
    DiskName string
    The name of the disk.
    Encrypted bool
    Specifies whether to encrypt the new system disk. Valid values: 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 snapshot_id 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 snapshot_id parameter is less than the set size parameter value, the Size of the cloud disk created is the specified size parameter value.
    Tags map[string]string
    The label to which the instance is bound.
    category String
    The category of the disk. Valid values: cloud_efficiency (high-efficiency cloud disk), cloud_ssd (full Flash cloud disk), local_hdd (local HDD), local_ssd (local ssd).
    ensRegionId String
    The ID of the edge node.
    paymentType String
    The billing method of the instance. Valid values: PayAsYouGo.
    diskName String
    The name of the disk.
    encrypted Boolean
    Specifies whether to encrypt the new system disk. Valid values: 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 snapshot_id 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 snapshot_id parameter is less than the set size parameter value, the Size of the cloud disk created is the specified size parameter value.
    tags Map<String,String>
    The label to which the instance is bound.
    category string
    The category of the disk. Valid values: cloud_efficiency (high-efficiency cloud disk), cloud_ssd (full Flash cloud disk), local_hdd (local HDD), local_ssd (local ssd).
    ensRegionId string
    The ID of the edge node.
    paymentType string
    The billing method of the instance. Valid values: PayAsYouGo.
    diskName string
    The name of the disk.
    encrypted boolean
    Specifies whether to encrypt the new system disk. Valid values: 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 snapshot_id 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 snapshot_id parameter is less than the set size parameter value, the Size of the cloud disk created is the specified size parameter value.
    tags {[key: string]: string}
    The label to which the instance is bound.
    category str
    The category of the disk. Valid values: cloud_efficiency (high-efficiency cloud disk), cloud_ssd (full Flash cloud disk), local_hdd (local HDD), local_ssd (local ssd).
    ens_region_id str
    The ID of the edge node.
    payment_type str
    The billing method of the instance. Valid values: PayAsYouGo.
    disk_name str
    The name of the disk.
    encrypted bool
    Specifies whether to encrypt the new system disk. Valid values: 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 snapshot_id 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 snapshot_id parameter is less than the set size parameter value, the Size of the cloud disk created is the specified size parameter value.
    tags Mapping[str, str]
    The label to which the instance is bound.
    category String
    The category of the disk. Valid values: cloud_efficiency (high-efficiency cloud disk), cloud_ssd (full Flash cloud disk), local_hdd (local HDD), local_ssd (local ssd).
    ensRegionId String
    The ID of the edge node.
    paymentType String
    The billing method of the instance. Valid values: PayAsYouGo.
    diskName String
    The name of the disk.
    encrypted Boolean
    Specifies whether to encrypt the new system disk. Valid values: 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 snapshot_id 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 snapshot_id parameter is less than the set size parameter value, the Size of the cloud disk created is the specified size parameter value.
    tags Map<String>
    The label to which the instance is bound.

    Outputs

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

    CreateTime string
    The time when the disk was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the disk.
    CreateTime string
    The time when the disk was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the disk.
    createTime String
    The time when the disk was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the disk.
    createTime string
    The time when the disk was created.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the disk.
    create_time str
    The time when the disk was created.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the disk.
    createTime String
    The time when the disk was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the disk.

    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,
            tags: Optional[Mapping[str, 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)
    resources:  _:    type: alicloud:ens:Disk    get:      id: ${id}
    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
    The category of the disk. Valid values: cloud_efficiency (high-efficiency cloud disk), cloud_ssd (full Flash cloud disk), local_hdd (local HDD), local_ssd (local ssd).
    CreateTime string
    The time when the disk was created.
    DiskName string
    The name of the disk.
    Encrypted bool
    Specifies whether to encrypt the new system disk. Valid values: true, false(default).
    EnsRegionId string
    The ID of the edge node.
    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
    The billing method of the instance. Valid values: 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 snapshot_id 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 snapshot_id parameter is less than the set size parameter value, the Size of the cloud disk created is the specified size parameter value.
    Status string
    The status of the disk.
    Tags Dictionary<string, string>
    The label to which the instance is bound.
    Category string
    The category of the disk. Valid values: cloud_efficiency (high-efficiency cloud disk), cloud_ssd (full Flash cloud disk), local_hdd (local HDD), local_ssd (local ssd).
    CreateTime string
    The time when the disk was created.
    DiskName string
    The name of the disk.
    Encrypted bool
    Specifies whether to encrypt the new system disk. Valid values: true, false(default).
    EnsRegionId string
    The ID of the edge node.
    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
    The billing method of the instance. Valid values: 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 snapshot_id 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 snapshot_id parameter is less than the set size parameter value, the Size of the cloud disk created is the specified size parameter value.
    Status string
    The status of the disk.
    Tags map[string]string
    The label to which the instance is bound.
    category String
    The category of the disk. Valid values: cloud_efficiency (high-efficiency cloud disk), cloud_ssd (full Flash cloud disk), local_hdd (local HDD), local_ssd (local ssd).
    createTime String
    The time when the disk was created.
    diskName String
    The name of the disk.
    encrypted Boolean
    Specifies whether to encrypt the new system disk. Valid values: true, false(default).
    ensRegionId String
    The ID of the edge node.
    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
    The billing method of the instance. Valid values: 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 snapshot_id 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 snapshot_id parameter is less than the set size parameter value, the Size of the cloud disk created is the specified size parameter value.
    status String
    The status of the disk.
    tags Map<String,String>
    The label to which the instance is bound.
    category string
    The category of the disk. Valid values: cloud_efficiency (high-efficiency cloud disk), cloud_ssd (full Flash cloud disk), local_hdd (local HDD), local_ssd (local ssd).
    createTime string
    The time when the disk was created.
    diskName string
    The name of the disk.
    encrypted boolean
    Specifies whether to encrypt the new system disk. Valid values: true, false(default).
    ensRegionId string
    The ID of the edge node.
    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
    The billing method of the instance. Valid values: 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 snapshot_id 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 snapshot_id parameter is less than the set size parameter value, the Size of the cloud disk created is the specified size parameter value.
    status string
    The status of the disk.
    tags {[key: string]: string}
    The label to which the instance is bound.
    category str
    The category of the disk. Valid values: cloud_efficiency (high-efficiency cloud disk), cloud_ssd (full Flash cloud disk), local_hdd (local HDD), local_ssd (local ssd).
    create_time str
    The time when the disk was created.
    disk_name str
    The name of the disk.
    encrypted bool
    Specifies whether to encrypt the new system disk. Valid values: true, false(default).
    ens_region_id str
    The ID of the edge node.
    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
    The billing method of the instance. Valid values: 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 snapshot_id 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 snapshot_id parameter is less than the set size parameter value, the Size of the cloud disk created is the specified size parameter value.
    status str
    The status of the disk.
    tags Mapping[str, str]
    The label to which the instance is bound.
    category String
    The category of the disk. Valid values: cloud_efficiency (high-efficiency cloud disk), cloud_ssd (full Flash cloud disk), local_hdd (local HDD), local_ssd (local ssd).
    createTime String
    The time when the disk was created.
    diskName String
    The name of the disk.
    encrypted Boolean
    Specifies whether to encrypt the new system disk. Valid values: true, false(default).
    ensRegionId String
    The ID of the edge node.
    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
    The billing method of the instance. Valid values: 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 snapshot_id 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 snapshot_id parameter is less than the set size parameter value, the Size of the cloud disk created is the specified size parameter value.
    status String
    The status of the disk.
    tags Map<String>
    The label to which the instance is bound.

    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.77.0 published on Friday, May 2, 2025 by Pulumi