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

  1. Go to the Trusted Cloud console API Library page.

    Go to API Library

  2. Select the Trusted Cloud project that you want to access the API.

  3. On the API Library page, enable Cloud Quotas API.

  4. 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

  1. 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.

  2. 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