Azure Classic

Pulumi Official
Package maintained by Pulumi
v5.6.0 published on Friday, May 20, 2022 by Pulumi

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/v5/go/azure/netapp"
	"github.com/pulumi/pulumi/sdk/v3/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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(NetappFunctions.getPool(GetPoolArgs.builder()
            .resourceGroupName("acctestRG")
            .accountName("acctestnetappaccount")
            .name("acctestnetapppool")
            .build()));

        ctx.export("netappPoolId", example.apply(getPoolResult -> getPoolResult.getId()));
        }
}
variables:
  example:
    Fn::Invoke:
      Function: azure:netapp:getPool
      Arguments:
        resourceGroupName: acctestRG
        accountName: acctestnetappaccount
        name: acctestnetapppool
outputs:
  netappPoolId: ${example.id}

Using getPool

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 getPool(args: GetPoolArgs, opts?: InvokeOptions): Promise<GetPoolResult>
function getPoolOutput(args: GetPoolOutputArgs, opts?: InvokeOptions): Output<GetPoolResult>
def get_pool(account_name: Optional[str] = None,
             name: Optional[str] = None,
             resource_group_name: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetPoolResult
def get_pool_output(account_name: Optional[pulumi.Input[str]] = None,
             name: Optional[pulumi.Input[str]] = None,
             resource_group_name: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetPoolResult]
func LookupPool(ctx *Context, args *LookupPoolArgs, opts ...InvokeOption) (*LookupPoolResult, error)
func LookupPoolOutput(ctx *Context, args *LookupPoolOutputArgs, opts ...InvokeOption) LookupPoolResultOutput

> Note: This function is named LookupPool in the Go SDK.

public static class GetPool 
{
    public static Task<GetPoolResult> InvokeAsync(GetPoolArgs args, InvokeOptions? opts = null)
    public static Output<GetPoolResult> Invoke(GetPoolInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPoolResult> getPool(GetPoolArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: azure:netapp/getPool:getPool
  Arguments:
    # Arguments dictionary

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 Pool.

ResourceGroupName string

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

AccountName string

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

Name string

The name of the NetApp Pool.

ResourceGroupName string

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

accountName String

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

name String

The name of the NetApp Pool.

resourceGroupName String

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

accountName string

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

name string

The name of the NetApp Pool.

resourceGroupName string

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

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

accountName String

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

name String

The name of the NetApp Pool.

resourceGroupName String

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

getPool 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 Pool exists.

Name string
ResourceGroupName string
ServiceLevel string

The service level of the file system.

SizeInTb int

Provisioned size of the pool in TB.

AccountName string
Id string

The provider-assigned unique ID for this managed resource.

Location string

The Azure Region where the NetApp Pool exists.

Name string
ResourceGroupName string
ServiceLevel string

The service level of the file system.

SizeInTb int

Provisioned size of the pool in TB.

accountName String
id String

The provider-assigned unique ID for this managed resource.

location String

The Azure Region where the NetApp Pool exists.

name String
resourceGroupName String
serviceLevel String

The service level of the file system.

sizeInTb Integer

Provisioned size of the pool in TB.

accountName string
id string

The provider-assigned unique ID for this managed resource.

location string

The Azure Region where the NetApp Pool exists.

name string
resourceGroupName string
serviceLevel string

The service level of the file system.

sizeInTb number

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

The service level of the file system.

size_in_tb int

Provisioned size of the pool in TB.

accountName String
id String

The provider-assigned unique ID for this managed resource.

location String

The Azure Region where the NetApp Pool exists.

name String
resourceGroupName String
serviceLevel String

The service level of the file system.

sizeInTb Number

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 azurerm Terraform Provider.