Managing Quota Policies
The following describes how to manage quota policies using the Console and the command line.
Using the Console
The following instructions describe how to create, edit, or delete quotas. Also see Sample Quotas for a listing of example quota policies, and Quota Policy Quick Start for more information on how you can quickly create a quota policy for any resource.
- Open the navigation menu and click Governance & Administration. Under Tenancy Management, click Quota Policies.
-
On the Quota Policies screen, click Create Quota.
-
Enter the following:
-
Enter a name for your quota in the Name field.
Avoid entering confidential information.
-
Enter a description for your quota in the Description field.
-
Enter a quota policy string in the Quota Policy field.
-
- Click Create Quota Policy.
New policies can take up to 10 minutes to start working.
-
On the Quota Policies screen, click the quota you want to edit to display the quota policy details page, then click the Edit Quota button.
-
Edit the quota.
- Click Save Changes.
-
You can delete a quota from the console using the following two methods:
- On the main Quota Policies page, click the context menu to the right of the quota you want to delete, then select Delete.
- Click the quota you want to delete, then from the quota policy detail page click Delete.
- From the Confirm Delete dialog, click Delete, or Cancel.
Using the CLI
Prerequisites:
- Oracle Cloud Infrastructure CLI is set up on your machine per the instructions at Setup and Prerequisites.
- CLI configuration is set up with API keys for the user that has permissions to manage quotas. For permissions details see Authentication and Authorization.
For detailed CLI documentation, see CLI for Quotas.
oci --profile=<profile-name in oci config file> limits quota create --compartment-id <compartment id> --name <name for quota policy> --description "some quota" --statements file:///users/sme/statements.json
Where statements.json
is the following:
[
"Zero email-delivery quotas in tenancy",
"Zero notifications quotas in tenancy"
]
oci --profile=<profile-name in oci config file> limits quota delete --quota-id <quota ocid from console>
oci --profile=<profile-name in oci config file> limits quota list --compartment-id <compartment id>
oci --profile=<profile-name in oci config file> limits quota update --quota-id <quota ocid from console> --description "updating quota" --statements file:///users/sme/statements.json
Where statements.json
is the following:
[
"Zero notifications quotas in tenancy"
]
oci --profile=<profile-name in oci config file> limits quota get --quota-id <quota ocid from console>