We recommend using Azure Native.
Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi
azure.netapp.getVolume
Explore with Pulumi AI
Uses this data source to access information about an existing NetApp Volume.
NetApp Volume Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.netapp.getVolume({
resourceGroupName: "acctestRG",
accountName: "acctestnetappaccount",
poolName: "acctestnetapppool",
name: "example-volume",
});
export const netappVolumeId = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.netapp.get_volume(resource_group_name="acctestRG",
account_name="acctestnetappaccount",
pool_name="acctestnetapppool",
name="example-volume")
pulumi.export("netappVolumeId", example.id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/netapp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := netapp.LookupVolume(ctx, &netapp.LookupVolumeArgs{
ResourceGroupName: "acctestRG",
AccountName: "acctestnetappaccount",
PoolName: "acctestnetapppool",
Name: "example-volume",
}, nil)
if err != nil {
return err
}
ctx.Export("netappVolumeId", example.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.NetApp.GetVolume.Invoke(new()
{
ResourceGroupName = "acctestRG",
AccountName = "acctestnetappaccount",
PoolName = "acctestnetapppool",
Name = "example-volume",
});
return new Dictionary<string, object?>
{
["netappVolumeId"] = example.Apply(getVolumeResult => getVolumeResult.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.netapp.NetappFunctions;
import com.pulumi.azure.netapp.inputs.GetVolumeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = NetappFunctions.getVolume(GetVolumeArgs.builder()
.resourceGroupName("acctestRG")
.accountName("acctestnetappaccount")
.poolName("acctestnetapppool")
.name("example-volume")
.build());
ctx.export("netappVolumeId", example.applyValue(getVolumeResult -> getVolumeResult.id()));
}
}
variables:
example:
fn::invoke:
Function: azure:netapp:getVolume
Arguments:
resourceGroupName: acctestRG
accountName: acctestnetappaccount
poolName: acctestnetapppool
name: example-volume
outputs:
netappVolumeId: ${example.id}
Using getVolume
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVolume(args: GetVolumeArgs, opts?: InvokeOptions): Promise<GetVolumeResult>
function getVolumeOutput(args: GetVolumeOutputArgs, opts?: InvokeOptions): Output<GetVolumeResult>
def get_volume(account_name: Optional[str] = None,
name: Optional[str] = None,
pool_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
security_style: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVolumeResult
def get_volume_output(account_name: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
pool_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
security_style: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVolumeResult]
func LookupVolume(ctx *Context, args *LookupVolumeArgs, opts ...InvokeOption) (*LookupVolumeResult, error)
func LookupVolumeOutput(ctx *Context, args *LookupVolumeOutputArgs, opts ...InvokeOption) LookupVolumeResultOutput
> Note: This function is named LookupVolume
in the Go SDK.
public static class GetVolume
{
public static Task<GetVolumeResult> InvokeAsync(GetVolumeArgs args, InvokeOptions? opts = null)
public static Output<GetVolumeResult> Invoke(GetVolumeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVolumeResult> getVolume(GetVolumeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:netapp/getVolume:getVolume
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Name string - The name of the NetApp account where the NetApp pool exists.
- Name string
- The name of the NetApp Volume.
- Pool
Name string - The name of the NetApp pool where the NetApp volume exists.
- Resource
Group stringName - The Name of the Resource Group where the NetApp Volume exists.
- Security
Style string - Volume security style
- Account
Name string - The name of the NetApp account where the NetApp pool exists.
- Name string
- The name of the NetApp Volume.
- Pool
Name string - The name of the NetApp pool where the NetApp volume exists.
- Resource
Group stringName - The Name of the Resource Group where the NetApp Volume exists.
- Security
Style string - Volume security style
- account
Name String - The name of the NetApp account where the NetApp pool exists.
- name String
- The name of the NetApp Volume.
- pool
Name String - The name of the NetApp pool where the NetApp volume exists.
- resource
Group StringName - The Name of the Resource Group where the NetApp Volume exists.
- security
Style String - Volume security style
- account
Name string - The name of the NetApp account where the NetApp pool exists.
- name string
- The name of the NetApp Volume.
- pool
Name string - The name of the NetApp pool where the NetApp volume exists.
- resource
Group stringName - The Name of the Resource Group where the NetApp Volume exists.
- security
Style string - Volume security style
- account_
name str - The name of the NetApp account where the NetApp pool exists.
- name str
- The name of the NetApp Volume.
- pool_
name str - The name of the NetApp pool where the NetApp volume exists.
- resource_
group_ strname - The Name of the Resource Group where the NetApp Volume exists.
- security_
style str - Volume security style
- account
Name String - The name of the NetApp account where the NetApp pool exists.
- name String
- The name of the NetApp Volume.
- pool
Name String - The name of the NetApp pool where the NetApp volume exists.
- resource
Group StringName - The Name of the Resource Group where the NetApp Volume exists.
- security
Style String - Volume security style
getVolume Result
The following output properties are available:
- Account
Name string - Data
Protection List<GetReplications Volume Data Protection Replication> - Volume data protection block
- Encryption
Key stringSource - Id string
- The provider-assigned unique ID for this managed resource.
- Key
Vault stringPrivate Endpoint Id - Location string
- The Azure Region where the NetApp Volume exists.
- Mount
Ip List<string>Addresses - A list of IPv4 Addresses which should be used to mount the volume.
- Name string
- Network
Features string - Network features in use
Basic
orStandard
. - Pool
Name string - Protocols List<string>
- A list of protocol types enabled on volume.
- Resource
Group stringName - Service
Level string - The service level of the file system.
- Smb
Access boolBased Enumeration Enabled - Limits enumeration of files and folders (that is, listing the contents) in SMB only to users with allowed access on the share.
- Smb
Non boolBrowsable Enabled - Limits clients from browsing for an SMB share.
- Storage
Quota intIn Gb - The maximum Storage Quota in Gigabytes allowed for a file system.
- Subnet
Id string - The ID of a Subnet in which the NetApp Volume resides.
- Volume
Path string - The unique file path of the volume.
- Zone string
- The Availability Zone in which the Volume is located.
- Security
Style string - Volume security style
- Account
Name string - Data
Protection []GetReplications Volume Data Protection Replication - Volume data protection block
- Encryption
Key stringSource - Id string
- The provider-assigned unique ID for this managed resource.
- Key
Vault stringPrivate Endpoint Id - Location string
- The Azure Region where the NetApp Volume exists.
- Mount
Ip []stringAddresses - A list of IPv4 Addresses which should be used to mount the volume.
- Name string
- Network
Features string - Network features in use
Basic
orStandard
. - Pool
Name string - Protocols []string
- A list of protocol types enabled on volume.
- Resource
Group stringName - Service
Level string - The service level of the file system.
- Smb
Access boolBased Enumeration Enabled - Limits enumeration of files and folders (that is, listing the contents) in SMB only to users with allowed access on the share.
- Smb
Non boolBrowsable Enabled - Limits clients from browsing for an SMB share.
- Storage
Quota intIn Gb - The maximum Storage Quota in Gigabytes allowed for a file system.
- Subnet
Id string - The ID of a Subnet in which the NetApp Volume resides.
- Volume
Path string - The unique file path of the volume.
- Zone string
- The Availability Zone in which the Volume is located.
- Security
Style string - Volume security style
- account
Name String - data
Protection List<GetReplications Volume Data Protection Replication> - Volume data protection block
- encryption
Key StringSource - id String
- The provider-assigned unique ID for this managed resource.
- key
Vault StringPrivate Endpoint Id - location String
- The Azure Region where the NetApp Volume exists.
- mount
Ip List<String>Addresses - A list of IPv4 Addresses which should be used to mount the volume.
- name String
- network
Features String - Network features in use
Basic
orStandard
. - pool
Name String - protocols List<String>
- A list of protocol types enabled on volume.
- resource
Group StringName - service
Level String - The service level of the file system.
- smb
Access BooleanBased Enumeration Enabled - Limits enumeration of files and folders (that is, listing the contents) in SMB only to users with allowed access on the share.
- smb
Non BooleanBrowsable Enabled - Limits clients from browsing for an SMB share.
- storage
Quota IntegerIn Gb - The maximum Storage Quota in Gigabytes allowed for a file system.
- subnet
Id String - The ID of a Subnet in which the NetApp Volume resides.
- volume
Path String - The unique file path of the volume.
- zone String
- The Availability Zone in which the Volume is located.
- security
Style String - Volume security style
- account
Name string - data
Protection GetReplications Volume Data Protection Replication[] - Volume data protection block
- encryption
Key stringSource - id string
- The provider-assigned unique ID for this managed resource.
- key
Vault stringPrivate Endpoint Id - location string
- The Azure Region where the NetApp Volume exists.
- mount
Ip string[]Addresses - A list of IPv4 Addresses which should be used to mount the volume.
- name string
- network
Features string - Network features in use
Basic
orStandard
. - pool
Name string - protocols string[]
- A list of protocol types enabled on volume.
- resource
Group stringName - service
Level string - The service level of the file system.
- smb
Access booleanBased Enumeration Enabled - Limits enumeration of files and folders (that is, listing the contents) in SMB only to users with allowed access on the share.
- smb
Non booleanBrowsable Enabled - Limits clients from browsing for an SMB share.
- storage
Quota numberIn Gb - The maximum Storage Quota in Gigabytes allowed for a file system.
- subnet
Id string - The ID of a Subnet in which the NetApp Volume resides.
- volume
Path string - The unique file path of the volume.
- zone string
- The Availability Zone in which the Volume is located.
- security
Style string - Volume security style
- account_
name str - data_
protection_ Sequence[Getreplications Volume Data Protection Replication] - Volume data protection block
- encryption_
key_ strsource - id str
- The provider-assigned unique ID for this managed resource.
- key_
vault_ strprivate_ endpoint_ id - location str
- The Azure Region where the NetApp Volume exists.
- mount_
ip_ Sequence[str]addresses - A list of IPv4 Addresses which should be used to mount the volume.
- name str
- network_
features str - Network features in use
Basic
orStandard
. - pool_
name str - protocols Sequence[str]
- A list of protocol types enabled on volume.
- resource_
group_ strname - service_
level str - The service level of the file system.
- smb_
access_ boolbased_ enumeration_ enabled - Limits enumeration of files and folders (that is, listing the contents) in SMB only to users with allowed access on the share.
- smb_
non_ boolbrowsable_ enabled - Limits clients from browsing for an SMB share.
- storage_
quota_ intin_ gb - The maximum Storage Quota in Gigabytes allowed for a file system.
- subnet_
id str - The ID of a Subnet in which the NetApp Volume resides.
- volume_
path str - The unique file path of the volume.
- zone str
- The Availability Zone in which the Volume is located.
- security_
style str - Volume security style
- account
Name String - data
Protection List<Property Map>Replications - Volume data protection block
- encryption
Key StringSource - id String
- The provider-assigned unique ID for this managed resource.
- key
Vault StringPrivate Endpoint Id - location String
- The Azure Region where the NetApp Volume exists.
- mount
Ip List<String>Addresses - A list of IPv4 Addresses which should be used to mount the volume.
- name String
- network
Features String - Network features in use
Basic
orStandard
. - pool
Name String - protocols List<String>
- A list of protocol types enabled on volume.
- resource
Group StringName - service
Level String - The service level of the file system.
- smb
Access BooleanBased Enumeration Enabled - Limits enumeration of files and folders (that is, listing the contents) in SMB only to users with allowed access on the share.
- smb
Non BooleanBrowsable Enabled - Limits clients from browsing for an SMB share.
- storage
Quota NumberIn Gb - The maximum Storage Quota in Gigabytes allowed for a file system.
- subnet
Id String - The ID of a Subnet in which the NetApp Volume resides.
- volume
Path String - The unique file path of the volume.
- zone String
- The Availability Zone in which the Volume is located.
- security
Style String - Volume security style
Supporting Types
GetVolumeDataProtectionReplication
- Endpoint
Type string - The endpoint type.
- Remote
Volume stringLocation - Location of the primary volume.
- Remote
Volume stringResource Id - Resource ID of the primary volume.
- Replication
Frequency string - Frequency of replication.
- Endpoint
Type string - The endpoint type.
- Remote
Volume stringLocation - Location of the primary volume.
- Remote
Volume stringResource Id - Resource ID of the primary volume.
- Replication
Frequency string - Frequency of replication.
- endpoint
Type String - The endpoint type.
- remote
Volume StringLocation - Location of the primary volume.
- remote
Volume StringResource Id - Resource ID of the primary volume.
- replication
Frequency String - Frequency of replication.
- endpoint
Type string - The endpoint type.
- remote
Volume stringLocation - Location of the primary volume.
- remote
Volume stringResource Id - Resource ID of the primary volume.
- replication
Frequency string - Frequency of replication.
- endpoint_
type str - The endpoint type.
- remote_
volume_ strlocation - Location of the primary volume.
- remote_
volume_ strresource_ id - Resource ID of the primary volume.
- replication_
frequency str - Frequency of replication.
- endpoint
Type String - The endpoint type.
- remote
Volume StringLocation - Location of the primary volume.
- remote
Volume StringResource Id - Resource ID of the primary volume.
- replication
Frequency String - Frequency of replication.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.