Show / Hide Table of Contents

Class DiskAttachment

Provides an Alicloud ECS Disk Attachment as a resource, to attach and detach disks from ECS Instances.

Inheritance
System.Object
Resource
CustomResource
DiskAttachment
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Ecs
Assembly: Pulumi.AliCloud.dll
Syntax
public class DiskAttachment : CustomResource

Constructors

View Source

DiskAttachment(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 Source

DeviceName

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>
View Source

DiskId

ID of the Disk to be attached.

Declaration
public Output<string> DiskId { get; }
Property Value
Type Description
Output<System.String>
View Source

InstanceId

ID of the Instance to attach to.

Declaration
public Output<string> InstanceId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.