We recommend using Azure Native.
Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi
azure.netapp.getPool
Explore with Pulumi AI
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)
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
})
}
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 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.applyValue(getPoolResult -> getPoolResult.id()));
}
}
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:
- 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 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.
- 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.
getPool Result
The following output properties are available:
- Account
Name string - Encryption
Type string - The encryption type of the pool.
- 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 - Encryption
Type string - The encryption type of the pool.
- 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 - encryption
Type String - The encryption type of the pool.
- 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 IntegerTb - Provisioned size of the pool in TB.
- account
Name string - encryption
Type string - The encryption type of the pool.
- 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 - encryption_
type str - The encryption type of the pool.
- 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_ inttb - Provisioned size of the pool in TB.
- account
Name String - encryption
Type String - The encryption type of the pool.
- 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.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.