1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Limits
  5. Quota
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Limits.Quota

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This resource provides the Quota resource in Oracle Cloud Infrastructure Limits service.

    Creates a new quota with the details supplied.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testQuota = new oci.limits.Quota("testQuota", {
        compartmentId: _var.tenancy_ocid,
        description: _var.quota_description,
        statements: _var.quota_statements,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        freeformTags: {
            Department: "Finance",
        },
        locks: [{
            type: _var.quota_locks_type,
            message: _var.quota_locks_message,
            relatedResourceId: oci_limits_related_resource.test_related_resource.id,
        }],
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_quota = oci.limits.Quota("testQuota",
        compartment_id=var["tenancy_ocid"],
        description=var["quota_description"],
        statements=var["quota_statements"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        freeform_tags={
            "Department": "Finance",
        },
        locks=[oci.limits.QuotaLockArgs(
            type=var["quota_locks_type"],
            message=var["quota_locks_message"],
            related_resource_id=oci_limits_related_resource["test_related_resource"]["id"],
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Limits"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Limits.NewQuota(ctx, "testQuota", &Limits.QuotaArgs{
    			CompartmentId: pulumi.Any(_var.Tenancy_ocid),
    			Description:   pulumi.Any(_var.Quota_description),
    			Statements:    pulumi.Any(_var.Quota_statements),
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    			Locks: limits.QuotaLockArray{
    				&limits.QuotaLockArgs{
    					Type:              pulumi.Any(_var.Quota_locks_type),
    					Message:           pulumi.Any(_var.Quota_locks_message),
    					RelatedResourceId: pulumi.Any(oci_limits_related_resource.Test_related_resource.Id),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testQuota = new Oci.Limits.Quota("testQuota", new()
        {
            CompartmentId = @var.Tenancy_ocid,
            Description = @var.Quota_description,
            Statements = @var.Quota_statements,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            Locks = new[]
            {
                new Oci.Limits.Inputs.QuotaLockArgs
                {
                    Type = @var.Quota_locks_type,
                    Message = @var.Quota_locks_message,
                    RelatedResourceId = oci_limits_related_resource.Test_related_resource.Id,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Limits.Quota;
    import com.pulumi.oci.Limits.QuotaArgs;
    import com.pulumi.oci.Limits.inputs.QuotaLockArgs;
    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 testQuota = new Quota("testQuota", QuotaArgs.builder()        
                .compartmentId(var_.tenancy_ocid())
                .description(var_.quota_description())
                .statements(var_.quota_statements())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .freeformTags(Map.of("Department", "Finance"))
                .locks(QuotaLockArgs.builder()
                    .type(var_.quota_locks_type())
                    .message(var_.quota_locks_message())
                    .relatedResourceId(oci_limits_related_resource.test_related_resource().id())
                    .build())
                .build());
    
        }
    }
    
    resources:
      testQuota:
        type: oci:Limits:Quota
        properties:
          #Required
          compartmentId: ${var.tenancy_ocid}
          description: ${var.quota_description}
          statements: ${var.quota_statements}
          #Optional
          definedTags:
            Operations.CostCenter: '42'
          freeformTags:
            Department: Finance
          locks:
            - type: ${var.quota_locks_type}
              message: ${var.quota_locks_message}
              relatedResourceId: ${oci_limits_related_resource.test_related_resource.id}
    

    Create Quota Resource

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

    Constructor syntax

    new Quota(name: string, args: QuotaArgs, opts?: CustomResourceOptions);
    @overload
    def Quota(resource_name: str,
              args: QuotaArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Quota(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              compartment_id: Optional[str] = None,
              description: Optional[str] = None,
              statements: Optional[Sequence[str]] = None,
              defined_tags: Optional[Mapping[str, Any]] = None,
              freeform_tags: Optional[Mapping[str, Any]] = None,
              locks: Optional[Sequence[_limits.QuotaLockArgs]] = None,
              name: Optional[str] = None)
    func NewQuota(ctx *Context, name string, args QuotaArgs, opts ...ResourceOption) (*Quota, error)
    public Quota(string name, QuotaArgs args, CustomResourceOptions? opts = null)
    public Quota(String name, QuotaArgs args)
    public Quota(String name, QuotaArgs args, CustomResourceOptions options)
    
    type: oci:Limits:Quota
    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 QuotaArgs
    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 QuotaArgs
    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 QuotaArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args QuotaArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args QuotaArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var quotaResource = new Oci.Limits.Quota("quotaResource", new()
    {
        CompartmentId = "string",
        Description = "string",
        Statements = new[]
        {
            "string",
        },
        DefinedTags = 
        {
            { "string", "any" },
        },
        FreeformTags = 
        {
            { "string", "any" },
        },
        Locks = new[]
        {
            new Oci.Limits.Inputs.QuotaLockArgs
            {
                Type = "string",
                Message = "string",
                RelatedResourceId = "string",
                TimeCreated = "string",
            },
        },
        Name = "string",
    });
    
    example, err := Limits.NewQuota(ctx, "quotaResource", &Limits.QuotaArgs{
    	CompartmentId: pulumi.String("string"),
    	Description:   pulumi.String("string"),
    	Statements: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Locks: limits.QuotaLockArray{
    		&limits.QuotaLockArgs{
    			Type:              pulumi.String("string"),
    			Message:           pulumi.String("string"),
    			RelatedResourceId: pulumi.String("string"),
    			TimeCreated:       pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    })
    
    var quotaResource = new Quota("quotaResource", QuotaArgs.builder()        
        .compartmentId("string")
        .description("string")
        .statements("string")
        .definedTags(Map.of("string", "any"))
        .freeformTags(Map.of("string", "any"))
        .locks(QuotaLockArgs.builder()
            .type("string")
            .message("string")
            .relatedResourceId("string")
            .timeCreated("string")
            .build())
        .name("string")
        .build());
    
    quota_resource = oci.limits.Quota("quotaResource",
        compartment_id="string",
        description="string",
        statements=["string"],
        defined_tags={
            "string": "any",
        },
        freeform_tags={
            "string": "any",
        },
        locks=[oci.limits.QuotaLockArgs(
            type="string",
            message="string",
            related_resource_id="string",
            time_created="string",
        )],
        name="string")
    
    const quotaResource = new oci.limits.Quota("quotaResource", {
        compartmentId: "string",
        description: "string",
        statements: ["string"],
        definedTags: {
            string: "any",
        },
        freeformTags: {
            string: "any",
        },
        locks: [{
            type: "string",
            message: "string",
            relatedResourceId: "string",
            timeCreated: "string",
        }],
        name: "string",
    });
    
    type: oci:Limits:Quota
    properties:
        compartmentId: string
        definedTags:
            string: any
        description: string
        freeformTags:
            string: any
        locks:
            - message: string
              relatedResourceId: string
              timeCreated: string
              type: string
        name: string
        statements:
            - string
    

    Quota 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 Quota resource accepts the following input properties:

    CompartmentId string
    The OCID of the compartment containing the resource this quota applies to.
    Description string
    (Updatable) The description you assign to the quota.
    Statements List<string>

    (Updatable) An array of quota statements written in the declarative quota statement language.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags Dictionary<string, object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Locks List<QuotaLock>
    Locks associated with this resource.
    Name string
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    CompartmentId string
    The OCID of the compartment containing the resource this quota applies to.
    Description string
    (Updatable) The description you assign to the quota.
    Statements []string

    (Updatable) An array of quota statements written in the declarative quota statement language.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags map[string]interface{}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Locks []QuotaLockArgs
    Locks associated with this resource.
    Name string
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    compartmentId String
    The OCID of the compartment containing the resource this quota applies to.
    description String
    (Updatable) The description you assign to the quota.
    statements List<String>

    (Updatable) An array of quota statements written in the declarative quota statement language.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String,Object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    locks List<QuotaLock>
    Locks associated with this resource.
    name String
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    compartmentId string
    The OCID of the compartment containing the resource this quota applies to.
    description string
    (Updatable) The description you assign to the quota.
    statements string[]

    (Updatable) An array of quota statements written in the declarative quota statement language.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags {[key: string]: any}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    locks QuotaLock[]
    Locks associated with this resource.
    name string
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    compartment_id str
    The OCID of the compartment containing the resource this quota applies to.
    description str
    (Updatable) The description you assign to the quota.
    statements Sequence[str]

    (Updatable) An array of quota statements written in the declarative quota statement language.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeform_tags Mapping[str, Any]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    locks Sequence[limits.QuotaLockArgs]
    Locks associated with this resource.
    name str
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    compartmentId String
    The OCID of the compartment containing the resource this quota applies to.
    description String
    (Updatable) The description you assign to the quota.
    statements List<String>

    (Updatable) An array of quota statements written in the declarative quota statement language.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<Any>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    locks List<Property Map>
    Locks associated with this resource.
    name String
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Quota resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    IsLockOverride bool
    this is a computed field which is set to true if any lock is present`
    State string
    The quota's current state.
    TimeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    Id string
    The provider-assigned unique ID for this managed resource.
    IsLockOverride bool
    this is a computed field which is set to true if any lock is present`
    State string
    The quota's current state.
    TimeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    isLockOverride Boolean
    this is a computed field which is set to true if any lock is present`
    state String
    The quota's current state.
    timeCreated String
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id string
    The provider-assigned unique ID for this managed resource.
    isLockOverride boolean
    this is a computed field which is set to true if any lock is present`
    state string
    The quota's current state.
    timeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id str
    The provider-assigned unique ID for this managed resource.
    is_lock_override bool
    this is a computed field which is set to true if any lock is present`
    state str
    The quota's current state.
    time_created str
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    isLockOverride Boolean
    this is a computed field which is set to true if any lock is present`
    state String
    The quota's current state.
    timeCreated String
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    Look up Existing Quota Resource

    Get an existing Quota 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?: QuotaState, opts?: CustomResourceOptions): Quota
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            description: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            is_lock_override: Optional[bool] = None,
            locks: Optional[Sequence[_limits.QuotaLockArgs]] = None,
            name: Optional[str] = None,
            state: Optional[str] = None,
            statements: Optional[Sequence[str]] = None,
            time_created: Optional[str] = None) -> Quota
    func GetQuota(ctx *Context, name string, id IDInput, state *QuotaState, opts ...ResourceOption) (*Quota, error)
    public static Quota Get(string name, Input<string> id, QuotaState? state, CustomResourceOptions? opts = null)
    public static Quota get(String name, Output<String> id, QuotaState 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:
    CompartmentId string
    The OCID of the compartment containing the resource this quota applies to.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) The description you assign to the quota.
    FreeformTags Dictionary<string, object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    IsLockOverride bool
    this is a computed field which is set to true if any lock is present`
    Locks List<QuotaLock>
    Locks associated with this resource.
    Name string
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    State string
    The quota's current state.
    Statements List<string>

    (Updatable) An array of quota statements written in the declarative quota statement language.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    TimeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    CompartmentId string
    The OCID of the compartment containing the resource this quota applies to.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) The description you assign to the quota.
    FreeformTags map[string]interface{}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    IsLockOverride bool
    this is a computed field which is set to true if any lock is present`
    Locks []QuotaLockArgs
    Locks associated with this resource.
    Name string
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    State string
    The quota's current state.
    Statements []string

    (Updatable) An array of quota statements written in the declarative quota statement language.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    TimeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The OCID of the compartment containing the resource this quota applies to.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) The description you assign to the quota.
    freeformTags Map<String,Object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    isLockOverride Boolean
    this is a computed field which is set to true if any lock is present`
    locks List<QuotaLock>
    Locks associated with this resource.
    name String
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    state String
    The quota's current state.
    statements List<String>

    (Updatable) An array of quota statements written in the declarative quota statement language.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    timeCreated String
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId string
    The OCID of the compartment containing the resource this quota applies to.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) The description you assign to the quota.
    freeformTags {[key: string]: any}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    isLockOverride boolean
    this is a computed field which is set to true if any lock is present`
    locks QuotaLock[]
    Locks associated with this resource.
    name string
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    state string
    The quota's current state.
    statements string[]

    (Updatable) An array of quota statements written in the declarative quota statement language.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    timeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartment_id str
    The OCID of the compartment containing the resource this quota applies to.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    (Updatable) The description you assign to the quota.
    freeform_tags Mapping[str, Any]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    is_lock_override bool
    this is a computed field which is set to true if any lock is present`
    locks Sequence[limits.QuotaLockArgs]
    Locks associated with this resource.
    name str
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    state str
    The quota's current state.
    statements Sequence[str]

    (Updatable) An array of quota statements written in the declarative quota statement language.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    time_created str
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The OCID of the compartment containing the resource this quota applies to.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) The description you assign to the quota.
    freeformTags Map<Any>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    isLockOverride Boolean
    this is a computed field which is set to true if any lock is present`
    locks List<Property Map>
    Locks associated with this resource.
    name String
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    state String
    The quota's current state.
    statements List<String>

    (Updatable) An array of quota statements written in the declarative quota statement language.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    timeCreated String
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    Supporting Types

    QuotaLock, QuotaLockArgs

    Type string
    Lock type.
    Message string
    A message added by the lock creator. The message typically gives an indication of why the resource is locked.
    RelatedResourceId string
    The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
    TimeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    Type string
    Lock type.
    Message string
    A message added by the lock creator. The message typically gives an indication of why the resource is locked.
    RelatedResourceId string
    The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
    TimeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    type String
    Lock type.
    message String
    A message added by the lock creator. The message typically gives an indication of why the resource is locked.
    relatedResourceId String
    The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
    timeCreated String
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    type string
    Lock type.
    message string
    A message added by the lock creator. The message typically gives an indication of why the resource is locked.
    relatedResourceId string
    The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
    timeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    type str
    Lock type.
    message str
    A message added by the lock creator. The message typically gives an indication of why the resource is locked.
    related_resource_id str
    The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
    time_created str
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    type String
    Lock type.
    message String
    A message added by the lock creator. The message typically gives an indication of why the resource is locked.
    relatedResourceId String
    The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
    timeCreated String
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    Import

    Quotas can be imported using the id, e.g.

    $ pulumi import oci:Limits/quota:Quota test_quota "id"
    

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

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi