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

alicloud.ens.Disk

Explore with Pulumi AI

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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. DiskArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. DiskArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DiskArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
var alicloudDiskResource = new Disk("alicloudDiskResource", DiskArgs.builder()
    .category("string")
    .ensRegionId("string")
    .paymentType("string")
    .diskName("string")
    .encrypted(false)
    .kmsKeyId("string")
    .size(0)
    .snapshotId("string")
    .build());
Copy
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")
Copy
const alicloudDiskResource = new alicloud.ens.Disk("alicloudDiskResource", {
    category: "string",
    ensRegionId: "string",
    paymentType: "string",
    diskName: "string",
    encrypted: false,
    kmsKeyId: "string",
    size: 0,
    snapshotId: "string",
});
Copy
type: alicloud:ens:Disk
properties:
    category: string
    diskName: string
    encrypted: false
    ensRegionId: string
    kmsKeyId: string
    paymentType: string
    size: 0
    snapshotId: string
Copy

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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
string
Ens node IDExample value: cn-chengdu-telecom.
PaymentType
This property is required.
Changes to this property will trigger replacement.
string
Billing type of the disk instanceValue: PayAsYouGo.
DiskName string
Name of the disk instance.
Encrypted Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
string
Ens node IDExample value: cn-chengdu-telecom.
PaymentType
This property is required.
Changes to this property will trigger replacement.
string
Billing type of the disk instanceValue: PayAsYouGo.
DiskName string
Name of the disk instance.
Encrypted Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
String
Ens node IDExample value: cn-chengdu-telecom.
paymentType
This property is required.
Changes to this property will trigger replacement.
String
Billing type of the disk instanceValue: PayAsYouGo.
diskName String
Name of the disk instance.
encrypted Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
string
Ens node IDExample value: cn-chengdu-telecom.
paymentType
This property is required.
Changes to this property will trigger replacement.
string
Billing type of the disk instanceValue: PayAsYouGo.
diskName string
Name of the disk instance.
encrypted Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
str
Ens node IDExample value: cn-chengdu-telecom.
payment_type
This property is required.
Changes to this property will trigger replacement.
str
Billing type of the disk instanceValue: PayAsYouGo.
disk_name str
Name of the disk instance.
encrypted Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
String
Ens node IDExample value: cn-chengdu-telecom.
paymentType
This property is required.
Changes to this property will trigger replacement.
String
Billing type of the disk instanceValue: PayAsYouGo.
diskName String
Name of the disk instance.
encrypted Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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)
resources:  _:    type: alicloud:ens:Disk    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Ens node IDExample value: cn-chengdu-telecom.
KmsKeyId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Billing type of the disk instanceValue: PayAsYouGo.
Size int
The size of the disk instance. Unit: GiB.
SnapshotId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Ens node IDExample value: cn-chengdu-telecom.
KmsKeyId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Billing type of the disk instanceValue: PayAsYouGo.
Size int
The size of the disk instance. Unit: GiB.
SnapshotId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
Ens node IDExample value: cn-chengdu-telecom.
kmsKeyId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
Billing type of the disk instanceValue: PayAsYouGo.
size Integer
The size of the disk instance. Unit: GiB.
snapshotId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Ens node IDExample value: cn-chengdu-telecom.
kmsKeyId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Billing type of the disk instanceValue: PayAsYouGo.
size number
The size of the disk instance. Unit: GiB.
snapshotId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
Ens node IDExample value: cn-chengdu-telecom.
kms_key_id Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
Billing type of the disk instanceValue: PayAsYouGo.
size int
The size of the disk instance. Unit: GiB.
snapshot_id Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
Ens node IDExample value: cn-chengdu-telecom.
kmsKeyId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
Billing type of the disk instanceValue: PayAsYouGo.
size Number
The size of the disk instance. Unit: GiB.
snapshotId Changes to this property will trigger replacement. 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>
Copy

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.