gcp.netapp.VolumeQuotaRule
Explore with Pulumi AI
QuotaRule specifies the maximum capacity a user or group can use within a volume. They can be used for creating default and individual quota rules.
To get more information about VolumeQuotaRule, see:
- API documentation
- How-to Guides
Example Usage
Netapp Volume Quota Rule Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = gcp.compute.getNetwork({
    name: "test-network",
});
const defaultStoragePool = new gcp.netapp.StoragePool("default", {
    name: "test-pool",
    location: "us-west2",
    serviceLevel: "PREMIUM",
    capacityGib: "2048",
    network: _default.then(_default => _default.id),
});
const defaultVolume = new gcp.netapp.Volume("default", {
    location: defaultStoragePool.location,
    name: "test-volume",
    capacityGib: "100",
    shareName: "test-volume",
    storagePool: defaultStoragePool.name,
    protocols: ["NFSV3"],
});
const testQuotaRule = new gcp.netapp.VolumeQuotaRule("test_quota_rule", {
    location: defaultVolume.location,
    volumeName: defaultVolume.name,
    type: "DEFAULT_USER_QUOTA",
    diskLimitMib: 50,
    name: "test-volume-quota-rule",
}, {
    dependsOn: [defaultVolume],
});
import pulumi
import pulumi_gcp as gcp
default = gcp.compute.get_network(name="test-network")
default_storage_pool = gcp.netapp.StoragePool("default",
    name="test-pool",
    location="us-west2",
    service_level="PREMIUM",
    capacity_gib="2048",
    network=default.id)
default_volume = gcp.netapp.Volume("default",
    location=default_storage_pool.location,
    name="test-volume",
    capacity_gib="100",
    share_name="test-volume",
    storage_pool=default_storage_pool.name,
    protocols=["NFSV3"])
test_quota_rule = gcp.netapp.VolumeQuotaRule("test_quota_rule",
    location=default_volume.location,
    volume_name=default_volume.name,
    type="DEFAULT_USER_QUOTA",
    disk_limit_mib=50,
    name="test-volume-quota-rule",
    opts = pulumi.ResourceOptions(depends_on=[default_volume]))
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/netapp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := compute.LookupNetwork(ctx, &compute.LookupNetworkArgs{
			Name: "test-network",
		}, nil)
		if err != nil {
			return err
		}
		defaultStoragePool, err := netapp.NewStoragePool(ctx, "default", &netapp.StoragePoolArgs{
			Name:         pulumi.String("test-pool"),
			Location:     pulumi.String("us-west2"),
			ServiceLevel: pulumi.String("PREMIUM"),
			CapacityGib:  pulumi.String("2048"),
			Network:      pulumi.String(_default.Id),
		})
		if err != nil {
			return err
		}
		defaultVolume, err := netapp.NewVolume(ctx, "default", &netapp.VolumeArgs{
			Location:    defaultStoragePool.Location,
			Name:        pulumi.String("test-volume"),
			CapacityGib: pulumi.String("100"),
			ShareName:   pulumi.String("test-volume"),
			StoragePool: defaultStoragePool.Name,
			Protocols: pulumi.StringArray{
				pulumi.String("NFSV3"),
			},
		})
		if err != nil {
			return err
		}
		_, err = netapp.NewVolumeQuotaRule(ctx, "test_quota_rule", &netapp.VolumeQuotaRuleArgs{
			Location:     defaultVolume.Location,
			VolumeName:   defaultVolume.Name,
			Type:         pulumi.String("DEFAULT_USER_QUOTA"),
			DiskLimitMib: pulumi.Int(50),
			Name:         pulumi.String("test-volume-quota-rule"),
		}, pulumi.DependsOn([]pulumi.Resource{
			defaultVolume,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var @default = Gcp.Compute.GetNetwork.Invoke(new()
    {
        Name = "test-network",
    });
    var defaultStoragePool = new Gcp.Netapp.StoragePool("default", new()
    {
        Name = "test-pool",
        Location = "us-west2",
        ServiceLevel = "PREMIUM",
        CapacityGib = "2048",
        Network = @default.Apply(@default => @default.Apply(getNetworkResult => getNetworkResult.Id)),
    });
    var defaultVolume = new Gcp.Netapp.Volume("default", new()
    {
        Location = defaultStoragePool.Location,
        Name = "test-volume",
        CapacityGib = "100",
        ShareName = "test-volume",
        StoragePool = defaultStoragePool.Name,
        Protocols = new[]
        {
            "NFSV3",
        },
    });
    var testQuotaRule = new Gcp.Netapp.VolumeQuotaRule("test_quota_rule", new()
    {
        Location = defaultVolume.Location,
        VolumeName = defaultVolume.Name,
        Type = "DEFAULT_USER_QUOTA",
        DiskLimitMib = 50,
        Name = "test-volume-quota-rule",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            defaultVolume,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetNetworkArgs;
import com.pulumi.gcp.netapp.StoragePool;
import com.pulumi.gcp.netapp.StoragePoolArgs;
import com.pulumi.gcp.netapp.Volume;
import com.pulumi.gcp.netapp.VolumeArgs;
import com.pulumi.gcp.netapp.VolumeQuotaRule;
import com.pulumi.gcp.netapp.VolumeQuotaRuleArgs;
import com.pulumi.resources.CustomResourceOptions;
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 default = ComputeFunctions.getNetwork(GetNetworkArgs.builder()
            .name("test-network")
            .build());
        var defaultStoragePool = new StoragePool("defaultStoragePool", StoragePoolArgs.builder()
            .name("test-pool")
            .location("us-west2")
            .serviceLevel("PREMIUM")
            .capacityGib(2048)
            .network(default_.id())
            .build());
        var defaultVolume = new Volume("defaultVolume", VolumeArgs.builder()
            .location(defaultStoragePool.location())
            .name("test-volume")
            .capacityGib(100)
            .shareName("test-volume")
            .storagePool(defaultStoragePool.name())
            .protocols("NFSV3")
            .build());
        var testQuotaRule = new VolumeQuotaRule("testQuotaRule", VolumeQuotaRuleArgs.builder()
            .location(defaultVolume.location())
            .volumeName(defaultVolume.name())
            .type("DEFAULT_USER_QUOTA")
            .diskLimitMib(50)
            .name("test-volume-quota-rule")
            .build(), CustomResourceOptions.builder()
                .dependsOn(defaultVolume)
                .build());
    }
}
resources:
  defaultStoragePool:
    type: gcp:netapp:StoragePool
    name: default
    properties:
      name: test-pool
      location: us-west2
      serviceLevel: PREMIUM
      capacityGib: 2048
      network: ${default.id}
  defaultVolume:
    type: gcp:netapp:Volume
    name: default
    properties:
      location: ${defaultStoragePool.location}
      name: test-volume
      capacityGib: 100
      shareName: test-volume
      storagePool: ${defaultStoragePool.name}
      protocols:
        - NFSV3
  testQuotaRule:
    type: gcp:netapp:VolumeQuotaRule
    name: test_quota_rule
    properties:
      location: ${defaultVolume.location}
      volumeName: ${defaultVolume.name}
      type: DEFAULT_USER_QUOTA
      diskLimitMib: 50
      name: test-volume-quota-rule
    options:
      dependsOn:
        - ${defaultVolume}
variables:
  default:
    fn::invoke:
      function: gcp:compute:getNetwork
      arguments:
        name: test-network
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,
                    disk_limit_mib: Optional[int] = None,
                    type: Optional[str] = None,
                    volume_name: Optional[str] = None,
                    description: Optional[str] = None,
                    labels: Optional[Mapping[str, str]] = None,
                    location: Optional[str] = None,
                    name: Optional[str] = None,
                    project: Optional[str] = None,
                    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: gcp: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 Gcp.Netapp.VolumeQuotaRule("volumeQuotaRuleResource", new()
{
    DiskLimitMib = 0,
    Type = "string",
    VolumeName = "string",
    Description = "string",
    Labels = 
    {
        { "string", "string" },
    },
    Location = "string",
    Name = "string",
    Project = "string",
    Target = "string",
});
example, err := netapp.NewVolumeQuotaRule(ctx, "volumeQuotaRuleResource", &netapp.VolumeQuotaRuleArgs{
	DiskLimitMib: pulumi.Int(0),
	Type:         pulumi.String("string"),
	VolumeName:   pulumi.String("string"),
	Description:  pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Location: pulumi.String("string"),
	Name:     pulumi.String("string"),
	Project:  pulumi.String("string"),
	Target:   pulumi.String("string"),
})
var volumeQuotaRuleResource = new VolumeQuotaRule("volumeQuotaRuleResource", VolumeQuotaRuleArgs.builder()
    .diskLimitMib(0)
    .type("string")
    .volumeName("string")
    .description("string")
    .labels(Map.of("string", "string"))
    .location("string")
    .name("string")
    .project("string")
    .target("string")
    .build());
volume_quota_rule_resource = gcp.netapp.VolumeQuotaRule("volumeQuotaRuleResource",
    disk_limit_mib=0,
    type="string",
    volume_name="string",
    description="string",
    labels={
        "string": "string",
    },
    location="string",
    name="string",
    project="string",
    target="string")
const volumeQuotaRuleResource = new gcp.netapp.VolumeQuotaRule("volumeQuotaRuleResource", {
    diskLimitMib: 0,
    type: "string",
    volumeName: "string",
    description: "string",
    labels: {
        string: "string",
    },
    location: "string",
    name: "string",
    project: "string",
    target: "string",
});
type: gcp:netapp:VolumeQuotaRule
properties:
    description: string
    diskLimitMib: 0
    labels:
        string: string
    location: string
    name: string
    project: string
    target: string
    type: string
    volumeName: 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VolumeQuotaRule resource accepts the following input properties:
- DiskLimit intMib 
- The maximum allowed capacity in MiB.
- Type string
- Types of Quota Rule.
Possible values are: INDIVIDUAL_USER_QUOTA,INDIVIDUAL_GROUP_QUOTA,DEFAULT_USER_QUOTA,DEFAULT_GROUP_QUOTA.
- VolumeName string
- Name of the volume to create the quotaRule in.
- Description string
- Description for the quota rule.
- Labels Dictionary<string, string>
- Labels as key value pairs of the quota rule. Example: - { "owner": "Bob", "department": "finance", "purpose": "testing" }.- Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- Location string
- Loction of the quotaRule. QuotaRules are child resources of volumes and live in the same location.
- Name string
- The resource name of the quotaRule.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Target string
- The quota rule applies to the specified user or group.
Valid targets for volumes with NFS protocol enabled:- UNIX UID for individual user quota
- UNIX GID for individual group quota Valid targets for volumes with SMB protocol enabled:
- Windows SID for individual user quota Leave empty for default quotas
 
- DiskLimit intMib 
- The maximum allowed capacity in MiB.
- Type string
- Types of Quota Rule.
Possible values are: INDIVIDUAL_USER_QUOTA,INDIVIDUAL_GROUP_QUOTA,DEFAULT_USER_QUOTA,DEFAULT_GROUP_QUOTA.
- VolumeName string
- Name of the volume to create the quotaRule in.
- Description string
- Description for the quota rule.
- Labels map[string]string
- Labels as key value pairs of the quota rule. Example: - { "owner": "Bob", "department": "finance", "purpose": "testing" }.- Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- Location string
- Loction of the quotaRule. QuotaRules are child resources of volumes and live in the same location.
- Name string
- The resource name of the quotaRule.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Target string
- The quota rule applies to the specified user or group.
Valid targets for volumes with NFS protocol enabled:- UNIX UID for individual user quota
- UNIX GID for individual group quota Valid targets for volumes with SMB protocol enabled:
- Windows SID for individual user quota Leave empty for default quotas
 
- diskLimit IntegerMib 
- The maximum allowed capacity in MiB.
- type String
- Types of Quota Rule.
Possible values are: INDIVIDUAL_USER_QUOTA,INDIVIDUAL_GROUP_QUOTA,DEFAULT_USER_QUOTA,DEFAULT_GROUP_QUOTA.
- volumeName String
- Name of the volume to create the quotaRule in.
- description String
- Description for the quota rule.
- labels Map<String,String>
- Labels as key value pairs of the quota rule. Example: - { "owner": "Bob", "department": "finance", "purpose": "testing" }.- Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location String
- Loction of the quotaRule. QuotaRules are child resources of volumes and live in the same location.
- name String
- The resource name of the quotaRule.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- target String
- The quota rule applies to the specified user or group.
Valid targets for volumes with NFS protocol enabled:- UNIX UID for individual user quota
- UNIX GID for individual group quota Valid targets for volumes with SMB protocol enabled:
- Windows SID for individual user quota Leave empty for default quotas
 
- diskLimit numberMib 
- The maximum allowed capacity in MiB.
- type string
- Types of Quota Rule.
Possible values are: INDIVIDUAL_USER_QUOTA,INDIVIDUAL_GROUP_QUOTA,DEFAULT_USER_QUOTA,DEFAULT_GROUP_QUOTA.
- volumeName string
- Name of the volume to create the quotaRule in.
- description string
- Description for the quota rule.
- labels {[key: string]: string}
- Labels as key value pairs of the quota rule. Example: - { "owner": "Bob", "department": "finance", "purpose": "testing" }.- Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location string
- Loction of the quotaRule. QuotaRules are child resources of volumes and live in the same location.
- name string
- The resource name of the quotaRule.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- target string
- The quota rule applies to the specified user or group.
Valid targets for volumes with NFS protocol enabled:- UNIX UID for individual user quota
- UNIX GID for individual group quota Valid targets for volumes with SMB protocol enabled:
- Windows SID for individual user quota Leave empty for default quotas
 
- disk_limit_ intmib 
- The maximum allowed capacity in MiB.
- type str
- Types of Quota Rule.
Possible values are: INDIVIDUAL_USER_QUOTA,INDIVIDUAL_GROUP_QUOTA,DEFAULT_USER_QUOTA,DEFAULT_GROUP_QUOTA.
- volume_name str
- Name of the volume to create the quotaRule in.
- description str
- Description for the quota rule.
- labels Mapping[str, str]
- Labels as key value pairs of the quota rule. Example: - { "owner": "Bob", "department": "finance", "purpose": "testing" }.- Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location str
- Loction of the quotaRule. QuotaRules are child resources of volumes and live in the same location.
- name str
- The resource name of the quotaRule.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- target str
- The quota rule applies to the specified user or group.
Valid targets for volumes with NFS protocol enabled:- UNIX UID for individual user quota
- UNIX GID for individual group quota Valid targets for volumes with SMB protocol enabled:
- Windows SID for individual user quota Leave empty for default quotas
 
- diskLimit NumberMib 
- The maximum allowed capacity in MiB.
- type String
- Types of Quota Rule.
Possible values are: INDIVIDUAL_USER_QUOTA,INDIVIDUAL_GROUP_QUOTA,DEFAULT_USER_QUOTA,DEFAULT_GROUP_QUOTA.
- volumeName String
- Name of the volume to create the quotaRule in.
- description String
- Description for the quota rule.
- labels Map<String>
- Labels as key value pairs of the quota rule. Example: - { "owner": "Bob", "department": "finance", "purpose": "testing" }.- Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location String
- Loction of the quotaRule. QuotaRules are child resources of volumes and live in the same location.
- name String
- The resource name of the quotaRule.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- target String
- The quota rule applies to the specified user or group.
Valid targets for volumes with NFS protocol enabled:- UNIX UID for individual user quota
- UNIX GID for individual group quota Valid targets for volumes with SMB protocol enabled:
- Windows SID for individual user quota Leave empty for default quotas
 
Outputs
All input properties are implicitly available as output properties. Additionally, the VolumeQuotaRule resource produces the following output properties:
- CreateTime string
- Create time of the quota rule. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- EffectiveLabels Dictionary<string, string>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- The state of the quota rule. Possible Values : [STATE_UNSPECIFIED, CREATING, UPDATING, READY, DELETING, ERROR]
- StateDetails string
- State details of the quota rule
- CreateTime string
- Create time of the quota rule. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- EffectiveLabels map[string]string
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- The state of the quota rule. Possible Values : [STATE_UNSPECIFIED, CREATING, UPDATING, READY, DELETING, ERROR]
- StateDetails string
- State details of the quota rule
- createTime String
- Create time of the quota rule. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- effectiveLabels Map<String,String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- The state of the quota rule. Possible Values : [STATE_UNSPECIFIED, CREATING, UPDATING, READY, DELETING, ERROR]
- stateDetails String
- State details of the quota rule
- createTime string
- Create time of the quota rule. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- effectiveLabels {[key: string]: string}
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state string
- The state of the quota rule. Possible Values : [STATE_UNSPECIFIED, CREATING, UPDATING, READY, DELETING, ERROR]
- stateDetails string
- State details of the quota rule
- create_time str
- Create time of the quota rule. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- effective_labels Mapping[str, str]
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
- The provider-assigned unique ID for this managed resource.
- pulumi_labels Mapping[str, str]
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state str
- The state of the quota rule. Possible Values : [STATE_UNSPECIFIED, CREATING, UPDATING, READY, DELETING, ERROR]
- state_details str
- State details of the quota rule
- createTime String
- Create time of the quota rule. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- effectiveLabels Map<String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- The state of the quota rule. Possible Values : [STATE_UNSPECIFIED, CREATING, UPDATING, READY, DELETING, ERROR]
- stateDetails String
- State details of the quota rule
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,
        create_time: Optional[str] = None,
        description: Optional[str] = None,
        disk_limit_mib: Optional[int] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        labels: Optional[Mapping[str, str]] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        state: Optional[str] = None,
        state_details: Optional[str] = None,
        target: Optional[str] = None,
        type: Optional[str] = None,
        volume_name: Optional[str] = None) -> VolumeQuotaRulefunc 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)resources:  _:    type: gcp:netapp:VolumeQuotaRule    get:      id: ${id}- 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.
- CreateTime string
- Create time of the quota rule. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- Description string
- Description for the quota rule.
- DiskLimit intMib 
- The maximum allowed capacity in MiB.
- EffectiveLabels Dictionary<string, string>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels Dictionary<string, string>
- Labels as key value pairs of the quota rule. Example: - { "owner": "Bob", "department": "finance", "purpose": "testing" }.- Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- Location string
- Loction of the quotaRule. QuotaRules are child resources of volumes and live in the same location.
- Name string
- The resource name of the quotaRule.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- The state of the quota rule. Possible Values : [STATE_UNSPECIFIED, CREATING, UPDATING, READY, DELETING, ERROR]
- StateDetails string
- State details of the quota rule
- Target string
- The quota rule applies to the specified user or group.
Valid targets for volumes with NFS protocol enabled:- UNIX UID for individual user quota
- UNIX GID for individual group quota Valid targets for volumes with SMB protocol enabled:
- Windows SID for individual user quota Leave empty for default quotas
 
- Type string
- Types of Quota Rule.
Possible values are: INDIVIDUAL_USER_QUOTA,INDIVIDUAL_GROUP_QUOTA,DEFAULT_USER_QUOTA,DEFAULT_GROUP_QUOTA.
- VolumeName string
- Name of the volume to create the quotaRule in.
- CreateTime string
- Create time of the quota rule. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- Description string
- Description for the quota rule.
- DiskLimit intMib 
- The maximum allowed capacity in MiB.
- EffectiveLabels map[string]string
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels map[string]string
- Labels as key value pairs of the quota rule. Example: - { "owner": "Bob", "department": "finance", "purpose": "testing" }.- Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- Location string
- Loction of the quotaRule. QuotaRules are child resources of volumes and live in the same location.
- Name string
- The resource name of the quotaRule.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- The state of the quota rule. Possible Values : [STATE_UNSPECIFIED, CREATING, UPDATING, READY, DELETING, ERROR]
- StateDetails string
- State details of the quota rule
- Target string
- The quota rule applies to the specified user or group.
Valid targets for volumes with NFS protocol enabled:- UNIX UID for individual user quota
- UNIX GID for individual group quota Valid targets for volumes with SMB protocol enabled:
- Windows SID for individual user quota Leave empty for default quotas
 
- Type string
- Types of Quota Rule.
Possible values are: INDIVIDUAL_USER_QUOTA,INDIVIDUAL_GROUP_QUOTA,DEFAULT_USER_QUOTA,DEFAULT_GROUP_QUOTA.
- VolumeName string
- Name of the volume to create the quotaRule in.
- createTime String
- Create time of the quota rule. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- description String
- Description for the quota rule.
- diskLimit IntegerMib 
- The maximum allowed capacity in MiB.
- effectiveLabels Map<String,String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Map<String,String>
- Labels as key value pairs of the quota rule. Example: - { "owner": "Bob", "department": "finance", "purpose": "testing" }.- Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location String
- Loction of the quotaRule. QuotaRules are child resources of volumes and live in the same location.
- name String
- The resource name of the quotaRule.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- The state of the quota rule. Possible Values : [STATE_UNSPECIFIED, CREATING, UPDATING, READY, DELETING, ERROR]
- stateDetails String
- State details of the quota rule
- target String
- The quota rule applies to the specified user or group.
Valid targets for volumes with NFS protocol enabled:- UNIX UID for individual user quota
- UNIX GID for individual group quota Valid targets for volumes with SMB protocol enabled:
- Windows SID for individual user quota Leave empty for default quotas
 
- type String
- Types of Quota Rule.
Possible values are: INDIVIDUAL_USER_QUOTA,INDIVIDUAL_GROUP_QUOTA,DEFAULT_USER_QUOTA,DEFAULT_GROUP_QUOTA.
- volumeName String
- Name of the volume to create the quotaRule in.
- createTime string
- Create time of the quota rule. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- description string
- Description for the quota rule.
- diskLimit numberMib 
- The maximum allowed capacity in MiB.
- effectiveLabels {[key: string]: string}
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels {[key: string]: string}
- Labels as key value pairs of the quota rule. Example: - { "owner": "Bob", "department": "finance", "purpose": "testing" }.- Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location string
- Loction of the quotaRule. QuotaRules are child resources of volumes and live in the same location.
- name string
- The resource name of the quotaRule.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state string
- The state of the quota rule. Possible Values : [STATE_UNSPECIFIED, CREATING, UPDATING, READY, DELETING, ERROR]
- stateDetails string
- State details of the quota rule
- target string
- The quota rule applies to the specified user or group.
Valid targets for volumes with NFS protocol enabled:- UNIX UID for individual user quota
- UNIX GID for individual group quota Valid targets for volumes with SMB protocol enabled:
- Windows SID for individual user quota Leave empty for default quotas
 
- type string
- Types of Quota Rule.
Possible values are: INDIVIDUAL_USER_QUOTA,INDIVIDUAL_GROUP_QUOTA,DEFAULT_USER_QUOTA,DEFAULT_GROUP_QUOTA.
- volumeName string
- Name of the volume to create the quotaRule in.
- create_time str
- Create time of the quota rule. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- description str
- Description for the quota rule.
- disk_limit_ intmib 
- The maximum allowed capacity in MiB.
- effective_labels Mapping[str, str]
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Mapping[str, str]
- Labels as key value pairs of the quota rule. Example: - { "owner": "Bob", "department": "finance", "purpose": "testing" }.- Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location str
- Loction of the quotaRule. QuotaRules are child resources of volumes and live in the same location.
- name str
- The resource name of the quotaRule.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_labels Mapping[str, str]
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state str
- The state of the quota rule. Possible Values : [STATE_UNSPECIFIED, CREATING, UPDATING, READY, DELETING, ERROR]
- state_details str
- State details of the quota rule
- target str
- The quota rule applies to the specified user or group.
Valid targets for volumes with NFS protocol enabled:- UNIX UID for individual user quota
- UNIX GID for individual group quota Valid targets for volumes with SMB protocol enabled:
- Windows SID for individual user quota Leave empty for default quotas
 
- type str
- Types of Quota Rule.
Possible values are: INDIVIDUAL_USER_QUOTA,INDIVIDUAL_GROUP_QUOTA,DEFAULT_USER_QUOTA,DEFAULT_GROUP_QUOTA.
- volume_name str
- Name of the volume to create the quotaRule in.
- createTime String
- Create time of the quota rule. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- description String
- Description for the quota rule.
- diskLimit NumberMib 
- The maximum allowed capacity in MiB.
- effectiveLabels Map<String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Map<String>
- Labels as key value pairs of the quota rule. Example: - { "owner": "Bob", "department": "finance", "purpose": "testing" }.- Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location String
- Loction of the quotaRule. QuotaRules are child resources of volumes and live in the same location.
- name String
- The resource name of the quotaRule.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- The state of the quota rule. Possible Values : [STATE_UNSPECIFIED, CREATING, UPDATING, READY, DELETING, ERROR]
- stateDetails String
- State details of the quota rule
- target String
- The quota rule applies to the specified user or group.
Valid targets for volumes with NFS protocol enabled:- UNIX UID for individual user quota
- UNIX GID for individual group quota Valid targets for volumes with SMB protocol enabled:
- Windows SID for individual user quota Leave empty for default quotas
 
- type String
- Types of Quota Rule.
Possible values are: INDIVIDUAL_USER_QUOTA,INDIVIDUAL_GROUP_QUOTA,DEFAULT_USER_QUOTA,DEFAULT_GROUP_QUOTA.
- volumeName String
- Name of the volume to create the quotaRule in.
Import
VolumeQuotaRule can be imported using any of these accepted formats:
- projects/{{project}}/locations/{{location}}/volumes/{{volume_name}}/quotaRules/{{name}}
- {{project}}/{{location}}/{{volume_name}}/{{name}}
- {{location}}/{{volume_name}}/{{name}}
When using the pulumi import command, VolumeQuotaRule can be imported using one of the formats above. For example:
$ pulumi import gcp:netapp/volumeQuotaRule:VolumeQuotaRule default projects/{{project}}/locations/{{location}}/volumes/{{volume_name}}/quotaRules/{{name}}
$ pulumi import gcp:netapp/volumeQuotaRule:VolumeQuotaRule default {{project}}/{{location}}/{{volume_name}}/{{name}}
$ pulumi import gcp:netapp/volumeQuotaRule:VolumeQuotaRule default {{location}}/{{volume_name}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the google-betaTerraform Provider.