Volume
Create a Volume Resource
new Volume(name: string, args: VolumeArgs, opts?: CustomResourceOptions);
def Volume(resource_name: str, opts: Optional[ResourceOptions] = None, billing_cycle: Optional[Union[str, BillingCycle]] = None, description: Optional[str] = None, facility: Optional[Union[str, Facility]] = None, locked: Optional[bool] = None, plan: Optional[str] = None, project_id: Optional[str] = None, size: Optional[int] = None, snapshot_policies: Optional[Sequence[VolumeSnapshotPolicyArgs]] = None)
func NewVolume(ctx *Context, name string, args VolumeArgs, opts ...ResourceOption) (*Volume, error)
public Volume(string name, VolumeArgs args, CustomResourceOptions? opts = null)
- name string
- The unique name of the resource.
- args VolumeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VolumeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VolumeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Volume Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Volume resource accepts the following input properties:
- Facility
string | Pulumi.
Equinix Metal. Facility The facility to create the volume in
- Plan string
The service plan slug of the volume
- Project
Id string The metal project ID to deploy the volume in
- Size int
The size in GB to make the volume
- Billing
Cycle string | Pulumi.Equinix Metal. Billing Cycle The billing cycle, defaults to “hourly”
- Description string
Optional description for the volume
- Locked bool
Lock or unlock the volume
- Snapshot
Policies List<Pulumi.Equinix Metal. Inputs. Volume Snapshot Policy Args> Optional list of snapshot policies
- Facility string | Facility
The facility to create the volume in
- Plan string
The service plan slug of the volume
- Project
Id string The metal project ID to deploy the volume in
- Size int
The size in GB to make the volume
- Billing
Cycle string | BillingCycle The billing cycle, defaults to “hourly”
- Description string
Optional description for the volume
- Locked bool
Lock or unlock the volume
- Snapshot
Policies []VolumeSnapshot Policy Optional list of snapshot policies
- facility string | Facility
The facility to create the volume in
- plan string
The service plan slug of the volume
- project
Id string The metal project ID to deploy the volume in
- size number
The size in GB to make the volume
- billing
Cycle string | BillingCycle The billing cycle, defaults to “hourly”
- description string
Optional description for the volume
- locked boolean
Lock or unlock the volume
- snapshot
Policies VolumeSnapshot Policy[] Optional list of snapshot policies
- facility str | Facility
The facility to create the volume in
- plan str
The service plan slug of the volume
- project_
id str The metal project ID to deploy the volume in
- size int
The size in GB to make the volume
- billing_
cycle str | BillingCycle The billing cycle, defaults to “hourly”
- description str
Optional description for the volume
- locked bool
Lock or unlock the volume
- snapshot_
policies Sequence[VolumeSnapshot Policy Args] Optional list of snapshot policies
Outputs
All input properties are implicitly available as output properties. Additionally, the Volume resource produces the following output properties:
- Attachments
List<Pulumi.
Equinix Metal. Outputs. Volume Attachment> A list of attachments, each with it’s own
href
attribute- Created string
The timestamp for when the volume was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
The name of the volume
- State string
The state of the volume
- Updated string
The timestamp for the last time the volume was updated
- Attachments
[]Volume
Attachment Type A list of attachments, each with it’s own
href
attribute- Created string
The timestamp for when the volume was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
The name of the volume
- State string
The state of the volume
- Updated string
The timestamp for the last time the volume was updated
- attachments
Volume
Attachment[] A list of attachments, each with it’s own
href
attribute- created string
The timestamp for when the volume was created
- id string
- The provider-assigned unique ID for this managed resource.
- name string
The name of the volume
- state string
The state of the volume
- updated string
The timestamp for the last time the volume was updated
- attachments
Sequence[Volume
Attachment] A list of attachments, each with it’s own
href
attribute- created str
The timestamp for when the volume was created
- id str
- The provider-assigned unique ID for this managed resource.
- name str
The name of the volume
- state str
The state of the volume
- updated str
The timestamp for the last time the volume was updated
Look up an Existing Volume Resource
Get an existing Volume resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VolumeState, opts?: CustomResourceOptions): Volume
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, attachments: Optional[Sequence[VolumeAttachmentArgs]] = None, billing_cycle: Optional[Union[str, BillingCycle]] = None, created: Optional[str] = None, description: Optional[str] = None, facility: Optional[Union[str, Facility]] = None, locked: Optional[bool] = None, name: Optional[str] = None, plan: Optional[str] = None, project_id: Optional[str] = None, size: Optional[int] = None, snapshot_policies: Optional[Sequence[VolumeSnapshotPolicyArgs]] = None, state: Optional[str] = None, updated: Optional[str] = None) -> Volume
func GetVolume(ctx *Context, name string, id IDInput, state *VolumeState, opts ...ResourceOption) (*Volume, error)
public static Volume Get(string name, Input<string> id, VolumeState? state, CustomResourceOptions? opts = null)
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Attachments
List<Pulumi.
Equinix Metal. Inputs. Volume Attachment Args> A list of attachments, each with it’s own
href
attribute- Billing
Cycle string | Pulumi.Equinix Metal. Billing Cycle The billing cycle, defaults to “hourly”
- Created string
The timestamp for when the volume was created
- Description string
Optional description for the volume
- Facility
string | Pulumi.
Equinix Metal. Facility The facility to create the volume in
- Locked bool
Lock or unlock the volume
- Name string
The name of the volume
- Plan string
The service plan slug of the volume
- Project
Id string The metal project ID to deploy the volume in
- Size int
The size in GB to make the volume
- Snapshot
Policies List<Pulumi.Equinix Metal. Inputs. Volume Snapshot Policy Args> Optional list of snapshot policies
- State string
The state of the volume
- Updated string
The timestamp for the last time the volume was updated
- Attachments
[]Volume
Attachment Type A list of attachments, each with it’s own
href
attribute- Billing
Cycle string | BillingCycle The billing cycle, defaults to “hourly”
- Created string
The timestamp for when the volume was created
- Description string
Optional description for the volume
- Facility string | Facility
The facility to create the volume in
- Locked bool
Lock or unlock the volume
- Name string
The name of the volume
- Plan string
The service plan slug of the volume
- Project
Id string The metal project ID to deploy the volume in
- Size int
The size in GB to make the volume
- Snapshot
Policies []VolumeSnapshot Policy Optional list of snapshot policies
- State string
The state of the volume
- Updated string
The timestamp for the last time the volume was updated
- attachments
Volume
Attachment[] A list of attachments, each with it’s own
href
attribute- billing
Cycle string | BillingCycle The billing cycle, defaults to “hourly”
- created string
The timestamp for when the volume was created
- description string
Optional description for the volume
- facility string | Facility
The facility to create the volume in
- locked boolean
Lock or unlock the volume
- name string
The name of the volume
- plan string
The service plan slug of the volume
- project
Id string The metal project ID to deploy the volume in
- size number
The size in GB to make the volume
- snapshot
Policies VolumeSnapshot Policy[] Optional list of snapshot policies
- state string
The state of the volume
- updated string
The timestamp for the last time the volume was updated
- attachments
Sequence[Volume
Attachment Args] A list of attachments, each with it’s own
href
attribute- billing_
cycle str | BillingCycle The billing cycle, defaults to “hourly”
- created str
The timestamp for when the volume was created
- description str
Optional description for the volume
- facility str | Facility
The facility to create the volume in
- locked bool
Lock or unlock the volume
- name str
The name of the volume
- plan str
The service plan slug of the volume
- project_
id str The metal project ID to deploy the volume in
- size int
The size in GB to make the volume
- snapshot_
policies Sequence[VolumeSnapshot Policy Args] Optional list of snapshot policies
- state str
The state of the volume
- updated str
The timestamp for the last time the volume was updated
Supporting Types
BillingCycle
- Hourly
- hourly
- Monthly
- monthly
- Billing
Cycle Hourly - hourly
- Billing
Cycle Monthly - monthly
- Hourly
- hourly
- Monthly
- monthly
- HOURLY
- hourly
- MONTHLY
- monthly
Facility
- EWR1
- ewr1
- SJC1
- sjc1
- DFW1
- dfw1
- DFW2
- dfw2
- AMS1
- ams1
- NRT1
- nrt1
- SEA1
- sea1
- LAX1
- lax1
- ORD1
- ord1
- ATL1
- atl1
- IAD1
- iad1
- SIN1
- sin1
- HKG1
- hkg1
- SYD1
- syd1
- MRS1
- mrs1
- YYZ1
- yyz1
- FRA2
- fra2
- AM6
- am6
- DC13
- dc13
- CH3
- ch3
- DA3
- da3
- DA11
- da11
- LA4
- la4
- NY5
- ny5
- SG1
- sg1
- SV15
- sv15
- Facility
EWR1 - ewr1
- Facility
SJC1 - sjc1
- Facility
DFW1 - dfw1
- Facility
DFW2 - dfw2
- Facility
AMS1 - ams1
- Facility
NRT1 - nrt1
- Facility
SEA1 - sea1
- Facility
LAX1 - lax1
- Facility
ORD1 - ord1
- Facility
ATL1 - atl1
- Facility
IAD1 - iad1
- Facility
SIN1 - sin1
- Facility
HKG1 - hkg1
- Facility
SYD1 - syd1
- Facility
MRS1 - mrs1
- Facility
YYZ1 - yyz1
- Facility
FRA2 - fra2
- Facility
AM6 - am6
- Facility
DC13 - dc13
- Facility
CH3 - ch3
- Facility
DA3 - da3
- Facility
DA11 - da11
- Facility
LA4 - la4
- Facility
NY5 - ny5
- Facility
SG1 - sg1
- Facility
SV15 - sv15
- EWR1
- ewr1
- SJC1
- sjc1
- DFW1
- dfw1
- DFW2
- dfw2
- AMS1
- ams1
- NRT1
- nrt1
- SEA1
- sea1
- LAX1
- lax1
- ORD1
- ord1
- ATL1
- atl1
- IAD1
- iad1
- SIN1
- sin1
- HKG1
- hkg1
- SYD1
- syd1
- MRS1
- mrs1
- YYZ1
- yyz1
- FRA2
- fra2
- AM6
- am6
- DC13
- dc13
- CH3
- ch3
- DA3
- da3
- DA11
- da11
- LA4
- la4
- NY5
- ny5
- SG1
- sg1
- SV15
- sv15
- EWR1
- ewr1
- SJC1
- sjc1
- DFW1
- dfw1
- DFW2
- dfw2
- AMS1
- ams1
- NRT1
- nrt1
- SEA1
- sea1
- LAX1
- lax1
- ORD1
- ord1
- ATL1
- atl1
- IAD1
- iad1
- SIN1
- sin1
- HKG1
- hkg1
- SYD1
- syd1
- MRS1
- mrs1
- YYZ1
- yyz1
- FRA2
- fra2
- AM6
- am6
- DC13
- dc13
- CH3
- ch3
- DA3
- da3
- DA11
- da11
- LA4
- la4
- NY5
- ny5
- SG1
- sg1
- SV15
- sv15
VolumeAttachment
- Href string
- Href string
- href string
- href str
VolumeSnapshotPolicy
- Snapshot
Count int - Snapshot
Frequency string
- Snapshot
Count int - Snapshot
Frequency string
- snapshot
Count number - snapshot
Frequency string
- snapshot_
count int - snapshot_
frequency str
Package Details
- Repository
- https://github.com/pulumi/pulumi-equinix-metal
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
metal
Terraform Provider.