1. Packages
  2. Azure Classic
  3. API Docs
  4. netapp
  5. VolumeQuotaRule

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.netapp.VolumeQuotaRule

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Manages a Volume Quota Rule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
        name: "example-virtualnetwork",
        location: example.location,
        resourceGroupName: example.name,
        addressSpaces: ["10.0.0.0/16"],
    });
    const exampleSubnet = new azure.network.Subnet("example", {
        name: "example-subnet",
        resourceGroupName: example.name,
        virtualNetworkName: exampleVirtualNetwork.name,
        addressPrefixes: ["10.0.2.0/24"],
        delegations: [{
            name: "netapp",
            serviceDelegation: {
                name: "Microsoft.Netapp/volumes",
                actions: [
                    "Microsoft.Network/networkinterfaces/*",
                    "Microsoft.Network/virtualNetworks/subnets/join/action",
                ],
            },
        }],
    });
    const exampleAccount = new azure.netapp.Account("example", {
        name: "example-netappaccount",
        location: example.location,
        resourceGroupName: example.name,
    });
    const examplePool = new azure.netapp.Pool("example", {
        name: "example-netapppool",
        location: example.location,
        resourceGroupName: example.name,
        accountName: exampleAccount.name,
        serviceLevel: "Premium",
        sizeInTb: 4,
    });
    const exampleVolume = new azure.netapp.Volume("example", {
        name: "example-netappvolume",
        location: example.location,
        zone: "1",
        resourceGroupName: example.name,
        accountName: exampleAccount.name,
        poolName: examplePool.name,
        volumePath: "my-unique-file-path",
        serviceLevel: "Premium",
        subnetId: exampleSubnet.id,
        networkFeatures: "Basic",
        protocols: ["NFSv4.1"],
        securityStyle: "unix",
        storageQuotaInGb: 100,
        snapshotDirectoryVisible: false,
    });
    const quota1 = new azure.netapp.VolumeQuotaRule("quota1", {
        name: "example-quota-rule-1",
        location: example.location,
        volumeId: exampleVolume.id,
        quotaTarget: "3001",
        quotaSizeInKib: 1024,
        quotaType: "IndividualGroupQuota",
    });
    const quota2 = new azure.netapp.VolumeQuotaRule("quota2", {
        name: "example-quota-rule-2",
        location: example.location,
        volumeId: exampleVolume.id,
        quotaTarget: "2001",
        quotaSizeInKib: 1024,
        quotaType: "IndividualUserQuota",
    });
    const quota3 = new azure.netapp.VolumeQuotaRule("quota3", {
        name: "example-quota-rule-3",
        location: example.location,
        volumeId: exampleVolume.id,
        quotaSizeInKib: 1024,
        quotaType: "DefaultUserQuota",
    });
    const quota4 = new azure.netapp.VolumeQuotaRule("quota4", {
        name: "example-quota-rule-4",
        location: example.location,
        volumeId: exampleVolume.id,
        quotaSizeInKib: 1024,
        quotaType: "DefaultGroupQuota",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_virtual_network = azure.network.VirtualNetwork("example",
        name="example-virtualnetwork",
        location=example.location,
        resource_group_name=example.name,
        address_spaces=["10.0.0.0/16"])
    example_subnet = azure.network.Subnet("example",
        name="example-subnet",
        resource_group_name=example.name,
        virtual_network_name=example_virtual_network.name,
        address_prefixes=["10.0.2.0/24"],
        delegations=[azure.network.SubnetDelegationArgs(
            name="netapp",
            service_delegation=azure.network.SubnetDelegationServiceDelegationArgs(
                name="Microsoft.Netapp/volumes",
                actions=[
                    "Microsoft.Network/networkinterfaces/*",
                    "Microsoft.Network/virtualNetworks/subnets/join/action",
                ],
            ),
        )])
    example_account = azure.netapp.Account("example",
        name="example-netappaccount",
        location=example.location,
        resource_group_name=example.name)
    example_pool = azure.netapp.Pool("example",
        name="example-netapppool",
        location=example.location,
        resource_group_name=example.name,
        account_name=example_account.name,
        service_level="Premium",
        size_in_tb=4)
    example_volume = azure.netapp.Volume("example",
        name="example-netappvolume",
        location=example.location,
        zone="1",
        resource_group_name=example.name,
        account_name=example_account.name,
        pool_name=example_pool.name,
        volume_path="my-unique-file-path",
        service_level="Premium",
        subnet_id=example_subnet.id,
        network_features="Basic",
        protocols=["NFSv4.1"],
        security_style="unix",
        storage_quota_in_gb=100,
        snapshot_directory_visible=False)
    quota1 = azure.netapp.VolumeQuotaRule("quota1",
        name="example-quota-rule-1",
        location=example.location,
        volume_id=example_volume.id,
        quota_target="3001",
        quota_size_in_kib=1024,
        quota_type="IndividualGroupQuota")
    quota2 = azure.netapp.VolumeQuotaRule("quota2",
        name="example-quota-rule-2",
        location=example.location,
        volume_id=example_volume.id,
        quota_target="2001",
        quota_size_in_kib=1024,
        quota_type="IndividualUserQuota")
    quota3 = azure.netapp.VolumeQuotaRule("quota3",
        name="example-quota-rule-3",
        location=example.location,
        volume_id=example_volume.id,
        quota_size_in_kib=1024,
        quota_type="DefaultUserQuota")
    quota4 = azure.netapp.VolumeQuotaRule("quota4",
        name="example-quota-rule-4",
        location=example.location,
        volume_id=example_volume.id,
        quota_size_in_kib=1024,
        quota_type="DefaultGroupQuota")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/netapp"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
    			Name:              pulumi.String("example-virtualnetwork"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			AddressSpaces: pulumi.StringArray{
    				pulumi.String("10.0.0.0/16"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
    			Name:               pulumi.String("example-subnet"),
    			ResourceGroupName:  example.Name,
    			VirtualNetworkName: exampleVirtualNetwork.Name,
    			AddressPrefixes: pulumi.StringArray{
    				pulumi.String("10.0.2.0/24"),
    			},
    			Delegations: network.SubnetDelegationArray{
    				&network.SubnetDelegationArgs{
    					Name: pulumi.String("netapp"),
    					ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{
    						Name: pulumi.String("Microsoft.Netapp/volumes"),
    						Actions: pulumi.StringArray{
    							pulumi.String("Microsoft.Network/networkinterfaces/*"),
    							pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{
    			Name:              pulumi.String("example-netappaccount"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    		})
    		if err != nil {
    			return err
    		}
    		examplePool, err := netapp.NewPool(ctx, "example", &netapp.PoolArgs{
    			Name:              pulumi.String("example-netapppool"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			AccountName:       exampleAccount.Name,
    			ServiceLevel:      pulumi.String("Premium"),
    			SizeInTb:          pulumi.Int(4),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVolume, err := netapp.NewVolume(ctx, "example", &netapp.VolumeArgs{
    			Name:              pulumi.String("example-netappvolume"),
    			Location:          example.Location,
    			Zone:              pulumi.String("1"),
    			ResourceGroupName: example.Name,
    			AccountName:       exampleAccount.Name,
    			PoolName:          examplePool.Name,
    			VolumePath:        pulumi.String("my-unique-file-path"),
    			ServiceLevel:      pulumi.String("Premium"),
    			SubnetId:          exampleSubnet.ID(),
    			NetworkFeatures:   pulumi.String("Basic"),
    			Protocols: pulumi.StringArray{
    				pulumi.String("NFSv4.1"),
    			},
    			SecurityStyle:            pulumi.String("unix"),
    			StorageQuotaInGb:         pulumi.Int(100),
    			SnapshotDirectoryVisible: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netapp.NewVolumeQuotaRule(ctx, "quota1", &netapp.VolumeQuotaRuleArgs{
    			Name:           pulumi.String("example-quota-rule-1"),
    			Location:       example.Location,
    			VolumeId:       exampleVolume.ID(),
    			QuotaTarget:    pulumi.String("3001"),
    			QuotaSizeInKib: pulumi.Int(1024),
    			QuotaType:      pulumi.String("IndividualGroupQuota"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netapp.NewVolumeQuotaRule(ctx, "quota2", &netapp.VolumeQuotaRuleArgs{
    			Name:           pulumi.String("example-quota-rule-2"),
    			Location:       example.Location,
    			VolumeId:       exampleVolume.ID(),
    			QuotaTarget:    pulumi.String("2001"),
    			QuotaSizeInKib: pulumi.Int(1024),
    			QuotaType:      pulumi.String("IndividualUserQuota"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netapp.NewVolumeQuotaRule(ctx, "quota3", &netapp.VolumeQuotaRuleArgs{
    			Name:           pulumi.String("example-quota-rule-3"),
    			Location:       example.Location,
    			VolumeId:       exampleVolume.ID(),
    			QuotaSizeInKib: pulumi.Int(1024),
    			QuotaType:      pulumi.String("DefaultUserQuota"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netapp.NewVolumeQuotaRule(ctx, "quota4", &netapp.VolumeQuotaRuleArgs{
    			Name:           pulumi.String("example-quota-rule-4"),
    			Location:       example.Location,
    			VolumeId:       exampleVolume.ID(),
    			QuotaSizeInKib: pulumi.Int(1024),
    			QuotaType:      pulumi.String("DefaultGroupQuota"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
        {
            Name = "example-virtualnetwork",
            Location = example.Location,
            ResourceGroupName = example.Name,
            AddressSpaces = new[]
            {
                "10.0.0.0/16",
            },
        });
    
        var exampleSubnet = new Azure.Network.Subnet("example", new()
        {
            Name = "example-subnet",
            ResourceGroupName = example.Name,
            VirtualNetworkName = exampleVirtualNetwork.Name,
            AddressPrefixes = new[]
            {
                "10.0.2.0/24",
            },
            Delegations = new[]
            {
                new Azure.Network.Inputs.SubnetDelegationArgs
                {
                    Name = "netapp",
                    ServiceDelegation = new Azure.Network.Inputs.SubnetDelegationServiceDelegationArgs
                    {
                        Name = "Microsoft.Netapp/volumes",
                        Actions = new[]
                        {
                            "Microsoft.Network/networkinterfaces/*",
                            "Microsoft.Network/virtualNetworks/subnets/join/action",
                        },
                    },
                },
            },
        });
    
        var exampleAccount = new Azure.NetApp.Account("example", new()
        {
            Name = "example-netappaccount",
            Location = example.Location,
            ResourceGroupName = example.Name,
        });
    
        var examplePool = new Azure.NetApp.Pool("example", new()
        {
            Name = "example-netapppool",
            Location = example.Location,
            ResourceGroupName = example.Name,
            AccountName = exampleAccount.Name,
            ServiceLevel = "Premium",
            SizeInTb = 4,
        });
    
        var exampleVolume = new Azure.NetApp.Volume("example", new()
        {
            Name = "example-netappvolume",
            Location = example.Location,
            Zone = "1",
            ResourceGroupName = example.Name,
            AccountName = exampleAccount.Name,
            PoolName = examplePool.Name,
            VolumePath = "my-unique-file-path",
            ServiceLevel = "Premium",
            SubnetId = exampleSubnet.Id,
            NetworkFeatures = "Basic",
            Protocols = new[]
            {
                "NFSv4.1",
            },
            SecurityStyle = "unix",
            StorageQuotaInGb = 100,
            SnapshotDirectoryVisible = false,
        });
    
        var quota1 = new Azure.NetApp.VolumeQuotaRule("quota1", new()
        {
            Name = "example-quota-rule-1",
            Location = example.Location,
            VolumeId = exampleVolume.Id,
            QuotaTarget = "3001",
            QuotaSizeInKib = 1024,
            QuotaType = "IndividualGroupQuota",
        });
    
        var quota2 = new Azure.NetApp.VolumeQuotaRule("quota2", new()
        {
            Name = "example-quota-rule-2",
            Location = example.Location,
            VolumeId = exampleVolume.Id,
            QuotaTarget = "2001",
            QuotaSizeInKib = 1024,
            QuotaType = "IndividualUserQuota",
        });
    
        var quota3 = new Azure.NetApp.VolumeQuotaRule("quota3", new()
        {
            Name = "example-quota-rule-3",
            Location = example.Location,
            VolumeId = exampleVolume.Id,
            QuotaSizeInKib = 1024,
            QuotaType = "DefaultUserQuota",
        });
    
        var quota4 = new Azure.NetApp.VolumeQuotaRule("quota4", new()
        {
            Name = "example-quota-rule-4",
            Location = example.Location,
            VolumeId = exampleVolume.Id,
            QuotaSizeInKib = 1024,
            QuotaType = "DefaultGroupQuota",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.network.VirtualNetwork;
    import com.pulumi.azure.network.VirtualNetworkArgs;
    import com.pulumi.azure.network.Subnet;
    import com.pulumi.azure.network.SubnetArgs;
    import com.pulumi.azure.network.inputs.SubnetDelegationArgs;
    import com.pulumi.azure.network.inputs.SubnetDelegationServiceDelegationArgs;
    import com.pulumi.azure.netapp.Account;
    import com.pulumi.azure.netapp.AccountArgs;
    import com.pulumi.azure.netapp.Pool;
    import com.pulumi.azure.netapp.PoolArgs;
    import com.pulumi.azure.netapp.Volume;
    import com.pulumi.azure.netapp.VolumeArgs;
    import com.pulumi.azure.netapp.VolumeQuotaRule;
    import com.pulumi.azure.netapp.VolumeQuotaRuleArgs;
    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) {
            var example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
                .name("example-virtualnetwork")
                .location(example.location())
                .resourceGroupName(example.name())
                .addressSpaces("10.0.0.0/16")
                .build());
    
            var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
                .name("example-subnet")
                .resourceGroupName(example.name())
                .virtualNetworkName(exampleVirtualNetwork.name())
                .addressPrefixes("10.0.2.0/24")
                .delegations(SubnetDelegationArgs.builder()
                    .name("netapp")
                    .serviceDelegation(SubnetDelegationServiceDelegationArgs.builder()
                        .name("Microsoft.Netapp/volumes")
                        .actions(                    
                            "Microsoft.Network/networkinterfaces/*",
                            "Microsoft.Network/virtualNetworks/subnets/join/action")
                        .build())
                    .build())
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
                .name("example-netappaccount")
                .location(example.location())
                .resourceGroupName(example.name())
                .build());
    
            var examplePool = new Pool("examplePool", PoolArgs.builder()
                .name("example-netapppool")
                .location(example.location())
                .resourceGroupName(example.name())
                .accountName(exampleAccount.name())
                .serviceLevel("Premium")
                .sizeInTb(4)
                .build());
    
            var exampleVolume = new Volume("exampleVolume", VolumeArgs.builder()
                .name("example-netappvolume")
                .location(example.location())
                .zone("1")
                .resourceGroupName(example.name())
                .accountName(exampleAccount.name())
                .poolName(examplePool.name())
                .volumePath("my-unique-file-path")
                .serviceLevel("Premium")
                .subnetId(exampleSubnet.id())
                .networkFeatures("Basic")
                .protocols("NFSv4.1")
                .securityStyle("unix")
                .storageQuotaInGb(100)
                .snapshotDirectoryVisible(false)
                .build());
    
            var quota1 = new VolumeQuotaRule("quota1", VolumeQuotaRuleArgs.builder()
                .name("example-quota-rule-1")
                .location(example.location())
                .volumeId(exampleVolume.id())
                .quotaTarget("3001")
                .quotaSizeInKib(1024)
                .quotaType("IndividualGroupQuota")
                .build());
    
            var quota2 = new VolumeQuotaRule("quota2", VolumeQuotaRuleArgs.builder()
                .name("example-quota-rule-2")
                .location(example.location())
                .volumeId(exampleVolume.id())
                .quotaTarget("2001")
                .quotaSizeInKib(1024)
                .quotaType("IndividualUserQuota")
                .build());
    
            var quota3 = new VolumeQuotaRule("quota3", VolumeQuotaRuleArgs.builder()
                .name("example-quota-rule-3")
                .location(example.location())
                .volumeId(exampleVolume.id())
                .quotaSizeInKib(1024)
                .quotaType("DefaultUserQuota")
                .build());
    
            var quota4 = new VolumeQuotaRule("quota4", VolumeQuotaRuleArgs.builder()
                .name("example-quota-rule-4")
                .location(example.location())
                .volumeId(exampleVolume.id())
                .quotaSizeInKib(1024)
                .quotaType("DefaultGroupQuota")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleVirtualNetwork:
        type: azure:network:VirtualNetwork
        name: example
        properties:
          name: example-virtualnetwork
          location: ${example.location}
          resourceGroupName: ${example.name}
          addressSpaces:
            - 10.0.0.0/16
      exampleSubnet:
        type: azure:network:Subnet
        name: example
        properties:
          name: example-subnet
          resourceGroupName: ${example.name}
          virtualNetworkName: ${exampleVirtualNetwork.name}
          addressPrefixes:
            - 10.0.2.0/24
          delegations:
            - name: netapp
              serviceDelegation:
                name: Microsoft.Netapp/volumes
                actions:
                  - Microsoft.Network/networkinterfaces/*
                  - Microsoft.Network/virtualNetworks/subnets/join/action
      exampleAccount:
        type: azure:netapp:Account
        name: example
        properties:
          name: example-netappaccount
          location: ${example.location}
          resourceGroupName: ${example.name}
      examplePool:
        type: azure:netapp:Pool
        name: example
        properties:
          name: example-netapppool
          location: ${example.location}
          resourceGroupName: ${example.name}
          accountName: ${exampleAccount.name}
          serviceLevel: Premium
          sizeInTb: 4
      exampleVolume:
        type: azure:netapp:Volume
        name: example
        properties:
          name: example-netappvolume
          location: ${example.location}
          zone: '1'
          resourceGroupName: ${example.name}
          accountName: ${exampleAccount.name}
          poolName: ${examplePool.name}
          volumePath: my-unique-file-path
          serviceLevel: Premium
          subnetId: ${exampleSubnet.id}
          networkFeatures: Basic
          protocols:
            - NFSv4.1
          securityStyle: unix
          storageQuotaInGb: 100
          snapshotDirectoryVisible: false
      quota1:
        type: azure:netapp:VolumeQuotaRule
        properties:
          name: example-quota-rule-1
          location: ${example.location}
          volumeId: ${exampleVolume.id}
          quotaTarget: '3001'
          quotaSizeInKib: 1024
          quotaType: IndividualGroupQuota
      quota2:
        type: azure:netapp:VolumeQuotaRule
        properties:
          name: example-quota-rule-2
          location: ${example.location}
          volumeId: ${exampleVolume.id}
          quotaTarget: '2001'
          quotaSizeInKib: 1024
          quotaType: IndividualUserQuota
      quota3:
        type: azure:netapp:VolumeQuotaRule
        properties:
          name: example-quota-rule-3
          location: ${example.location}
          volumeId: ${exampleVolume.id}
          quotaSizeInKib: 1024
          quotaType: DefaultUserQuota
      quota4:
        type: azure:netapp:VolumeQuotaRule
        properties:
          name: example-quota-rule-4
          location: ${example.location}
          volumeId: ${exampleVolume.id}
          quotaSizeInKib: 1024
          quotaType: DefaultGroupQuota
    

    Create VolumeQuotaRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VolumeQuotaRule(name: string, args: VolumeQuotaRuleArgs, opts?: CustomResourceOptions);
    @overload
    def VolumeQuotaRule(resource_name: str,
                        args: VolumeQuotaRuleArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def VolumeQuotaRule(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        quota_size_in_kib: Optional[int] = None,
                        quota_type: Optional[str] = None,
                        volume_id: Optional[str] = None,
                        location: Optional[str] = None,
                        name: Optional[str] = None,
                        quota_target: Optional[str] = None)
    func NewVolumeQuotaRule(ctx *Context, name string, args VolumeQuotaRuleArgs, opts ...ResourceOption) (*VolumeQuotaRule, error)
    public VolumeQuotaRule(string name, VolumeQuotaRuleArgs args, CustomResourceOptions? opts = null)
    public VolumeQuotaRule(String name, VolumeQuotaRuleArgs args)
    public VolumeQuotaRule(String name, VolumeQuotaRuleArgs args, CustomResourceOptions options)
    
    type: azure:netapp:VolumeQuotaRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VolumeQuotaRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VolumeQuotaRuleArgs
    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 VolumeQuotaRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VolumeQuotaRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VolumeQuotaRuleArgs
    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 volumeQuotaRuleResource = new Azure.NetApp.VolumeQuotaRule("volumeQuotaRuleResource", new()
    {
        QuotaSizeInKib = 0,
        QuotaType = "string",
        VolumeId = "string",
        Location = "string",
        Name = "string",
        QuotaTarget = "string",
    });
    
    example, err := netapp.NewVolumeQuotaRule(ctx, "volumeQuotaRuleResource", &netapp.VolumeQuotaRuleArgs{
    	QuotaSizeInKib: pulumi.Int(0),
    	QuotaType:      pulumi.String("string"),
    	VolumeId:       pulumi.String("string"),
    	Location:       pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	QuotaTarget:    pulumi.String("string"),
    })
    
    var volumeQuotaRuleResource = new VolumeQuotaRule("volumeQuotaRuleResource", VolumeQuotaRuleArgs.builder()
        .quotaSizeInKib(0)
        .quotaType("string")
        .volumeId("string")
        .location("string")
        .name("string")
        .quotaTarget("string")
        .build());
    
    volume_quota_rule_resource = azure.netapp.VolumeQuotaRule("volumeQuotaRuleResource",
        quota_size_in_kib=0,
        quota_type="string",
        volume_id="string",
        location="string",
        name="string",
        quota_target="string")
    
    const volumeQuotaRuleResource = new azure.netapp.VolumeQuotaRule("volumeQuotaRuleResource", {
        quotaSizeInKib: 0,
        quotaType: "string",
        volumeId: "string",
        location: "string",
        name: "string",
        quotaTarget: "string",
    });
    
    type: azure:netapp:VolumeQuotaRule
    properties:
        location: string
        name: string
        quotaSizeInKib: 0
        quotaTarget: string
        quotaType: string
        volumeId: string
    

    VolumeQuotaRule Resource Properties

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

    Inputs

    The VolumeQuotaRule resource accepts the following input properties:

    QuotaSizeInKib int
    Quota size in kibibytes.
    QuotaType string
    Quota type. Possible values are DefaultGroupQuota, DefaultUserQuota, IndividualGroupQuota and IndividualUserQuota. Please note that IndividualGroupQuota and DefaultGroupQuota are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created.
    VolumeId string
    The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created.
    Location string
    The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created.
    Name string
    The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created.
    QuotaTarget string

    Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created.

    NOTE: quota_target must be used when quota_type is IndividualGroupQuota or IndividualUserQuota

    NOTE: more information about this resource can be found at Understand default and individual user and group quotas

    QuotaSizeInKib int
    Quota size in kibibytes.
    QuotaType string
    Quota type. Possible values are DefaultGroupQuota, DefaultUserQuota, IndividualGroupQuota and IndividualUserQuota. Please note that IndividualGroupQuota and DefaultGroupQuota are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created.
    VolumeId string
    The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created.
    Location string
    The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created.
    Name string
    The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created.
    QuotaTarget string

    Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created.

    NOTE: quota_target must be used when quota_type is IndividualGroupQuota or IndividualUserQuota

    NOTE: more information about this resource can be found at Understand default and individual user and group quotas

    quotaSizeInKib Integer
    Quota size in kibibytes.
    quotaType String
    Quota type. Possible values are DefaultGroupQuota, DefaultUserQuota, IndividualGroupQuota and IndividualUserQuota. Please note that IndividualGroupQuota and DefaultGroupQuota are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created.
    volumeId String
    The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created.
    location String
    The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created.
    name String
    The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created.
    quotaTarget String

    Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created.

    NOTE: quota_target must be used when quota_type is IndividualGroupQuota or IndividualUserQuota

    NOTE: more information about this resource can be found at Understand default and individual user and group quotas

    quotaSizeInKib number
    Quota size in kibibytes.
    quotaType string
    Quota type. Possible values are DefaultGroupQuota, DefaultUserQuota, IndividualGroupQuota and IndividualUserQuota. Please note that IndividualGroupQuota and DefaultGroupQuota are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created.
    volumeId string
    The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created.
    location string
    The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created.
    name string
    The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created.
    quotaTarget string

    Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created.

    NOTE: quota_target must be used when quota_type is IndividualGroupQuota or IndividualUserQuota

    NOTE: more information about this resource can be found at Understand default and individual user and group quotas

    quota_size_in_kib int
    Quota size in kibibytes.
    quota_type str
    Quota type. Possible values are DefaultGroupQuota, DefaultUserQuota, IndividualGroupQuota and IndividualUserQuota. Please note that IndividualGroupQuota and DefaultGroupQuota are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created.
    volume_id str
    The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created.
    location str
    The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created.
    name str
    The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created.
    quota_target str

    Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created.

    NOTE: quota_target must be used when quota_type is IndividualGroupQuota or IndividualUserQuota

    NOTE: more information about this resource can be found at Understand default and individual user and group quotas

    quotaSizeInKib Number
    Quota size in kibibytes.
    quotaType String
    Quota type. Possible values are DefaultGroupQuota, DefaultUserQuota, IndividualGroupQuota and IndividualUserQuota. Please note that IndividualGroupQuota and DefaultGroupQuota are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created.
    volumeId String
    The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created.
    location String
    The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created.
    name String
    The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created.
    quotaTarget String

    Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created.

    NOTE: quota_target must be used when quota_type is IndividualGroupQuota or IndividualUserQuota

    NOTE: more information about this resource can be found at Understand default and individual user and group quotas

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VolumeQuotaRule 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 string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VolumeQuotaRule Resource

    Get an existing VolumeQuotaRule 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?: VolumeQuotaRuleState, opts?: CustomResourceOptions): VolumeQuotaRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            quota_size_in_kib: Optional[int] = None,
            quota_target: Optional[str] = None,
            quota_type: Optional[str] = None,
            volume_id: Optional[str] = None) -> VolumeQuotaRule
    func GetVolumeQuotaRule(ctx *Context, name string, id IDInput, state *VolumeQuotaRuleState, opts ...ResourceOption) (*VolumeQuotaRule, error)
    public static VolumeQuotaRule Get(string name, Input<string> id, VolumeQuotaRuleState? state, CustomResourceOptions? opts = null)
    public static VolumeQuotaRule get(String name, Output<String> id, VolumeQuotaRuleState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    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:
    Location string
    The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created.
    Name string
    The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created.
    QuotaSizeInKib int
    Quota size in kibibytes.
    QuotaTarget string

    Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created.

    NOTE: quota_target must be used when quota_type is IndividualGroupQuota or IndividualUserQuota

    NOTE: more information about this resource can be found at Understand default and individual user and group quotas

    QuotaType string
    Quota type. Possible values are DefaultGroupQuota, DefaultUserQuota, IndividualGroupQuota and IndividualUserQuota. Please note that IndividualGroupQuota and DefaultGroupQuota are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created.
    VolumeId string
    The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created.
    Location string
    The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created.
    Name string
    The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created.
    QuotaSizeInKib int
    Quota size in kibibytes.
    QuotaTarget string

    Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created.

    NOTE: quota_target must be used when quota_type is IndividualGroupQuota or IndividualUserQuota

    NOTE: more information about this resource can be found at Understand default and individual user and group quotas

    QuotaType string
    Quota type. Possible values are DefaultGroupQuota, DefaultUserQuota, IndividualGroupQuota and IndividualUserQuota. Please note that IndividualGroupQuota and DefaultGroupQuota are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created.
    VolumeId string
    The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created.
    location String
    The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created.
    name String
    The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created.
    quotaSizeInKib Integer
    Quota size in kibibytes.
    quotaTarget String

    Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created.

    NOTE: quota_target must be used when quota_type is IndividualGroupQuota or IndividualUserQuota

    NOTE: more information about this resource can be found at Understand default and individual user and group quotas

    quotaType String
    Quota type. Possible values are DefaultGroupQuota, DefaultUserQuota, IndividualGroupQuota and IndividualUserQuota. Please note that IndividualGroupQuota and DefaultGroupQuota are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created.
    volumeId String
    The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created.
    location string
    The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created.
    name string
    The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created.
    quotaSizeInKib number
    Quota size in kibibytes.
    quotaTarget string

    Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created.

    NOTE: quota_target must be used when quota_type is IndividualGroupQuota or IndividualUserQuota

    NOTE: more information about this resource can be found at Understand default and individual user and group quotas

    quotaType string
    Quota type. Possible values are DefaultGroupQuota, DefaultUserQuota, IndividualGroupQuota and IndividualUserQuota. Please note that IndividualGroupQuota and DefaultGroupQuota are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created.
    volumeId string
    The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created.
    location str
    The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created.
    name str
    The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created.
    quota_size_in_kib int
    Quota size in kibibytes.
    quota_target str

    Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created.

    NOTE: quota_target must be used when quota_type is IndividualGroupQuota or IndividualUserQuota

    NOTE: more information about this resource can be found at Understand default and individual user and group quotas

    quota_type str
    Quota type. Possible values are DefaultGroupQuota, DefaultUserQuota, IndividualGroupQuota and IndividualUserQuota. Please note that IndividualGroupQuota and DefaultGroupQuota are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created.
    volume_id str
    The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created.
    location String
    The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created.
    name String
    The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created.
    quotaSizeInKib Number
    Quota size in kibibytes.
    quotaTarget String

    Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created.

    NOTE: quota_target must be used when quota_type is IndividualGroupQuota or IndividualUserQuota

    NOTE: more information about this resource can be found at Understand default and individual user and group quotas

    quotaType String
    Quota type. Possible values are DefaultGroupQuota, DefaultUserQuota, IndividualGroupQuota and IndividualUserQuota. Please note that IndividualGroupQuota and DefaultGroupQuota are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created.
    volumeId String
    The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created.

    Import

    Volume Quota Rules can be imported using the resource id, e.g.

    $ pulumi import azure:netapp/volumeQuotaRule:VolumeQuotaRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/vol1/volumeQuotaRules/quota1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi