Class DiskArgs
Inherited Members
Namespace: Pulumi.AliCloud.Ecs
Assembly: Pulumi.AliCloud.dll
Syntax
public sealed class DiskArgs : ResourceArgs
Constructors
View SourceDiskArgs()
Declaration
public DiskArgs()
Properties
View SourceAvailabilityZone
The Zone to create the disk in.
Declaration
public Input<string> AvailabilityZone { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Category
Category of the disk. Valid values are cloud, cloud_efficiency, cloud_ssd, cloud_essd. Default is cloud_efficiency.
Declaration
public Input<string> Category { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
DeleteAutoSnapshot
Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.
Declaration
public Input<bool> DeleteAutoSnapshot { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
DeleteWithInstance
Indicates whether the disk is released together with the instance: Default value: false.
Declaration
public Input<bool> DeleteWithInstance { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Description
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.
Declaration
public Input<string> Description { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
EnableAutoSnapshot
Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.
Declaration
public Input<bool> EnableAutoSnapshot { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Encrypted
If true, the disk will be encrypted, conflict with snapshot_id.
Declaration
public Input<bool> Encrypted { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Name
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.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ResourceGroupId
The Id of resource group which the disk belongs.
NOTE: Disk category
cloudhas been outdated and it only can be used none I/O Optimized ECS instances. Recommendcloud_efficiencyandcloud_ssddisk.
Declaration
public Input<string> ResourceGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Size
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.
Declaration
public Input<int> Size { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
SnapshotId
A snapshot to base the disk off of. If the disk size required by snapshot is greater than size, the size will be ignored, conflict with encrypted.
Declaration
public Input<string> SnapshotId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Tags
A mapping of tags to assign to the resource.
Declaration
public InputMap<object> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.Object> |