Class DiskAttachment
Provides an Alicloud ECS Disk Attachment as a resource, to attach and detach disks from ECS Instances.
Inherited Members
Namespace: Pulumi.AliCloud.Ecs
Assembly: Pulumi.AliCloud.dll
Syntax
public class DiskAttachment : CustomResource
Constructors
View SourceDiskAttachment(String, DiskAttachmentArgs, CustomResourceOptions)
Create a DiskAttachment resource with the given unique name, arguments, and options.
Declaration
public DiskAttachment(string name, DiskAttachmentArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| DiskAttachmentArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDeviceName
The device name has been deprecated, and when attaching disk, it will be allocated automatically by system according to default order from /dev/xvdb to /dev/xvdz.
Declaration
public Output<string> DeviceName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DiskId
ID of the Disk to be attached.
Declaration
public Output<string> DiskId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
InstanceId
ID of the Instance to attach to.
Declaration
public Output<string> InstanceId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, DiskAttachmentState, CustomResourceOptions)
Get an existing DiskAttachment resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static DiskAttachment Get(string name, Input<string> id, DiskAttachmentState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| DiskAttachmentState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| DiskAttachment |