Capacity pool resource
Uses Azure REST API version 2024-09-01.
Other available API versions: 2022-11-01, 2022-11-01-preview, 2023-05-01, 2023-05-01-preview, 2023-07-01, 2023-07-01-preview, 2023-11-01, 2023-11-01-preview, 2024-01-01, 2024-03-01, 2024-03-01-preview, 2024-05-01, 2024-05-01-preview, 2024-07-01, 2024-07-01-preview, 2024-09-01-preview, 2025-01-01, 2025-01-01-preview, 2025-03-01, 2025-03-01-preview, 2025-06-01, 2025-07-01-preview, 2025-08-01, 2025-08-01-preview, 2025-09-01, 2025-09-01-preview, 2025-12-01, 2025-12-15-preview, 2026-01-01, 2026-01-15-preview, 2026-03-01, 2026-03-15-preview, 2026-04-01, 2026-04-15-preview, 2026-05-01, 2026-05-15-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native netapp [ApiVersion]. See the version guide for details.
Example Usage
Pools_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var capacityPool = new AzureNative.NetApp.CapacityPool("capacityPool", new()
{
AccountName = "account1",
Location = "eastus",
PoolName = "pool1",
QosType = AzureNative.NetApp.QosType.Auto,
ResourceGroupName = "myRG",
ServiceLevel = AzureNative.NetApp.ServiceLevel.Premium,
Size = 4398046511104,
});
});
package main
import (
netapp "github.com/pulumi/pulumi-azure-native-sdk/netapp/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := netapp.NewCapacityPool(ctx, "capacityPool", &netapp.CapacityPoolArgs{
AccountName: pulumi.String("account1"),
Location: pulumi.String("eastus"),
PoolName: pulumi.String("pool1"),
QosType: pulumi.String(netapp.QosTypeAuto),
ResourceGroupName: pulumi.String("myRG"),
ServiceLevel: pulumi.String(netapp.ServiceLevelPremium),
Size: pulumi.Float64(4398046511104),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_netapp_capacity_pool" "capacityPool" {
lifecycle {
create_before_destroy = true
}
account_name = "account1"
location = "eastus"
pool_name = "pool1"
qos_type = "Auto"
resource_group_name = "myRG"
service_level = "Premium"
size = 4398046511104
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.netapp.CapacityPool;
import com.pulumi.azurenative.netapp.CapacityPoolArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
var capacityPool = new CapacityPool("capacityPool", CapacityPoolArgs.builder()
.accountName("account1")
.location("eastus")
.poolName("pool1")
.qosType("Auto")
.resourceGroupName("myRG")
.serviceLevel("Premium")
.size(4398046511104.0)
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const capacityPool = new azure_native.netapp.CapacityPool("capacityPool", {
accountName: "account1",
location: "eastus",
poolName: "pool1",
qosType: azure_native.netapp.QosType.Auto,
resourceGroupName: "myRG",
serviceLevel: azure_native.netapp.ServiceLevel.Premium,
size: 4398046511104,
});
import pulumi
import pulumi_azure_native as azure_native
capacity_pool = azure_native.netapp.CapacityPool("capacityPool",
account_name="account1",
location="eastus",
pool_name="pool1",
qos_type=azure_native.netapp.QosType.AUTO,
resource_group_name="myRG",
service_level=azure_native.netapp.ServiceLevel.PREMIUM,
size=4398046511104)
resources:
capacityPool:
type: azure-native:netapp:CapacityPool
properties:
accountName: account1
location: eastus
poolName: pool1
qosType: Auto
resourceGroupName: myRG
serviceLevel: Premium
size: 4.398046511104e+12
Create CapacityPool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def CapacityPool(resource_name: str,
args: CapacityPoolArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CapacityPool(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
service_level: Optional[Union[str, ServiceLevel]] = None,
size: Optional[float] = None,
cool_access: Optional[bool] = None,
encryption_type: Optional[Union[str, EncryptionType]] = None,
location: Optional[str] = None,
pool_name: Optional[str] = None,
qos_type: Optional[Union[str, QosType]] = None,
tags: Optional[Mapping[str, str]] = None)
type: azure-native:netapp:CapacityPool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_netapp_capacity_pool" "name" {
# resource properties
}
Parameters
- resource_name
str
- The unique name of the resource.
- args
CapacityPoolArgs
- The arguments to resource properties.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resource.
- args
CapacityPoolArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
CapacityPoolArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var capacityPoolResource = new AzureNative.NetApp.CapacityPool("capacityPoolResource", new()
{
AccountName = "string",
ResourceGroupName = "string",
ServiceLevel = "string",
Size = 0.0,
CoolAccess = false,
EncryptionType = "string",
Location = "string",
PoolName = "string",
QosType = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := netapp.NewCapacityPool(ctx, "capacityPoolResource", &netapp.CapacityPoolArgs{
AccountName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ServiceLevel: pulumi.String("string"),
Size: pulumi.Float64(0),
CoolAccess: pulumi.Bool(false),
EncryptionType: pulumi.String("string"),
Location: pulumi.String("string"),
PoolName: pulumi.String("string"),
QosType: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
resource "azure-native_netapp_capacity_pool" "capacityPoolResource" {
lifecycle {
create_before_destroy = true
}
account_name = "string"
resource_group_name = "string"
service_level = "string"
size = 0
cool_access = false
encryption_type = "string"
location = "string"
pool_name = "string"
qos_type = "string"
tags = {
"string" = "string"
}
}
var capacityPoolResource = new CapacityPool("capacityPoolResource", CapacityPoolArgs.builder()
.accountName("string")
.resourceGroupName("string")
.serviceLevel("string")
.size(0.0)
.coolAccess(false)
.encryptionType("string")
.location("string")
.poolName("string")
.qosType("string")
.tags(Map.of("string", "string"))
.build());
capacity_pool_resource = azure_native.netapp.CapacityPool("capacityPoolResource",
account_name="string",
resource_group_name="string",
service_level="string",
size=float(0),
cool_access=False,
encryption_type="string",
location="string",
pool_name="string",
qos_type="string",
tags={
"string": "string",
})
const capacityPoolResource = new azure_native.netapp.CapacityPool("capacityPoolResource", {
accountName: "string",
resourceGroupName: "string",
serviceLevel: "string",
size: 0,
coolAccess: false,
encryptionType: "string",
location: "string",
poolName: "string",
qosType: "string",
tags: {
string: "string",
},
});
type: azure-native:netapp:CapacityPool
properties:
accountName: string
coolAccess: false
encryptionType: string
location: string
poolName: string
qosType: string
resourceGroupName: string
serviceLevel: string
size: 0
tags:
string: string
CapacityPool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CapacityPool resource accepts the following input properties:
- AccountName
string
- The name of the NetApp account
- ResourceGroupName
string
- The name of the resource group. The name is case insensitive.
- ServiceLevel
string | ServiceLevel
- The service level of the file system
- Size
float64
- Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776).
- CoolAccess
bool
- If enabled (true) the pool can contain cool Access enabled volumes.
- EncryptionType
string | EncryptionType
- Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool.
- Location
string
- The geo-location where the resource lives
- PoolName
string
- The name of the capacity pool
- QosType
string | QosType
- The qos type of the pool
- Tags
map[string]string
- Resource tags.
- accountName
String
- The name of the NetApp account
- resourceGroupName
String
- The name of the resource group. The name is case insensitive.
- serviceLevel
String | ServiceLevel
- The service level of the file system
- size
Double
- Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776).
- coolAccess
Boolean
- If enabled (true) the pool can contain cool Access enabled volumes.
- encryptionType
String | EncryptionType
- Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool.
- location
String
- The geo-location where the resource lives
- poolName
String
- The name of the capacity pool
- qosType
String | QosType
- The qos type of the pool
- tags
Map<String,String>
- Resource tags.
- accountName
string
- The name of the NetApp account
- resourceGroupName
string
- The name of the resource group. The name is case insensitive.
- serviceLevel
string | ServiceLevel
- The service level of the file system
- size
number
- Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776).
- coolAccess
boolean
- If enabled (true) the pool can contain cool Access enabled volumes.
- encryptionType
string | EncryptionType
- Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool.
- location
string
- The geo-location where the resource lives
- poolName
string
- The name of the capacity pool
- qosType
string | QosType
- The qos type of the pool
- tags
{[key: string]: string}
- Resource tags.
- account_name
str
- The name of the NetApp account
- resource_group_name
str
- The name of the resource group. The name is case insensitive.
- service_level
str | ServiceLevel
- The service level of the file system
- size
float
- Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776).
- cool_access
bool
- If enabled (true) the pool can contain cool Access enabled volumes.
- encryption_type
str | EncryptionType
- Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool.
- location
str
- The geo-location where the resource lives
- pool_name
str
- The name of the capacity pool
- qos_type
str | QosType
- The qos type of the pool
- tags
Mapping[str, str]
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the CapacityPool resource produces the following output properties:
- AzureApiVersion
string
- The Azure API version of the resource.
- Etag
string
- A unique read-only string that changes whenever the resource is updated.
- Id
string
- The provider-assigned unique ID for this managed resource.
- Name
string
- The name of the resource
- PoolId
string
- UUID v4 used to identify the Pool
- ProvisioningState
string
- Azure lifecycle management
- SystemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- TotalThroughputMibps
float64
- Total throughput of pool in MiB/s
- Type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- UtilizedThroughputMibps
float64
- Utilized throughput of pool in MiB/s
- azure_api_version
string
- The Azure API version of the resource.
- etag
string
- A unique read-only string that changes whenever the resource is updated.
- id
string
- The provider-assigned unique ID for this managed resource.
- name
string
- The name of the resource
- pool_id
string
- UUID v4 used to identify the Pool
- provisioning_state
string
- Azure lifecycle management
- system_data
object
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- total_throughput_mibps
number
- Total throughput of pool in MiB/s
- type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- utilized_throughput_mibps
number
- Utilized throughput of pool in MiB/s
- azureApiVersion
String
- The Azure API version of the resource.
- etag
String
- A unique read-only string that changes whenever the resource is updated.
- id
String
- The provider-assigned unique ID for this managed resource.
- name
String
- The name of the resource
- poolId
String
- UUID v4 used to identify the Pool
- provisioningState
String
- Azure lifecycle management
- systemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- totalThroughputMibps
Double
- Total throughput of pool in MiB/s
- type
String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- utilizedThroughputMibps
Double
- Utilized throughput of pool in MiB/s
- azureApiVersion
string
- The Azure API version of the resource.
- etag
string
- A unique read-only string that changes whenever the resource is updated.
- id
string
- The provider-assigned unique ID for this managed resource.
- name
string
- The name of the resource
- poolId
string
- UUID v4 used to identify the Pool
- provisioningState
string
- Azure lifecycle management
- systemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- totalThroughputMibps
number
- Total throughput of pool in MiB/s
- type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- utilizedThroughputMibps
number
- Utilized throughput of pool in MiB/s
- azure_api_version
str
- The Azure API version of the resource.
- etag
str
- A unique read-only string that changes whenever the resource is updated.
- id
str
- The provider-assigned unique ID for this managed resource.
- name
str
- The name of the resource
- pool_id
str
- UUID v4 used to identify the Pool
- provisioning_state
str
- Azure lifecycle management
- system_data
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- total_throughput_mibps
float
- Total throughput of pool in MiB/s
- type
str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- utilized_throughput_mibps
float
- Utilized throughput of pool in MiB/s
- azureApiVersion
String
- The Azure API version of the resource.
- etag
String
- A unique read-only string that changes whenever the resource is updated.
- id
String
- The provider-assigned unique ID for this managed resource.
- name
String
- The name of the resource
- poolId
String
- UUID v4 used to identify the Pool
- provisioningState
String
- Azure lifecycle management
- systemData
Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- totalThroughputMibps
Number
- Total throughput of pool in MiB/s
- type
String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- utilizedThroughputMibps
Number
- Utilized throughput of pool in MiB/s
Look up Existing CapacityPool Resource
Get an existing CapacityPool resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static CapacityPool get(String name, Output<String> id, CustomResourceOptions options)
resources: existingCapacityPool: type: azure-native:netapp:CapacityPool get: id: ${id}
import {
to = azure-native_netapp_capacity_pool.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
CapacityPoolState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
EncryptionType, EncryptionTypeArgs
Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool.| Name | Value | Description |
|---|
| Single | Single | EncryptionType Single, volumes will use single encryption at rest |
| Double | Double | EncryptionType Double, volumes will use double encryption at rest |
| Name | Value | Description |
|---|
| EncryptionTypeSingle | Single | EncryptionType Single, volumes will use single encryption at rest |
| EncryptionTypeDouble | Double | EncryptionType Double, volumes will use double encryption at rest |
| Value | Description |
|---|
Single | EncryptionType Single, volumes will use single encryption at rest |
Double | EncryptionType Double, volumes will use double encryption at rest |
| Name | Value | Description |
|---|
| Single | Single | EncryptionType Single, volumes will use single encryption at rest |
| Double | Double | EncryptionType Double, volumes will use double encryption at rest |
| Name | Value | Description |
|---|
| Single | Single | EncryptionType Single, volumes will use single encryption at rest |
| Double | Double | EncryptionType Double, volumes will use double encryption at rest |
| Name | Value | Description |
|---|
| SINGLE | Single | EncryptionType Single, volumes will use single encryption at rest |
| DOUBLE | Double | EncryptionType Double, volumes will use double encryption at rest |
| Value | Description |
|---|
Single | EncryptionType Single, volumes will use single encryption at rest |
Double | EncryptionType Double, volumes will use double encryption at rest |
QosType, QosTypeArgs
The qos type of the pool| Name | Value | Description |
|---|
| Auto | Auto | qos type Auto |
| Manual | Manual | qos type Manual |
| Name | Value | Description |
|---|
| QosTypeAuto | Auto | qos type Auto |
| QosTypeManual | Manual | qos type Manual |
| Value | Description |
|---|
Auto | qos type Auto |
Manual | qos type Manual |
| Name | Value | Description |
|---|
| Auto | Auto | qos type Auto |
| Manual | Manual | qos type Manual |
| Name | Value | Description |
|---|
| Auto | Auto | qos type Auto |
| Manual | Manual | qos type Manual |
| Name | Value | Description |
|---|
| AUTO | Auto | qos type Auto |
| MANUAL | Manual | qos type Manual |
| Value | Description |
|---|
Auto | qos type Auto |
Manual | qos type Manual |
ServiceLevel, ServiceLevelArgs
The service level of the file system| Name | Value | Description |
|---|
| Standard | Standard | Standard service level |
| Premium | Premium | Premium service level |
| Ultra | Ultra | Ultra service level |
| StandardZRS | StandardZRS | Zone redundant storage service level |
| Name | Value | Description |
|---|
| ServiceLevelStandard | Standard | Standard service level |
| ServiceLevelPremium | Premium | Premium service level |
| ServiceLevelUltra | Ultra | Ultra service level |
| ServiceLevelStandardZRS | StandardZRS | Zone redundant storage service level |
| Value | Description |
|---|
Standard | Standard service level |
Premium | Premium service level |
Ultra | Ultra service level |
StandardZRS | Zone redundant storage service level |
| Name | Value | Description |
|---|
| Standard | Standard | Standard service level |
| Premium | Premium | Premium service level |
| Ultra | Ultra | Ultra service level |
| StandardZRS | StandardZRS | Zone redundant storage service level |
| Name | Value | Description |
|---|
| Standard | Standard | Standard service level |
| Premium | Premium | Premium service level |
| Ultra | Ultra | Ultra service level |
| StandardZRS | StandardZRS | Zone redundant storage service level |
| Name | Value | Description |
|---|
| STANDARD | Standard | Standard service level |
| PREMIUM | Premium | Premium service level |
| ULTRA | Ultra | Ultra service level |
| STANDARD_ZRS | StandardZRS | Zone redundant storage service level |
| Value | Description |
|---|
Standard | Standard service level |
Premium | Premium service level |
Ultra | Ultra service level |
StandardZRS | Zone redundant storage service level |
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
- createdAt
string
- The timestamp of resource creation (UTC).
- createdBy
string
- The identity that created the resource.
- createdByType
string
- The type of identity that created the resource.
- lastModifiedAt
string
- The timestamp of resource last modification (UTC)
- lastModifiedBy
string
- The identity that last modified the resource.
- lastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:netapp:CapacityPool account1/pool1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0