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

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.netapp.getVolumeQuotaRule

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:netapp/getVolumeQuotaRule:getVolumeQuotaRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of this Volume Quota Rule.
    VolumeId string
    The NetApp volume ID where the Volume Quota Rule is assigned to.
    Name string
    The name of this Volume Quota Rule.
    VolumeId string
    The NetApp volume ID where the Volume Quota Rule is assigned to.
    name String
    The name of this Volume Quota Rule.
    volumeId String
    The NetApp volume ID where the Volume Quota Rule is assigned to.
    name string
    The name of this Volume Quota Rule.
    volumeId string
    The NetApp volume ID where the Volume Quota Rule is assigned to.
    name str
    The name of this Volume Quota Rule.
    volume_id str
    The NetApp volume ID where the Volume Quota Rule is assigned to.
    name String
    The name of this Volume Quota Rule.
    volumeId String
    The NetApp volume ID where the Volume Quota Rule is assigned to.

    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
    QuotaSizeInKib int
    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
    QuotaSizeInKib int
    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
    quotaSizeInKib Integer
    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
    quotaSizeInKib number
    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_in_kib int
    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
    quotaSizeInKib Number
    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 azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi