getPool

suspend fun getPool(argument: GetPoolPlainArgs): GetPoolResult

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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.NetApp.GetPool.Invoke(new()
{
ResourceGroupName = "acctestRG",
AccountName = "acctestnetappaccount",
Name = "acctestnetapppool",
});
return new Dictionary<string, object?>
{
["netappPoolId"] = example.Apply(getPoolResult => getPoolResult.Id),
};
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.netapp.NetappFunctions;
import com.pulumi.azure.netapp.inputs.GetPoolArgs;
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.getPool(GetPoolArgs.builder()
.resourceGroupName("acctestRG")
.accountName("acctestnetappaccount")
.name("acctestnetapppool")
.build());
ctx.export("netappPoolId", example.id());
}
}
variables:
example:
fn::invoke:
function: azure:netapp:getPool
arguments:
resourceGroupName: acctestRG
accountName: acctestnetappaccount
name: acctestnetapppool
outputs:
netappPoolId: ${example.id}

API Providers

This data source uses the following Azure API Providers:

  • Microsoft.NetApp: 2025-01-01

Return

A collection of values returned by getPool.

Parameters

argument

A collection of arguments for invoking getPool.


suspend fun getPool(accountName: String, name: String, resourceGroupName: String): GetPoolResult

Return

A collection of values returned by getPool.

Parameters

accountName

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

name

The name of the NetApp Pool.

resourceGroupName

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

See also


suspend fun getPool(argument: suspend GetPoolPlainArgsBuilder.() -> Unit): GetPoolResult

Return

A collection of values returned by getPool.

Parameters

argument

Builder for com.pulumi.azure.netapp.kotlin.inputs.GetPoolPlainArgs.

See also