Creating a Quota
Create a quota for a compartment by defining a policy statement.
- On the Quota policies list page, select Create quota. If you need help finding the list page, see Listing Quotas.
-
In the Create quota policy panel, specify the following information:
-
Name: Enter a name for the quota. Avoid entering confidential information.
-
Description: Enter a description.
-
Quota policy: Define the quota policy statement. For more information on creating quota policies and statements, see Quota Policy Quick Start, Sample Quotas, and Quota Policy Syntax.
-
- (Optional) In the Tags section, add one or more tags to the quota policy.
If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option or ask an administrator. You can apply tags later.
- Select Create.
Note
New quota policies can take up to 10 minutes to start working.Use the oci quota create command and required parameters to create a quota:
oci limits quota create --compartment-id compartment_ocid --description description --name name --statements statements [OPTIONS]
For example, to create a quota policy that disallows use of outbound email or notification for a tenancy:
oci --profile=profile-name in oci config file limits quota create --compartment-id compartment_ocid --name name for quota policy --description "some quota" --statements file:///users/sme/statements.json
Where
statements.json
is:[ "Zero email-delivery quotas in tenancy", "Zero notifications quotas in tenancy" ]
For a complete list of parameters and variable options for CLI commands, see the Command Line Reference.
Run the CreateQuota operation to create a quota.