Class Volume
Inherited Members
Namespace: Pulumi.Packet
Assembly: Pulumi.Packet.dll
Syntax
public class Volume : CustomResource
Constructors
View SourceVolume(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 SourceAttachments
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>> |
BillingCycle
The billing cycle, defaults to "hourly"
Declaration
public Output<string> BillingCycle { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Created
The timestamp for when the volume was created
Declaration
public Output<string> Created { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
Optional description for the volume
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Facility
The facility to create the volume in
Declaration
public Output<string> Facility { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Locked
Lock or unlock the volume
Declaration
public Output<bool?> Locked { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Name
The name of the volume
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Plan
The service plan slug of the volume
Declaration
public Output<string> Plan { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ProjectId
The packet project ID to deploy the volume in
Declaration
public Output<string> ProjectId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Size
The size in GB to make the volume
Declaration
public Output<int> Size { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
SnapshotPolicies
Optional list of snapshot policies
Declaration
public Output<ImmutableArray<VolumeSnapshotPolicy>> SnapshotPolicies { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<VolumeSnapshotPolicy>> |
State
The state of the volume
Declaration
public Output<string> State { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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 SourceGet(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 |