We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:netapp/getVolumeQuotaRule:getVolumeQuotaRule
arguments:
# arguments dictionary
The 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
- Quota
Size intIn Kib - The quota size in kibibytes.
- Quota
Target string - The quota Target.
- Quota
Type string - The quota type.
- Volume
Id 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
- Quota
Size intIn Kib - The quota size in kibibytes.
- Quota
Target string - The quota Target.
- Quota
Type string - The quota type.
- Volume
Id 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
- quota
Size IntegerIn Kib - The quota size in kibibytes.
- quota
Target String - The quota Target.
- quota
Type String - The quota type.
- volume
Id 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
- quota
Size numberIn Kib - The quota size in kibibytes.
- quota
Target string - The quota Target.
- quota
Type string - The quota type.
- volume
Id 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
- quota
Size NumberIn Kib - The quota size in kibibytes.
- quota
Target String - The quota Target.
- quota
Type String - The quota type.
- volume
Id String
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.