We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.netapp.getVolumeQuotaRule
Explore with Pulumi AI
Use this data source to access information about an existing Volume Quota Rule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.netapp.getVolumeQuotaRule({
    name: "exampleQuotaRule",
    volumeId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/vol1",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.netapp.get_volume_quota_rule(name="exampleQuotaRule",
    volume_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/vol1")
pulumi.export("id", example.id)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := netapp.LookupVolumeQuotaRule(ctx, &netapp.LookupVolumeQuotaRuleArgs{
			Name:     "exampleQuotaRule",
			VolumeId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/vol1",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = Azure.NetApp.GetVolumeQuotaRule.Invoke(new()
    {
        Name = "exampleQuotaRule",
        VolumeId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/vol1",
    });
    return new Dictionary<string, object?>
    {
        ["id"] = example.Apply(getVolumeQuotaRuleResult => getVolumeQuotaRuleResult.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.netapp.NetappFunctions;
import com.pulumi.azure.netapp.inputs.GetVolumeQuotaRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = NetappFunctions.getVolumeQuotaRule(GetVolumeQuotaRuleArgs.builder()
            .name("exampleQuotaRule")
            .volumeId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/vol1")
            .build());
        ctx.export("id", example.applyValue(getVolumeQuotaRuleResult -> getVolumeQuotaRuleResult.id()));
    }
}
variables:
  example:
    fn::invoke:
      function: azure:netapp:getVolumeQuotaRule
      arguments:
        name: exampleQuotaRule
        volumeId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/vol1
outputs:
  id: ${example.id}
Using getVolumeQuotaRule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVolumeQuotaRule(args: GetVolumeQuotaRuleArgs, opts?: InvokeOptions): Promise<GetVolumeQuotaRuleResult>
function getVolumeQuotaRuleOutput(args: GetVolumeQuotaRuleOutputArgs, opts?: InvokeOptions): Output<GetVolumeQuotaRuleResult>def get_volume_quota_rule(name: Optional[str] = None,
                          volume_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetVolumeQuotaRuleResult
def get_volume_quota_rule_output(name: Optional[pulumi.Input[str]] = None,
                          volume_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetVolumeQuotaRuleResult]func LookupVolumeQuotaRule(ctx *Context, args *LookupVolumeQuotaRuleArgs, opts ...InvokeOption) (*LookupVolumeQuotaRuleResult, error)
func LookupVolumeQuotaRuleOutput(ctx *Context, args *LookupVolumeQuotaRuleOutputArgs, opts ...InvokeOption) LookupVolumeQuotaRuleResultOutput> Note: This function is named LookupVolumeQuotaRule in the Go SDK.
public static class GetVolumeQuotaRule 
{
    public static Task<GetVolumeQuotaRuleResult> InvokeAsync(GetVolumeQuotaRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetVolumeQuotaRuleResult> Invoke(GetVolumeQuotaRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVolumeQuotaRuleResult> getVolumeQuotaRule(GetVolumeQuotaRuleArgs args, InvokeOptions options)
public static Output<GetVolumeQuotaRuleResult> getVolumeQuotaRule(GetVolumeQuotaRuleArgs args, InvokeOptions options)
fn::invoke:
  function: azure:netapp/getVolumeQuotaRule:getVolumeQuotaRule
  arguments:
    # arguments dictionaryThe following arguments are supported:
getVolumeQuotaRule Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Volume Quota Rule exists.
- Name string
- QuotaSize intIn Kib 
- The quota size in kibibytes.
- QuotaTarget string
- The quota Target.
- QuotaType string
- The quota type.
- VolumeId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Volume Quota Rule exists.
- Name string
- QuotaSize intIn Kib 
- The quota size in kibibytes.
- QuotaTarget string
- The quota Target.
- QuotaType string
- The quota type.
- VolumeId string
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Volume Quota Rule exists.
- name String
- quotaSize IntegerIn Kib 
- The quota size in kibibytes.
- quotaTarget String
- The quota Target.
- quotaType String
- The quota type.
- volumeId String
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The Azure Region where the Volume Quota Rule exists.
- name string
- quotaSize numberIn Kib 
- The quota size in kibibytes.
- quotaTarget string
- The quota Target.
- quotaType string
- The quota type.
- volumeId string
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The Azure Region where the Volume Quota Rule exists.
- name str
- quota_size_ intin_ kib 
- The quota size in kibibytes.
- quota_target str
- The quota Target.
- quota_type str
- The quota type.
- volume_id str
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Volume Quota Rule exists.
- name String
- quotaSize NumberIn Kib 
- The quota size in kibibytes.
- quotaTarget String
- The quota Target.
- quotaType String
- The quota type.
- volumeId String
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.