Volume
Manages a NetApp Volume.
Create a Volume Resource
new Volume(name: string, args: VolumeArgs, opts?: CustomResourceOptions);def Volume(resource_name, opts=None, account_name=None, export_policy_rules=None, location=None, name=None, pool_name=None, protocols=None, resource_group_name=None, service_level=None, storage_quota_in_gb=None, subnet_id=None, tags=None, volume_path=None, __props__=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:
- Account
Name string The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
- Pool
Name string The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group where the NetApp Volume should be created. Changing this forces a new resource to be created.
- Service
Level string The target performance of the file system. Valid values include
Premium,Standard, orUltra.- Storage
Quota intIn Gb The maximum Storage Quota allowed for a file system in Gigabytes.
- Subnet
Id string The ID of the Subnet the NetApp Volume resides in, which must have the
Microsoft.NetApp/volumesdelegation. Changing this forces a new resource to be created.- Volume
Path string A unique file path for the volume. Used when creating mount targets. Changing this forces a new resource to be created.
- Export
Policy List<VolumeRules Export Policy Rule Args> One or more
export_policy_ruleblock defined below.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
The name of the NetApp Volume. Changing this forces a new resource to be created.
- Protocols List<string>
The target volume protocol expressed as a list. Supported single value include
CIFS,NFSv3, orNFSv4.1. If argument is not defined it will default toNFSv3. Changing this forces a new resource to be created and data will be lost.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Account
Name string The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
- Pool
Name string The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group where the NetApp Volume should be created. Changing this forces a new resource to be created.
- Service
Level string The target performance of the file system. Valid values include
Premium,Standard, orUltra.- Storage
Quota intIn Gb The maximum Storage Quota allowed for a file system in Gigabytes.
- Subnet
Id string The ID of the Subnet the NetApp Volume resides in, which must have the
Microsoft.NetApp/volumesdelegation. Changing this forces a new resource to be created.- Volume
Path string A unique file path for the volume. Used when creating mount targets. Changing this forces a new resource to be created.
- Export
Policy []VolumeRules Export Policy Rule One or more
export_policy_ruleblock defined below.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
The name of the NetApp Volume. Changing this forces a new resource to be created.
- Protocols []string
The target volume protocol expressed as a list. Supported single value include
CIFS,NFSv3, orNFSv4.1. If argument is not defined it will default toNFSv3. Changing this forces a new resource to be created and data will be lost.- map[string]string
A mapping of tags to assign to the resource.
- account
Name string The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
- pool
Name string The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group where the NetApp Volume should be created. Changing this forces a new resource to be created.
- service
Level string The target performance of the file system. Valid values include
Premium,Standard, orUltra.- storage
Quota numberIn Gb The maximum Storage Quota allowed for a file system in Gigabytes.
- subnet
Id string The ID of the Subnet the NetApp Volume resides in, which must have the
Microsoft.NetApp/volumesdelegation. Changing this forces a new resource to be created.- volume
Path string A unique file path for the volume. Used when creating mount targets. Changing this forces a new resource to be created.
- export
Policy VolumeRules Export Policy Rule[] One or more
export_policy_ruleblock defined below.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
The name of the NetApp Volume. Changing this forces a new resource to be created.
- protocols string[]
The target volume protocol expressed as a list. Supported single value include
CIFS,NFSv3, orNFSv4.1. If argument is not defined it will default toNFSv3. Changing this forces a new resource to be created and data will be lost.- {[key: string]: string}
A mapping of tags to assign to the resource.
- account_
name str The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
- pool_
name str The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group where the NetApp Volume should be created. Changing this forces a new resource to be created.
- service_
level str The target performance of the file system. Valid values include
Premium,Standard, orUltra.- storage_
quota_ floatin_ gb The maximum Storage Quota allowed for a file system in Gigabytes.
- subnet_
id str The ID of the Subnet the NetApp Volume resides in, which must have the
Microsoft.NetApp/volumesdelegation. Changing this forces a new resource to be created.- volume_
path str A unique file path for the volume. Used when creating mount targets. Changing this forces a new resource to be created.
- export_
policy_ List[Volumerules Export Policy Rule] One or more
export_policy_ruleblock defined below.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
The name of the NetApp Volume. Changing this forces a new resource to be created.
- protocols List[str]
The target volume protocol expressed as a list. Supported single value include
CIFS,NFSv3, orNFSv4.1. If argument is not defined it will default toNFSv3. Changing this forces a new resource to be created and data will be lost.- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Volume resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Mount
Ip List<string>Addresses A list of IPv4 Addresses which should be used to mount the volume.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mount
Ip []stringAddresses A list of IPv4 Addresses which should be used to mount the volume.
- id string
- The provider-assigned unique ID for this managed resource.
- mount
Ip string[]Addresses A list of IPv4 Addresses which should be used to mount the volume.
- id str
- The provider-assigned unique ID for this managed resource.
- mount_
ip_ List[str]addresses A list of IPv4 Addresses which should be used to mount the volume.
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): Volumestatic get(resource_name, id, opts=None, account_name=None, export_policy_rules=None, location=None, mount_ip_addresses=None, name=None, pool_name=None, protocols=None, resource_group_name=None, service_level=None, storage_quota_in_gb=None, subnet_id=None, tags=None, volume_path=None, __props__=None);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:
- Account
Name string The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
- Export
Policy List<VolumeRules Export Policy Rule Args> One or more
export_policy_ruleblock defined below.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Mount
Ip List<string>Addresses A list of IPv4 Addresses which should be used to mount the volume.
- Name string
The name of the NetApp Volume. Changing this forces a new resource to be created.
- Pool
Name string The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
- Protocols List<string>
The target volume protocol expressed as a list. Supported single value include
CIFS,NFSv3, orNFSv4.1. If argument is not defined it will default toNFSv3. Changing this forces a new resource to be created and data will be lost.- Resource
Group stringName The name of the resource group where the NetApp Volume should be created. Changing this forces a new resource to be created.
- Service
Level string The target performance of the file system. Valid values include
Premium,Standard, orUltra.- Storage
Quota intIn Gb The maximum Storage Quota allowed for a file system in Gigabytes.
- Subnet
Id string The ID of the Subnet the NetApp Volume resides in, which must have the
Microsoft.NetApp/volumesdelegation. Changing this forces a new resource to be created.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Volume
Path string A unique file path for the volume. Used when creating mount targets. Changing this forces a new resource to be created.
- Account
Name string The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
- Export
Policy []VolumeRules Export Policy Rule One or more
export_policy_ruleblock defined below.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Mount
Ip []stringAddresses A list of IPv4 Addresses which should be used to mount the volume.
- Name string
The name of the NetApp Volume. Changing this forces a new resource to be created.
- Pool
Name string The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
- Protocols []string
The target volume protocol expressed as a list. Supported single value include
CIFS,NFSv3, orNFSv4.1. If argument is not defined it will default toNFSv3. Changing this forces a new resource to be created and data will be lost.- Resource
Group stringName The name of the resource group where the NetApp Volume should be created. Changing this forces a new resource to be created.
- Service
Level string The target performance of the file system. Valid values include
Premium,Standard, orUltra.- Storage
Quota intIn Gb The maximum Storage Quota allowed for a file system in Gigabytes.
- Subnet
Id string The ID of the Subnet the NetApp Volume resides in, which must have the
Microsoft.NetApp/volumesdelegation. Changing this forces a new resource to be created.- map[string]string
A mapping of tags to assign to the resource.
- Volume
Path string A unique file path for the volume. Used when creating mount targets. Changing this forces a new resource to be created.
- account
Name string The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
- export
Policy VolumeRules Export Policy Rule[] One or more
export_policy_ruleblock defined below.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- mount
Ip string[]Addresses A list of IPv4 Addresses which should be used to mount the volume.
- name string
The name of the NetApp Volume. Changing this forces a new resource to be created.
- pool
Name string The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
- protocols string[]
The target volume protocol expressed as a list. Supported single value include
CIFS,NFSv3, orNFSv4.1. If argument is not defined it will default toNFSv3. Changing this forces a new resource to be created and data will be lost.- resource
Group stringName The name of the resource group where the NetApp Volume should be created. Changing this forces a new resource to be created.
- service
Level string The target performance of the file system. Valid values include
Premium,Standard, orUltra.- storage
Quota numberIn Gb The maximum Storage Quota allowed for a file system in Gigabytes.
- subnet
Id string The ID of the Subnet the NetApp Volume resides in, which must have the
Microsoft.NetApp/volumesdelegation. Changing this forces a new resource to be created.- {[key: string]: string}
A mapping of tags to assign to the resource.
- volume
Path string A unique file path for the volume. Used when creating mount targets. Changing this forces a new resource to be created.
- account_
name str The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
- export_
policy_ List[Volumerules Export Policy Rule] One or more
export_policy_ruleblock defined below.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- mount_
ip_ List[str]addresses A list of IPv4 Addresses which should be used to mount the volume.
- name str
The name of the NetApp Volume. Changing this forces a new resource to be created.
- pool_
name str The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
- protocols List[str]
The target volume protocol expressed as a list. Supported single value include
CIFS,NFSv3, orNFSv4.1. If argument is not defined it will default toNFSv3. Changing this forces a new resource to be created and data will be lost.- resource_
group_ strname The name of the resource group where the NetApp Volume should be created. Changing this forces a new resource to be created.
- service_
level str The target performance of the file system. Valid values include
Premium,Standard, orUltra.- storage_
quota_ floatin_ gb The maximum Storage Quota allowed for a file system in Gigabytes.
- subnet_
id str The ID of the Subnet the NetApp Volume resides in, which must have the
Microsoft.NetApp/volumesdelegation. Changing this forces a new resource to be created.- Dict[str, str]
A mapping of tags to assign to the resource.
- volume_
path str A unique file path for the volume. Used when creating mount targets. Changing this forces a new resource to be created.
Supporting Types
VolumeExportPolicyRule
- Allowed
Clients List<string> A list of allowed clients IPv4 addresses.
- Rule
Index int The index number of the rule.
- Cifs
Enabled bool Is the CIFS protocol allowed?
- Nfsv3Enabled bool
Is the NFSv3 protocol allowed?
- Nfsv4Enabled bool
Is the NFSv4 protocol allowed?
- Protocols
Enabled string A list of allowed protocols. Valid values include
CIFS,NFSv3, orNFSv4.1. Only one value is supported at this time. This replaces the previous arguments:cifs_enabled,nfsv3_enabledandnfsv4_enabled.- Unix
Read boolOnly Is the file system on unix read only?
- Unix
Read boolWrite Is the file system on unix read and write?
- Allowed
Clients []string A list of allowed clients IPv4 addresses.
- Rule
Index int The index number of the rule.
- Cifs
Enabled bool Is the CIFS protocol allowed?
- Nfsv3Enabled bool
Is the NFSv3 protocol allowed?
- Nfsv4Enabled bool
Is the NFSv4 protocol allowed?
- Protocols
Enabled string A list of allowed protocols. Valid values include
CIFS,NFSv3, orNFSv4.1. Only one value is supported at this time. This replaces the previous arguments:cifs_enabled,nfsv3_enabledandnfsv4_enabled.- Unix
Read boolOnly Is the file system on unix read only?
- Unix
Read boolWrite Is the file system on unix read and write?
- allowed
Clients string[] A list of allowed clients IPv4 addresses.
- rule
Index number The index number of the rule.
- cifs
Enabled boolean Is the CIFS protocol allowed?
- nfsv3Enabled boolean
Is the NFSv3 protocol allowed?
- nfsv4Enabled boolean
Is the NFSv4 protocol allowed?
- protocols
Enabled string A list of allowed protocols. Valid values include
CIFS,NFSv3, orNFSv4.1. Only one value is supported at this time. This replaces the previous arguments:cifs_enabled,nfsv3_enabledandnfsv4_enabled.- unix
Read booleanOnly Is the file system on unix read only?
- unix
Read booleanWrite Is the file system on unix read and write?
- allowed
Clients List[str] A list of allowed clients IPv4 addresses.
- rule
Index float The index number of the rule.
- cifs
Enabled bool Is the CIFS protocol allowed?
- nfsv3Enabled bool
Is the NFSv3 protocol allowed?
- nfsv4Enabled bool
Is the NFSv4 protocol allowed?
- protocols
Enabled str A list of allowed protocols. Valid values include
CIFS,NFSv3, orNFSv4.1. Only one value is supported at this time. This replaces the previous arguments:cifs_enabled,nfsv3_enabledandnfsv4_enabled.- unix
Read boolOnly Is the file system on unix read only?
- unix
Read boolWrite Is the file system on unix read and write?
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.