Show / Hide Table of Contents

Class Volume

Inheritance
System.Object
Resource
CustomResource
Volume
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.Packet
Assembly: Pulumi.Packet.dll
Syntax
public class Volume : CustomResource

Constructors

View Source

Volume(String, VolumeArgs, CustomResourceOptions)

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

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

The unique name of the resource

VolumeArgs 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

Attachments

A list of attachments, each with it's own href attribute

Declaration
public Output<ImmutableArray<VolumeAttachment>> Attachments { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<VolumeAttachment>>
View Source

BillingCycle

The billing cycle, defaults to "hourly"

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

Created

The timestamp for when the volume was created

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

Description

Optional description for the volume

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

Facility

The facility to create the volume in

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

Locked

Lock or unlock the volume

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

Name

The name of the volume

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

Plan

The service plan slug of the volume

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

ProjectId

The packet project ID to deploy the volume in

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

Size

The size in GB to make the volume

Declaration
public Output<int> Size { get; }
Property Value
Type Description
Output<System.Int32>
View Source

SnapshotPolicies

Optional list of snapshot policies

Declaration
public Output<ImmutableArray<VolumeSnapshotPolicy>> SnapshotPolicies { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<VolumeSnapshotPolicy>>
View Source

State

The state of the volume

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

Updated

The timestamp for the last time the volume was updated

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

Methods

View Source

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

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

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

VolumeState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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