Alibaba Cloud v3.37.0, May 15 23
Alibaba Cloud v3.37.0, May 15 23
alicloud.ecs.Disk
Explore with Pulumi AI
Provides a ECS disk resource.
DEPRECATED: This resource has been renamed to alicloud.ecs.EcsDisk from version 1.122.0.
NOTE: One of
size
orsnapshot_id
is required when specifying an ECS disk. If all of them be specified,size
must more than the size of snapshot whichsnapshot_id
represents. Currently,alicloud.ecs.Disk
doesn’t resize disk.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// Create a new ECS disk.
var ecsDisk = new AliCloud.Ecs.Disk("ecsDisk", new()
{
AvailabilityZone = "cn-beijing-b",
Category = "cloud_efficiency",
Description = "Hello ecs disk.",
Encrypted = true,
KmsKeyId = "2a6767f0-a16c-4679-a60f-13bf*****",
Size = 30,
Tags =
{
{ "Name", "TerraformTest" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ecs.NewDisk(ctx, "ecsDisk", &ecs.DiskArgs{
AvailabilityZone: pulumi.String("cn-beijing-b"),
Category: pulumi.String("cloud_efficiency"),
Description: pulumi.String("Hello ecs disk."),
Encrypted: pulumi.Bool(true),
KmsKeyId: pulumi.String("2a6767f0-a16c-4679-a60f-13bf*****"),
Size: pulumi.Int(30),
Tags: pulumi.AnyMap{
"Name": pulumi.Any("TerraformTest"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.Disk;
import com.pulumi.alicloud.ecs.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) {
var ecsDisk = new Disk("ecsDisk", DiskArgs.builder()
.availabilityZone("cn-beijing-b")
.category("cloud_efficiency")
.description("Hello ecs disk.")
.encrypted(true)
.kmsKeyId("2a6767f0-a16c-4679-a60f-13bf*****")
.size("30")
.tags(Map.of("Name", "TerraformTest"))
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
# Create a new ECS disk.
ecs_disk = alicloud.ecs.Disk("ecsDisk",
availability_zone="cn-beijing-b",
category="cloud_efficiency",
description="Hello ecs disk.",
encrypted=True,
kms_key_id="2a6767f0-a16c-4679-a60f-13bf*****",
size=30,
tags={
"Name": "TerraformTest",
})
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Create a new ECS disk.
const ecsDisk = new alicloud.ecs.Disk("ecsDisk", {
availabilityZone: "cn-beijing-b",
category: "cloud_efficiency",
description: "Hello ecs disk.",
encrypted: true,
kmsKeyId: "2a6767f0-a16c-4679-a60f-13bf*****",
size: 30,
tags: {
Name: "TerraformTest",
},
});
resources:
# Create a new ECS disk.
ecsDisk:
type: alicloud:ecs:Disk
properties:
# cn-beijing
availabilityZone: cn-beijing-b
category: cloud_efficiency
description: Hello ecs disk.
encrypted: true
kmsKeyId: 2a6767f0-a16c-4679-a60f-13bf*****
size: '30'
tags:
Name: TerraformTest
Create Disk Resource
new Disk(name: string, args?: DiskArgs, opts?: CustomResourceOptions);
@overload
def Disk(resource_name: str,
opts: Optional[ResourceOptions] = None,
advanced_features: Optional[str] = None,
availability_zone: Optional[str] = None,
category: Optional[str] = None,
dedicated_block_storage_cluster_id: Optional[str] = None,
delete_auto_snapshot: Optional[bool] = None,
delete_with_instance: Optional[bool] = None,
description: Optional[str] = None,
disk_name: Optional[str] = None,
dry_run: Optional[bool] = None,
enable_auto_snapshot: Optional[bool] = None,
encrypt_algorithm: Optional[str] = None,
encrypted: Optional[bool] = None,
instance_id: Optional[str] = None,
kms_key_id: Optional[str] = None,
name: Optional[str] = None,
payment_type: Optional[str] = None,
performance_level: Optional[str] = None,
resource_group_id: Optional[str] = None,
size: Optional[int] = None,
snapshot_id: Optional[str] = None,
storage_set_id: Optional[str] = None,
storage_set_partition_number: Optional[int] = None,
tags: Optional[Mapping[str, Any]] = None,
type: Optional[str] = None,
zone_id: Optional[str] = None)
@overload
def Disk(resource_name: str,
args: Optional[DiskArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewDisk(ctx *Context, name string, args *DiskArgs, opts ...ResourceOption) (*Disk, error)
public Disk(string name, DiskArgs? args = null, CustomResourceOptions? opts = null)
type: alicloud:ecs:Disk
properties: # The arguments to resource properties.
options: # 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.
- 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.
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:
- Advanced
Features string - Availability
Zone string The Zone to create the disk in.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- Category string
Category of the disk. Valid values are
cloud
,cloud_efficiency
,cloud_ssd
,cloud_essd
. Default iscloud_efficiency
.- Dedicated
Block stringStorage Cluster Id - Delete
Auto boolSnapshot Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.
- Delete
With boolInstance Indicates whether the disk is released together with the instance: Default value: false.
- Description string
Description of the disk. This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- Disk
Name string - Dry
Run bool - Enable
Auto boolSnapshot Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.
- Encrypt
Algorithm string - Encrypted bool
If true, the disk will be encrypted, conflict with
snapshot_id
.- Instance
Id string - Kms
Key stringId The ID of the KMS key corresponding to the data disk, The specified parameter
Encrypted
must betrue
when KmsKeyId is not empty.- Name string
Name of the ECS disk. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Default value is null.
Field 'name' has been deprecated from provider version 1.122.0. New field 'disk_name' instead.
- Payment
Type string - Performance
Level string Specifies the performance level of an ESSD when you create the ESSD. Default value:
PL1
. Valid values:- Resource
Group stringId The Id of resource group which the disk belongs.
NOTE: Disk category
cloud
has been outdated and it only can be used none I/O Optimized ECS instances. Recommendcloud_efficiency
andcloud_ssd
disk.- Size int
The size of the disk in GiBs. When resize the disk, the new size must be greater than the former value, or you would get an error
InvalidDiskSize.TooSmall
.- Snapshot
Id string A snapshot to base the disk off of. If the disk size required by snapshot is greater than
size
, thesize
will be ignored, conflict withencrypted
.- Storage
Set stringId - Storage
Set intPartition Number - Dictionary<string, object>
A mapping of tags to assign to the resource.
- Type string
- Zone
Id string
- Advanced
Features string - Availability
Zone string The Zone to create the disk in.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- Category string
Category of the disk. Valid values are
cloud
,cloud_efficiency
,cloud_ssd
,cloud_essd
. Default iscloud_efficiency
.- Dedicated
Block stringStorage Cluster Id - Delete
Auto boolSnapshot Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.
- Delete
With boolInstance Indicates whether the disk is released together with the instance: Default value: false.
- Description string
Description of the disk. This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- Disk
Name string - Dry
Run bool - Enable
Auto boolSnapshot Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.
- Encrypt
Algorithm string - Encrypted bool
If true, the disk will be encrypted, conflict with
snapshot_id
.- Instance
Id string - Kms
Key stringId The ID of the KMS key corresponding to the data disk, The specified parameter
Encrypted
must betrue
when KmsKeyId is not empty.- Name string
Name of the ECS disk. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Default value is null.
Field 'name' has been deprecated from provider version 1.122.0. New field 'disk_name' instead.
- Payment
Type string - Performance
Level string Specifies the performance level of an ESSD when you create the ESSD. Default value:
PL1
. Valid values:- Resource
Group stringId The Id of resource group which the disk belongs.
NOTE: Disk category
cloud
has been outdated and it only can be used none I/O Optimized ECS instances. Recommendcloud_efficiency
andcloud_ssd
disk.- Size int
The size of the disk in GiBs. When resize the disk, the new size must be greater than the former value, or you would get an error
InvalidDiskSize.TooSmall
.- Snapshot
Id string A snapshot to base the disk off of. If the disk size required by snapshot is greater than
size
, thesize
will be ignored, conflict withencrypted
.- Storage
Set stringId - Storage
Set intPartition Number - map[string]interface{}
A mapping of tags to assign to the resource.
- Type string
- Zone
Id string
- advanced
Features String - availability
Zone String The Zone to create the disk in.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- category String
Category of the disk. Valid values are
cloud
,cloud_efficiency
,cloud_ssd
,cloud_essd
. Default iscloud_efficiency
.- dedicated
Block StringStorage Cluster Id - delete
Auto BooleanSnapshot Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.
- delete
With BooleanInstance Indicates whether the disk is released together with the instance: Default value: false.
- description String
Description of the disk. This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- disk
Name String - dry
Run Boolean - enable
Auto BooleanSnapshot Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.
- encrypt
Algorithm String - encrypted Boolean
If true, the disk will be encrypted, conflict with
snapshot_id
.- instance
Id String - kms
Key StringId The ID of the KMS key corresponding to the data disk, The specified parameter
Encrypted
must betrue
when KmsKeyId is not empty.- name String
Name of the ECS disk. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Default value is null.
Field 'name' has been deprecated from provider version 1.122.0. New field 'disk_name' instead.
- payment
Type String - performance
Level String Specifies the performance level of an ESSD when you create the ESSD. Default value:
PL1
. Valid values:- resource
Group StringId The Id of resource group which the disk belongs.
NOTE: Disk category
cloud
has been outdated and it only can be used none I/O Optimized ECS instances. Recommendcloud_efficiency
andcloud_ssd
disk.- size Integer
The size of the disk in GiBs. When resize the disk, the new size must be greater than the former value, or you would get an error
InvalidDiskSize.TooSmall
.- snapshot
Id String A snapshot to base the disk off of. If the disk size required by snapshot is greater than
size
, thesize
will be ignored, conflict withencrypted
.- storage
Set StringId - storage
Set IntegerPartition Number - Map<String,Object>
A mapping of tags to assign to the resource.
- type String
- zone
Id String
- advanced
Features string - availability
Zone string The Zone to create the disk in.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- category string
Category of the disk. Valid values are
cloud
,cloud_efficiency
,cloud_ssd
,cloud_essd
. Default iscloud_efficiency
.- dedicated
Block stringStorage Cluster Id - delete
Auto booleanSnapshot Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.
- delete
With booleanInstance Indicates whether the disk is released together with the instance: Default value: false.
- description string
Description of the disk. This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- disk
Name string - dry
Run boolean - enable
Auto booleanSnapshot Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.
- encrypt
Algorithm string - encrypted boolean
If true, the disk will be encrypted, conflict with
snapshot_id
.- instance
Id string - kms
Key stringId The ID of the KMS key corresponding to the data disk, The specified parameter
Encrypted
must betrue
when KmsKeyId is not empty.- name string
Name of the ECS disk. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Default value is null.
Field 'name' has been deprecated from provider version 1.122.0. New field 'disk_name' instead.
- payment
Type string - performance
Level string Specifies the performance level of an ESSD when you create the ESSD. Default value:
PL1
. Valid values:- resource
Group stringId The Id of resource group which the disk belongs.
NOTE: Disk category
cloud
has been outdated and it only can be used none I/O Optimized ECS instances. Recommendcloud_efficiency
andcloud_ssd
disk.- size number
The size of the disk in GiBs. When resize the disk, the new size must be greater than the former value, or you would get an error
InvalidDiskSize.TooSmall
.- snapshot
Id string A snapshot to base the disk off of. If the disk size required by snapshot is greater than
size
, thesize
will be ignored, conflict withencrypted
.- storage
Set stringId - storage
Set numberPartition Number - {[key: string]: any}
A mapping of tags to assign to the resource.
- type string
- zone
Id string
- advanced_
features str - availability_
zone str The Zone to create the disk in.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- category str
Category of the disk. Valid values are
cloud
,cloud_efficiency
,cloud_ssd
,cloud_essd
. Default iscloud_efficiency
.- dedicated_
block_ strstorage_ cluster_ id - delete_
auto_ boolsnapshot Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.
- delete_
with_ boolinstance Indicates whether the disk is released together with the instance: Default value: false.
- description str
Description of the disk. This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- disk_
name str - dry_
run bool - enable_
auto_ boolsnapshot Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.
- encrypt_
algorithm str - encrypted bool
If true, the disk will be encrypted, conflict with
snapshot_id
.- instance_
id str - kms_
key_ strid The ID of the KMS key corresponding to the data disk, The specified parameter
Encrypted
must betrue
when KmsKeyId is not empty.- name str
Name of the ECS disk. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Default value is null.
Field 'name' has been deprecated from provider version 1.122.0. New field 'disk_name' instead.
- payment_
type str - performance_
level str Specifies the performance level of an ESSD when you create the ESSD. Default value:
PL1
. Valid values:- resource_
group_ strid The Id of resource group which the disk belongs.
NOTE: Disk category
cloud
has been outdated and it only can be used none I/O Optimized ECS instances. Recommendcloud_efficiency
andcloud_ssd
disk.- size int
The size of the disk in GiBs. When resize the disk, the new size must be greater than the former value, or you would get an error
InvalidDiskSize.TooSmall
.- snapshot_
id str A snapshot to base the disk off of. If the disk size required by snapshot is greater than
size
, thesize
will be ignored, conflict withencrypted
.- storage_
set_ strid - storage_
set_ intpartition_ number - Mapping[str, Any]
A mapping of tags to assign to the resource.
- type str
- zone_
id str
- advanced
Features String - availability
Zone String The Zone to create the disk in.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- category String
Category of the disk. Valid values are
cloud
,cloud_efficiency
,cloud_ssd
,cloud_essd
. Default iscloud_efficiency
.- dedicated
Block StringStorage Cluster Id - delete
Auto BooleanSnapshot Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.
- delete
With BooleanInstance Indicates whether the disk is released together with the instance: Default value: false.
- description String
Description of the disk. This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- disk
Name String - dry
Run Boolean - enable
Auto BooleanSnapshot Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.
- encrypt
Algorithm String - encrypted Boolean
If true, the disk will be encrypted, conflict with
snapshot_id
.- instance
Id String - kms
Key StringId The ID of the KMS key corresponding to the data disk, The specified parameter
Encrypted
must betrue
when KmsKeyId is not empty.- name String
Name of the ECS disk. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Default value is null.
Field 'name' has been deprecated from provider version 1.122.0. New field 'disk_name' instead.
- payment
Type String - performance
Level String Specifies the performance level of an ESSD when you create the ESSD. Default value:
PL1
. Valid values:- resource
Group StringId The Id of resource group which the disk belongs.
NOTE: Disk category
cloud
has been outdated and it only can be used none I/O Optimized ECS instances. Recommendcloud_efficiency
andcloud_ssd
disk.- size Number
The size of the disk in GiBs. When resize the disk, the new size must be greater than the former value, or you would get an error
InvalidDiskSize.TooSmall
.- snapshot
Id String A snapshot to base the disk off of. If the disk size required by snapshot is greater than
size
, thesize
will be ignored, conflict withencrypted
.- storage
Set StringId - storage
Set NumberPartition Number - Map<Any>
A mapping of tags to assign to the resource.
- type String
- zone
Id String
Outputs
All input properties are implicitly available as output properties. Additionally, the Disk resource produces the following output properties:
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,
advanced_features: Optional[str] = None,
availability_zone: Optional[str] = None,
category: Optional[str] = None,
dedicated_block_storage_cluster_id: Optional[str] = None,
delete_auto_snapshot: Optional[bool] = None,
delete_with_instance: Optional[bool] = None,
description: Optional[str] = None,
disk_name: Optional[str] = None,
dry_run: Optional[bool] = None,
enable_auto_snapshot: Optional[bool] = None,
encrypt_algorithm: Optional[str] = None,
encrypted: Optional[bool] = None,
instance_id: Optional[str] = None,
kms_key_id: Optional[str] = None,
name: Optional[str] = None,
payment_type: Optional[str] = None,
performance_level: Optional[str] = None,
resource_group_id: Optional[str] = None,
size: Optional[int] = None,
snapshot_id: Optional[str] = None,
status: Optional[str] = None,
storage_set_id: Optional[str] = None,
storage_set_partition_number: Optional[int] = None,
tags: Optional[Mapping[str, Any]] = None,
type: Optional[str] = None,
zone_id: 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.
- Advanced
Features string - Availability
Zone string The Zone to create the disk in.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- Category string
Category of the disk. Valid values are
cloud
,cloud_efficiency
,cloud_ssd
,cloud_essd
. Default iscloud_efficiency
.- Dedicated
Block stringStorage Cluster Id - Delete
Auto boolSnapshot Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.
- Delete
With boolInstance Indicates whether the disk is released together with the instance: Default value: false.
- Description string
Description of the disk. This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- Disk
Name string - Dry
Run bool - Enable
Auto boolSnapshot Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.
- Encrypt
Algorithm string - Encrypted bool
If true, the disk will be encrypted, conflict with
snapshot_id
.- Instance
Id string - Kms
Key stringId The ID of the KMS key corresponding to the data disk, The specified parameter
Encrypted
must betrue
when KmsKeyId is not empty.- Name string
Name of the ECS disk. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Default value is null.
Field 'name' has been deprecated from provider version 1.122.0. New field 'disk_name' instead.
- Payment
Type string - Performance
Level string Specifies the performance level of an ESSD when you create the ESSD. Default value:
PL1
. Valid values:- Resource
Group stringId The Id of resource group which the disk belongs.
NOTE: Disk category
cloud
has been outdated and it only can be used none I/O Optimized ECS instances. Recommendcloud_efficiency
andcloud_ssd
disk.- Size int
The size of the disk in GiBs. When resize the disk, the new size must be greater than the former value, or you would get an error
InvalidDiskSize.TooSmall
.- Snapshot
Id string A snapshot to base the disk off of. If the disk size required by snapshot is greater than
size
, thesize
will be ignored, conflict withencrypted
.- Status string
The disk status.
- Storage
Set stringId - Storage
Set intPartition Number - Dictionary<string, object>
A mapping of tags to assign to the resource.
- Type string
- Zone
Id string
- Advanced
Features string - Availability
Zone string The Zone to create the disk in.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- Category string
Category of the disk. Valid values are
cloud
,cloud_efficiency
,cloud_ssd
,cloud_essd
. Default iscloud_efficiency
.- Dedicated
Block stringStorage Cluster Id - Delete
Auto boolSnapshot Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.
- Delete
With boolInstance Indicates whether the disk is released together with the instance: Default value: false.
- Description string
Description of the disk. This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- Disk
Name string - Dry
Run bool - Enable
Auto boolSnapshot Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.
- Encrypt
Algorithm string - Encrypted bool
If true, the disk will be encrypted, conflict with
snapshot_id
.- Instance
Id string - Kms
Key stringId The ID of the KMS key corresponding to the data disk, The specified parameter
Encrypted
must betrue
when KmsKeyId is not empty.- Name string
Name of the ECS disk. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Default value is null.
Field 'name' has been deprecated from provider version 1.122.0. New field 'disk_name' instead.
- Payment
Type string - Performance
Level string Specifies the performance level of an ESSD when you create the ESSD. Default value:
PL1
. Valid values:- Resource
Group stringId The Id of resource group which the disk belongs.
NOTE: Disk category
cloud
has been outdated and it only can be used none I/O Optimized ECS instances. Recommendcloud_efficiency
andcloud_ssd
disk.- Size int
The size of the disk in GiBs. When resize the disk, the new size must be greater than the former value, or you would get an error
InvalidDiskSize.TooSmall
.- Snapshot
Id string A snapshot to base the disk off of. If the disk size required by snapshot is greater than
size
, thesize
will be ignored, conflict withencrypted
.- Status string
The disk status.
- Storage
Set stringId - Storage
Set intPartition Number - map[string]interface{}
A mapping of tags to assign to the resource.
- Type string
- Zone
Id string
- advanced
Features String - availability
Zone String The Zone to create the disk in.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- category String
Category of the disk. Valid values are
cloud
,cloud_efficiency
,cloud_ssd
,cloud_essd
. Default iscloud_efficiency
.- dedicated
Block StringStorage Cluster Id - delete
Auto BooleanSnapshot Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.
- delete
With BooleanInstance Indicates whether the disk is released together with the instance: Default value: false.
- description String
Description of the disk. This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- disk
Name String - dry
Run Boolean - enable
Auto BooleanSnapshot Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.
- encrypt
Algorithm String - encrypted Boolean
If true, the disk will be encrypted, conflict with
snapshot_id
.- instance
Id String - kms
Key StringId The ID of the KMS key corresponding to the data disk, The specified parameter
Encrypted
must betrue
when KmsKeyId is not empty.- name String
Name of the ECS disk. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Default value is null.
Field 'name' has been deprecated from provider version 1.122.0. New field 'disk_name' instead.
- payment
Type String - performance
Level String Specifies the performance level of an ESSD when you create the ESSD. Default value:
PL1
. Valid values:- resource
Group StringId The Id of resource group which the disk belongs.
NOTE: Disk category
cloud
has been outdated and it only can be used none I/O Optimized ECS instances. Recommendcloud_efficiency
andcloud_ssd
disk.- size Integer
The size of the disk in GiBs. When resize the disk, the new size must be greater than the former value, or you would get an error
InvalidDiskSize.TooSmall
.- snapshot
Id String A snapshot to base the disk off of. If the disk size required by snapshot is greater than
size
, thesize
will be ignored, conflict withencrypted
.- status String
The disk status.
- storage
Set StringId - storage
Set IntegerPartition Number - Map<String,Object>
A mapping of tags to assign to the resource.
- type String
- zone
Id String
- advanced
Features string - availability
Zone string The Zone to create the disk in.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- category string
Category of the disk. Valid values are
cloud
,cloud_efficiency
,cloud_ssd
,cloud_essd
. Default iscloud_efficiency
.- dedicated
Block stringStorage Cluster Id - delete
Auto booleanSnapshot Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.
- delete
With booleanInstance Indicates whether the disk is released together with the instance: Default value: false.
- description string
Description of the disk. This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- disk
Name string - dry
Run boolean - enable
Auto booleanSnapshot Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.
- encrypt
Algorithm string - encrypted boolean
If true, the disk will be encrypted, conflict with
snapshot_id
.- instance
Id string - kms
Key stringId The ID of the KMS key corresponding to the data disk, The specified parameter
Encrypted
must betrue
when KmsKeyId is not empty.- name string
Name of the ECS disk. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Default value is null.
Field 'name' has been deprecated from provider version 1.122.0. New field 'disk_name' instead.
- payment
Type string - performance
Level string Specifies the performance level of an ESSD when you create the ESSD. Default value:
PL1
. Valid values:- resource
Group stringId The Id of resource group which the disk belongs.
NOTE: Disk category
cloud
has been outdated and it only can be used none I/O Optimized ECS instances. Recommendcloud_efficiency
andcloud_ssd
disk.- size number
The size of the disk in GiBs. When resize the disk, the new size must be greater than the former value, or you would get an error
InvalidDiskSize.TooSmall
.- snapshot
Id string A snapshot to base the disk off of. If the disk size required by snapshot is greater than
size
, thesize
will be ignored, conflict withencrypted
.- status string
The disk status.
- storage
Set stringId - storage
Set numberPartition Number - {[key: string]: any}
A mapping of tags to assign to the resource.
- type string
- zone
Id string
- advanced_
features str - availability_
zone str The Zone to create the disk in.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- category str
Category of the disk. Valid values are
cloud
,cloud_efficiency
,cloud_ssd
,cloud_essd
. Default iscloud_efficiency
.- dedicated_
block_ strstorage_ cluster_ id - delete_
auto_ boolsnapshot Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.
- delete_
with_ boolinstance Indicates whether the disk is released together with the instance: Default value: false.
- description str
Description of the disk. This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- disk_
name str - dry_
run bool - enable_
auto_ boolsnapshot Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.
- encrypt_
algorithm str - encrypted bool
If true, the disk will be encrypted, conflict with
snapshot_id
.- instance_
id str - kms_
key_ strid The ID of the KMS key corresponding to the data disk, The specified parameter
Encrypted
must betrue
when KmsKeyId is not empty.- name str
Name of the ECS disk. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Default value is null.
Field 'name' has been deprecated from provider version 1.122.0. New field 'disk_name' instead.
- payment_
type str - performance_
level str Specifies the performance level of an ESSD when you create the ESSD. Default value:
PL1
. Valid values:- resource_
group_ strid The Id of resource group which the disk belongs.
NOTE: Disk category
cloud
has been outdated and it only can be used none I/O Optimized ECS instances. Recommendcloud_efficiency
andcloud_ssd
disk.- size int
The size of the disk in GiBs. When resize the disk, the new size must be greater than the former value, or you would get an error
InvalidDiskSize.TooSmall
.- snapshot_
id str A snapshot to base the disk off of. If the disk size required by snapshot is greater than
size
, thesize
will be ignored, conflict withencrypted
.- status str
The disk status.
- storage_
set_ strid - storage_
set_ intpartition_ number - Mapping[str, Any]
A mapping of tags to assign to the resource.
- type str
- zone_
id str
- advanced
Features String - availability
Zone String The Zone to create the disk in.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- category String
Category of the disk. Valid values are
cloud
,cloud_efficiency
,cloud_ssd
,cloud_essd
. Default iscloud_efficiency
.- dedicated
Block StringStorage Cluster Id - delete
Auto BooleanSnapshot Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.
- delete
With BooleanInstance Indicates whether the disk is released together with the instance: Default value: false.
- description String
Description of the disk. This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- disk
Name String - dry
Run Boolean - enable
Auto BooleanSnapshot Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.
- encrypt
Algorithm String - encrypted Boolean
If true, the disk will be encrypted, conflict with
snapshot_id
.- instance
Id String - kms
Key StringId The ID of the KMS key corresponding to the data disk, The specified parameter
Encrypted
must betrue
when KmsKeyId is not empty.- name String
Name of the ECS disk. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Default value is null.
Field 'name' has been deprecated from provider version 1.122.0. New field 'disk_name' instead.
- payment
Type String - performance
Level String Specifies the performance level of an ESSD when you create the ESSD. Default value:
PL1
. Valid values:- resource
Group StringId The Id of resource group which the disk belongs.
NOTE: Disk category
cloud
has been outdated and it only can be used none I/O Optimized ECS instances. Recommendcloud_efficiency
andcloud_ssd
disk.- size Number
The size of the disk in GiBs. When resize the disk, the new size must be greater than the former value, or you would get an error
InvalidDiskSize.TooSmall
.- snapshot
Id String A snapshot to base the disk off of. If the disk size required by snapshot is greater than
size
, thesize
will be ignored, conflict withencrypted
.- status String
The disk status.
- storage
Set StringId - storage
Set NumberPartition Number - Map<Any>
A mapping of tags to assign to the resource.
- type String
- zone
Id String
Import
Cloud disk can be imported using the id, e.g.
$ pulumi import alicloud:ecs/disk:Disk example d-abc12345678
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.