Set up the Cloud Quotas API
To use the Cloud Quotas API, you must first enable it for your
Trusted Cloud project. This document describes how to enable the Cloud Quotas API.
Enable the API
You can enable the Cloud Quotas API by using the Trusted Cloud console or the
Google Cloud CLI.
Console
Go to the Trusted Cloud console API Library page.
Go to API Library
Select the Trusted Cloud project that you want to access the API.
On the API Library page, enable Cloud Quotas API.
Make sure that your user account has the required IAM
roles.
gcloud
Before you begin
Authenticate to the gcloud CLI before you use it to enable
APIs. For more information about the authentication process, see
Authorize the gcloud CLI.
Enable the API
Run the gcloud services enable
command and specify the Cloud Quotas API:
gcloud services enable cloudquotas.googleapis.com --project=PROJECT_ID
Replace PROJECT_ID
with the ID of the project
that needs access to the Cloud Quotas API. You can find your project ID on the
Welcome page of the Trusted Cloud console.
To confirm that the Cloud Quotas API is enabled in your project, run the
gcloud services list
command
and filter for cloudquotas.googleapis.com
by passing the output to a
command such as grep
or using a gcloud CLI
filter
:
gcloud services list --filter="cloudquotas.googleapis.com"
What's next
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This page outlines the steps to set up a development environment for the Cloud Quotas API and configure `curl` for API testing."],["Enabling the Cloud Quotas API in a specific Google Cloud project is a prerequisite, which can be done through the Google Cloud console or via the `gcloud` command."],["The setup process includes defining a shell alias (`gcurl`) for streamlined REST API calls and setting the `PROJECT_ID` environment variable."],["Verifying the setup involves using `gcurl` to list enabled APIs and services in your project, ensuring the Cloud Quotas API is included in the results."]]],[]]