Pool

Manages a Pool within a NetApp Account.

NetApp Pool Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleAccount = new azure.netapp.Account("exampleAccount", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
});
const examplePool = new azure.netapp.Pool("examplePool", {
    accountName: exampleAccount.name,
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
    serviceLevel: "Premium",
    sizeInTb: 4,
});
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_account = azure.netapp.Account("exampleAccount",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name)
example_pool = azure.netapp.Pool("examplePool",
    account_name=example_account.name,
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    service_level="Premium",
    size_in_tb=4)
using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
        {
            Location = "West Europe",
        });
        var exampleAccount = new Azure.NetApp.Account("exampleAccount", new Azure.NetApp.AccountArgs
        {
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
        });
        var examplePool = new Azure.NetApp.Pool("examplePool", new Azure.NetApp.PoolArgs
        {
            AccountName = exampleAccount.Name,
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
            ServiceLevel = "Premium",
            SizeInTb = 4,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
	"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 {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := netapp.NewAccount(ctx, "exampleAccount", &netapp.AccountArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		_, err = netapp.NewPool(ctx, "examplePool", &netapp.PoolArgs{
			AccountName:       exampleAccount.Name,
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			ServiceLevel:      pulumi.String("Premium"),
			SizeInTb:          pulumi.Int(4),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Create a Pool Resource

new Pool(name: string, args: PoolArgs, opts?: CustomResourceOptions);
def Pool(resource_name, opts=None, account_name=None, location=None, name=None, resource_group_name=None, service_level=None, size_in_tb=None, tags=None, __props__=None);
func NewPool(ctx *Context, name string, args PoolArgs, opts ...ResourceOption) (*Pool, error)
public Pool(string name, PoolArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args PoolArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args PoolArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args PoolArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Pool Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Pool resource accepts the following input properties:

AccountName string

The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.

ServiceLevel string

The service level of the file system. Valid values include Premium, Standard, or Ultra.

SizeInTb int

Provisioned size of the pool in TB. Value must be between 4 and 500.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

The name of the NetApp Pool. Changing this forces a new resource to be created.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

AccountName string

The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.

ServiceLevel string

The service level of the file system. Valid values include Premium, Standard, or Ultra.

SizeInTb int

Provisioned size of the pool in TB. Value must be between 4 and 500.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

The name of the NetApp Pool. Changing this forces a new resource to be created.

Tags map[string]string

A mapping of tags to assign to the resource.

accountName string

The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.

resourceGroupName string

The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.

serviceLevel string

The service level of the file system. Valid values include Premium, Standard, or Ultra.

sizeInTb number

Provisioned size of the pool in TB. Value must be between 4 and 500.

location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name string

The name of the NetApp Pool. Changing this forces a new resource to be created.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

account_name str

The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.

resource_group_name str

The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.

service_level str

The service level of the file system. Valid values include Premium, Standard, or Ultra.

size_in_tb float

Provisioned size of the pool in TB. Value must be between 4 and 500.

location str

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name str

The name of the NetApp Pool. Changing this forces a new resource to be created.

tags Dict[str, str]

A mapping of tags to assign to the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the Pool resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Pool Resource

Get an existing Pool resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: PoolState, opts?: CustomResourceOptions): Pool
static get(resource_name, id, opts=None, account_name=None, location=None, name=None, resource_group_name=None, service_level=None, size_in_tb=None, tags=None, __props__=None);
func GetPool(ctx *Context, name string, id IDInput, state *PoolState, opts ...ResourceOption) (*Pool, error)
public static Pool Get(string name, Input<string> id, PoolState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

AccountName string

The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

The name of the NetApp Pool. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.

ServiceLevel string

The service level of the file system. Valid values include Premium, Standard, or Ultra.

SizeInTb int

Provisioned size of the pool in TB. Value must be between 4 and 500.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

AccountName string

The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

The name of the NetApp Pool. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.

ServiceLevel string

The service level of the file system. Valid values include Premium, Standard, or Ultra.

SizeInTb int

Provisioned size of the pool in TB. Value must be between 4 and 500.

Tags map[string]string

A mapping of tags to assign to the resource.

accountName string

The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.

location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name string

The name of the NetApp Pool. Changing this forces a new resource to be created.

resourceGroupName string

The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.

serviceLevel string

The service level of the file system. Valid values include Premium, Standard, or Ultra.

sizeInTb number

Provisioned size of the pool in TB. Value must be between 4 and 500.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

account_name str

The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.

location str

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name str

The name of the NetApp Pool. Changing this forces a new resource to be created.

resource_group_name str

The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.

service_level str

The service level of the file system. Valid values include Premium, Standard, or Ultra.

size_in_tb float

Provisioned size of the pool in TB. Value must be between 4 and 500.

tags Dict[str, str]

A mapping of tags to assign to the resource.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.