Show / Hide Table of Contents

Class Disk

Inheritance
System.Object
Resource
CustomResource
Disk
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 Disk : CustomResource

Constructors

View Source

Disk(String, DiskArgs, CustomResourceOptions)

Create a Disk resource with the given unique name, arguments, and options.

Declaration
public Disk(string name, DiskArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

DiskArgs 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

AvailabilityZone

The Zone to create the disk in.

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

Category

Category of the disk. Valid values are cloud, cloud_efficiency, cloud_ssd, cloud_essd. Default is cloud_efficiency.

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

DeleteAutoSnapshot

Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.

Declaration
public Output<bool?> DeleteAutoSnapshot { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

DeleteWithInstance

Indicates whether the disk is released together with the instance: Default value: false.

Declaration
public Output<bool?> DeleteWithInstance { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

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 Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

EnableAutoSnapshot

Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.

Declaration
public Output<bool?> EnableAutoSnapshot { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

Encrypted

If true, the disk will be encrypted, conflict with snapshot_id.

Declaration
public Output<bool?> Encrypted { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

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 Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupId

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. Recommend cloud_efficiency and cloud_ssd disk.

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

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 Output<int> Size { get; }
Property Value
Type Description
Output<System.Int32>
View Source

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 Output<string> SnapshotId { get; }
Property Value
Type Description
Output<System.String>
View Source

Status

The disk status.

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

Tags

A mapping of tags to assign to the resource.

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(String, Input<String>, DiskState, CustomResourceOptions)

Get an existing Disk resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Disk Get(string name, Input<string> id, DiskState 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.

DiskState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Disk
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.