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);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:
- Account
Name string 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 stringName The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.
- Service
Level string The service level of the file system. Valid values include
Premium,Standard, orUltra.- Size
In intTb Provisioned size of the pool in TB. Value must be between
4and500.- 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.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Account
Name string 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 stringName The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.
- Service
Level string The service level of the file system. Valid values include
Premium,Standard, orUltra.- Size
In intTb Provisioned size of the pool in TB. Value must be between
4and500.- 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.
- map[string]string
A mapping of tags to assign to the resource.
- account
Name string 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 stringName The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.
- service
Level string The service level of the file system. Valid values include
Premium,Standard, orUltra.- size
In numberTb Provisioned size of the pool in TB. Value must be between
4and500.- 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.
- {[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_ strname 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, orUltra.- size_
in_ floattb Provisioned size of the pool in TB. Value must be between
4and500.- 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.
- 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:
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): Poolstatic 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);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:
- Account
Name 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.
- Resource
Group stringName The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.
- Service
Level string The service level of the file system. Valid values include
Premium,Standard, orUltra.- Size
In intTb Provisioned size of the pool in TB. Value must be between
4and500.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Account
Name 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.
- Resource
Group stringName The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.
- Service
Level string The service level of the file system. Valid values include
Premium,Standard, orUltra.- Size
In intTb Provisioned size of the pool in TB. Value must be between
4and500.- map[string]string
A mapping of tags to assign to the resource.
- account
Name 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.
- resource
Group stringName The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.
- service
Level string The service level of the file system. Valid values include
Premium,Standard, orUltra.- size
In numberTb Provisioned size of the pool in TB. Value must be between
4and500.- {[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_ strname 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, orUltra.- size_
in_ floattb Provisioned size of the pool in TB. Value must be between
4and500.- 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
azurermTerraform Provider.