GetPool
Uses this data source to access information about an existing NetApp Pool.
NetApp Pool Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.netapp.getPool({
resourceGroupName: "acctestRG",
accountName: "acctestnetappaccount",
name: "acctestnetapppool",
});
export const netappPoolId = example.then(example => example.id);import pulumi
import pulumi_azure as azure
example = azure.netapp.get_pool(resource_group_name="acctestRG",
account_name="acctestnetappaccount",
name="acctestnetapppool")
pulumi.export("netappPoolId", example.id)using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.NetApp.GetPool.InvokeAsync(new Azure.NetApp.GetPoolArgs
{
ResourceGroupName = "acctestRG",
AccountName = "acctestnetappaccount",
Name = "acctestnetapppool",
}));
this.NetappPoolId = example.Apply(example => example.Id);
}
[Output("netappPoolId")]
public Output<string> NetappPoolId { 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.LookupPool(ctx, &netapp.LookupPoolArgs{
ResourceGroupName: "acctestRG",
AccountName: "acctestnetappaccount",
Name: "acctestnetapppool",
}, nil)
if err != nil {
return err
}
ctx.Export("netappPoolId", example.Id)
return nil
})
}Using GetPool
function getPool(args: GetPoolArgs, opts?: InvokeOptions): Promise<GetPoolResult>function get_pool(account_name=None, name=None, resource_group_name=None, opts=None)func LookupPool(ctx *Context, args *LookupPoolArgs, opts ...InvokeOption) (*LookupPoolResult, error)Note: This function is named
LookupPoolin the Go SDK.
public static class GetPool {
public static Task<GetPoolResult> InvokeAsync(GetPoolArgs 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 Pool.
- Resource
Group stringName The Name of the Resource Group where the NetApp Pool exists.
- Account
Name string The name of the NetApp account where the NetApp pool exists.
- Name string
The name of the NetApp Pool.
- Resource
Group stringName The Name of the Resource Group where the NetApp Pool exists.
- account
Name string The name of the NetApp account where the NetApp pool exists.
- name string
The name of the NetApp Pool.
- resource
Group stringName The Name of the Resource Group where the NetApp Pool exists.
- account_
name str The name of the NetApp account where the NetApp pool exists.
- name str
The name of the NetApp Pool.
- resource_
group_ strname The Name of the Resource Group where the NetApp Pool exists.
GetPool 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 Pool exists.
- Name string
- Resource
Group stringName - Service
Level string The service level of the file system.
- Size
In intTb Provisioned size of the pool in TB.
- Account
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Location string
The Azure Region where the NetApp Pool exists.
- Name string
- Resource
Group stringName - Service
Level string The service level of the file system.
- Size
In intTb Provisioned size of the pool in TB.
- account
Name string - id string
The provider-assigned unique ID for this managed resource.
- location string
The Azure Region where the NetApp Pool exists.
- name string
- resource
Group stringName - service
Level string The service level of the file system.
- size
In numberTb Provisioned size of the pool in TB.
- account_
name str - id str
The provider-assigned unique ID for this managed resource.
- location str
The Azure Region where the NetApp Pool exists.
- name str
- resource_
group_ strname - service_
level str The service level of the file system.
- size_
in_ floattb Provisioned size of the pool in TB.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.