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",
});
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)
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). - Ens
Region stringId - The ID of the edge node.
- Payment
Type string - The billing method of the instance. Valid values:
PayAsYouGo
. - Disk
Name string - The name of the disk.
- Encrypted bool
- Specifies whether to encrypt the new system disk. Valid values:
true
,false
(default). - Kms
Key stringId - The ID of the KMS key used by the cloud disk. If
encrypted
is set totrue
, the service default key is used when KMSKeyId is empty. - Size int
- The size of the disk instance. Unit: GiB.
- Snapshot
Id 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 specifiedsize
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 setsize
parameter value, the Size of the cloud disk created is the specifiedsize
parameter value.
- If the snapshot capacity corresponding to the
- 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). - Ens
Region stringId - The ID of the edge node.
- Payment
Type string - The billing method of the instance. Valid values:
PayAsYouGo
. - Disk
Name string - The name of the disk.
- Encrypted bool
- Specifies whether to encrypt the new system disk. Valid values:
true
,false
(default). - Kms
Key stringId - The ID of the KMS key used by the cloud disk. If
encrypted
is set totrue
, the service default key is used when KMSKeyId is empty. - Size int
- The size of the disk instance. Unit: GiB.
- Snapshot
Id 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 specifiedsize
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 setsize
parameter value, the Size of the cloud disk created is the specifiedsize
parameter value.
- If the snapshot capacity corresponding to the
- 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). - ens
Region StringId - The ID of the edge node.
- payment
Type String - The billing method of the instance. Valid values:
PayAsYouGo
. - disk
Name String - The name of the disk.
- encrypted Boolean
- Specifies whether to encrypt the new system disk. Valid values:
true
,false
(default). - kms
Key StringId - The ID of the KMS key used by the cloud disk. If
encrypted
is set totrue
, the service default key is used when KMSKeyId is empty. - size Integer
- The size of the disk instance. Unit: GiB.
- snapshot
Id 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 specifiedsize
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 setsize
parameter value, the Size of the cloud disk created is the specifiedsize
parameter value.
- If the snapshot capacity corresponding to the
- 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). - ens
Region stringId - The ID of the edge node.
- payment
Type string - The billing method of the instance. Valid values:
PayAsYouGo
. - disk
Name string - The name of the disk.
- encrypted boolean
- Specifies whether to encrypt the new system disk. Valid values:
true
,false
(default). - kms
Key stringId - The ID of the KMS key used by the cloud disk. If
encrypted
is set totrue
, the service default key is used when KMSKeyId is empty. - size number
- The size of the disk instance. Unit: GiB.
- snapshot
Id 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 specifiedsize
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 setsize
parameter value, the Size of the cloud disk created is the specifiedsize
parameter value.
- If the snapshot capacity corresponding to the
- {[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_ strid - 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_ strid - The ID of the KMS key used by the cloud disk. If
encrypted
is set totrue
, 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 specifiedsize
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 setsize
parameter value, the Size of the cloud disk created is the specifiedsize
parameter value.
- If the snapshot capacity corresponding to the
- 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). - ens
Region StringId - The ID of the edge node.
- payment
Type String - The billing method of the instance. Valid values:
PayAsYouGo
. - disk
Name String - The name of the disk.
- encrypted Boolean
- Specifies whether to encrypt the new system disk. Valid values:
true
,false
(default). - kms
Key StringId - The ID of the KMS key used by the cloud disk. If
encrypted
is set totrue
, the service default key is used when KMSKeyId is empty. - size Number
- The size of the disk instance. Unit: GiB.
- snapshot
Id 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 specifiedsize
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 setsize
parameter value, the Size of the cloud disk created is the specifiedsize
parameter value.
- If the snapshot capacity corresponding to the
- 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:
- Create
Time 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 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 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 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.
- create
Time 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.
- 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). - Create
Time string - The time when the disk was created.
- Disk
Name string - The name of the disk.
- Encrypted bool
- Specifies whether to encrypt the new system disk. Valid values:
true
,false
(default). - Ens
Region stringId - The ID of the edge node.
- Kms
Key stringId - The ID of the KMS key used by the cloud disk. If
encrypted
is set totrue
, the service default key is used when KMSKeyId is empty. - Payment
Type string - The billing method of the instance. Valid values:
PayAsYouGo
. - Size int
- The size of the disk instance. Unit: GiB.
- Snapshot
Id 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 specifiedsize
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 setsize
parameter value, the Size of the cloud disk created is the specifiedsize
parameter value.
- If the snapshot capacity corresponding to the
- Status string
- The status of the disk.
- 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). - Create
Time string - The time when the disk was created.
- Disk
Name string - The name of the disk.
- Encrypted bool
- Specifies whether to encrypt the new system disk. Valid values:
true
,false
(default). - Ens
Region stringId - The ID of the edge node.
- Kms
Key stringId - The ID of the KMS key used by the cloud disk. If
encrypted
is set totrue
, the service default key is used when KMSKeyId is empty. - Payment
Type string - The billing method of the instance. Valid values:
PayAsYouGo
. - Size int
- The size of the disk instance. Unit: GiB.
- Snapshot
Id 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 specifiedsize
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 setsize
parameter value, the Size of the cloud disk created is the specifiedsize
parameter value.
- If the snapshot capacity corresponding to the
- Status string
- The status of the disk.
- 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). - create
Time String - The time when the disk was created.
- disk
Name String - The name of the disk.
- encrypted Boolean
- Specifies whether to encrypt the new system disk. Valid values:
true
,false
(default). - ens
Region StringId - The ID of the edge node.
- kms
Key StringId - The ID of the KMS key used by the cloud disk. If
encrypted
is set totrue
, the service default key is used when KMSKeyId is empty. - payment
Type String - The billing method of the instance. Valid values:
PayAsYouGo
. - size Integer
- The size of the disk instance. Unit: GiB.
- snapshot
Id 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 specifiedsize
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 setsize
parameter value, the Size of the cloud disk created is the specifiedsize
parameter value.
- If the snapshot capacity corresponding to the
- status String
- The status of the disk.
- 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). - create
Time string - The time when the disk was created.
- disk
Name string - The name of the disk.
- encrypted boolean
- Specifies whether to encrypt the new system disk. Valid values:
true
,false
(default). - ens
Region stringId - The ID of the edge node.
- kms
Key stringId - The ID of the KMS key used by the cloud disk. If
encrypted
is set totrue
, the service default key is used when KMSKeyId is empty. - payment
Type string - The billing method of the instance. Valid values:
PayAsYouGo
. - size number
- The size of the disk instance. Unit: GiB.
- snapshot
Id 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 specifiedsize
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 setsize
parameter value, the Size of the cloud disk created is the specifiedsize
parameter value.
- If the snapshot capacity corresponding to the
- status string
- The status of the disk.
- {[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_ strid - The ID of the edge node.
- kms_
key_ strid - The ID of the KMS key used by the cloud disk. If
encrypted
is set totrue
, 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 specifiedsize
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 setsize
parameter value, the Size of the cloud disk created is the specifiedsize
parameter value.
- If the snapshot capacity corresponding to the
- status str
- The status of the disk.
- 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). - create
Time String - The time when the disk was created.
- disk
Name String - The name of the disk.
- encrypted Boolean
- Specifies whether to encrypt the new system disk. Valid values:
true
,false
(default). - ens
Region StringId - The ID of the edge node.
- kms
Key StringId - The ID of the KMS key used by the cloud disk. If
encrypted
is set totrue
, the service default key is used when KMSKeyId is empty. - payment
Type String - The billing method of the instance. Valid values:
PayAsYouGo
. - size Number
- The size of the disk instance. Unit: GiB.
- snapshot
Id 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 specifiedsize
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 setsize
parameter value, the Size of the cloud disk created is the specifiedsize
parameter value.
- If the snapshot capacity corresponding to the
- status String
- The status of the disk.
- 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.