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
LookupVolumein the Go SDK.
public static class GetVolume {
public static Task<GetVolumeResult> InvokeAsync(GetVolumeArgs args, InvokeOptions? opts = null)
}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.
- 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.
- 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.
- 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.
GetVolume Result
The following output properties are available:
- Account
Name string - Id string
The provider-assigned unique ID for this managed resource.
- 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
- Pool
Name string - Protocols List<string>
- Resource
Group stringName - Service
Level string The service level of the file system.
- 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.
- Account
Name string - Id string
The provider-assigned unique ID for this managed resource.
- 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
- Pool
Name string - Protocols []string
- Resource
Group stringName - Service
Level string The service level of the file system.
- 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.
- account
Name string - id string
The provider-assigned unique ID for this managed resource.
- 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
- pool
Name string - protocols string[]
- resource
Group stringName - service
Level string The service level of the file system.
- 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.
- 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_ List[str]addresses A list of IPv4 Addresses which should be used to mount the volume.
- name str
- pool_
name str - protocols List[str]
- resource_
group_ strname - service_
level str The service level of the file system.
- storage_
quota_ floatin_ 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.