GetVolume

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)
using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.NetApp.GetVolume.InvokeAsync(new Azure.NetApp.GetVolumeArgs
        {
            ResourceGroupName = "acctestRG",
            AccountName = "acctestnetappaccount",
            PoolName = "acctestnetapppool",
            Name = "example-volume",
        }));
        this.NetappVolumeId = example.Apply(example => example.Id);
    }

    [Output("netappVolumeId")]
    public Output<string> NetappVolumeId { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/netapp"
	"github.com/pulumi/pulumi/sdk/v2/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 GetVolume

function getVolume(args: GetVolumeArgs, opts?: InvokeOptions): Promise<GetVolumeResult>
function  get_volume(account_name=None, name=None, pool_name=None, resource_group_name=None, opts=None)
func LookupVolume(ctx *Context, args *LookupVolumeArgs, opts ...InvokeOption) (*LookupVolumeResult, error)

Note: This function is named LookupVolume in the Go SDK.

public static class GetVolume {
    public static Task<GetVolumeResult> InvokeAsync(GetVolumeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

AccountName string

The name of the NetApp account where the NetApp pool exists.

Name string

The name of the NetApp Volume.

PoolName string

The name of the NetApp pool where the NetApp volume exists.

ResourceGroupName string

The Name of the Resource Group where the NetApp Volume exists.

AccountName string

The name of the NetApp account where the NetApp pool exists.

Name string

The name of the NetApp Volume.

PoolName string

The name of the NetApp pool where the NetApp volume exists.

ResourceGroupName string

The Name of the Resource Group where the NetApp Volume exists.

accountName string

The name of the NetApp account where the NetApp pool exists.

name string

The name of the NetApp Volume.

poolName string

The name of the NetApp pool where the NetApp volume exists.

resourceGroupName string

The Name of the Resource Group where the NetApp Volume exists.

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_name str

The Name of the Resource Group where the NetApp Volume exists.

GetVolume Result

The following output properties are available:

AccountName string
Id string

The provider-assigned unique ID for this managed resource.

Location string

The Azure Region where the NetApp Volume exists.

MountIpAddresses List<string>

A list of IPv4 Addresses which should be used to mount the volume.

Name string
PoolName string
Protocols List<string>
ResourceGroupName string
ServiceLevel string

The service level of the file system.

StorageQuotaInGb int

The maximum Storage Quota in Gigabytes allowed for a file system.

SubnetId string

The ID of a Subnet in which the NetApp Volume resides.

VolumePath string

The unique file path of the volume.

AccountName string
Id string

The provider-assigned unique ID for this managed resource.

Location string

The Azure Region where the NetApp Volume exists.

MountIpAddresses []string

A list of IPv4 Addresses which should be used to mount the volume.

Name string
PoolName string
Protocols []string
ResourceGroupName string
ServiceLevel string

The service level of the file system.

StorageQuotaInGb int

The maximum Storage Quota in Gigabytes allowed for a file system.

SubnetId string

The ID of a Subnet in which the NetApp Volume resides.

VolumePath string

The unique file path of the volume.

accountName string
id string

The provider-assigned unique ID for this managed resource.

location string

The Azure Region where the NetApp Volume exists.

mountIpAddresses string[]

A list of IPv4 Addresses which should be used to mount the volume.

name string
poolName string
protocols string[]
resourceGroupName string
serviceLevel string

The service level of the file system.

storageQuotaInGb number

The maximum Storage Quota in Gigabytes allowed for a file system.

subnetId string

The ID of a Subnet in which the NetApp Volume resides.

volumePath string

The unique file path of the volume.

account_name str
id str

The provider-assigned unique ID for this managed resource.

location str

The Azure Region where the NetApp Volume exists.

mount_ip_addresses List[str]

A list of IPv4 Addresses which should be used to mount the volume.

name str
pool_name str
protocols List[str]
resource_group_name str
service_level str

The service level of the file system.

storage_quota_in_gb float

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.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.