Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
En esta página, se describe cómo configurar tu entorno de desarrollo para usar la API de Cloud Quotas y cómo configurar el comando curl a fin de probar la API sin configurar un entorno de desarrollo de aplicaciones completo. No es necesario que completes estas instrucciones si quieres enumerar, habilitar o inhabilitar los servicios mediante la consola de Google Cloud.
Habilita la API de Cloud Quotas
Para usar la API de Cloud Quotas, primero debes habilitarla en el proyecto de Google Cloud en el que quieras usarla:
Ve a la página Biblioteca de APIs de la consola de Google Cloud.
Selecciona el proyecto de Google Cloud que deseas usar para acceder al servicio.
En la página Biblioteca de APIs, habilita la API de Cloud Quotas.
Asegúrate de que tu cuenta de usuario tenga los roles de IAM necesarios.
Cómo configurar gCurl
Para habilitar la API de Cloud Quotas, ejecuta el siguiente comando a fin de habilitar el servicio en el proyecto de Google Cloud en el que deseas usarlo:
gcloud services enable cloudquotas.googleapis.com
El resultado correcto es similar al siguiente:
Waiting for async operation operations/acf.2e2fcfce-8327-4984-9040-a67777082687 to complete…
Operation finished successfully.
Define un alias de shell conveniente para llamar a las API de REST de Google:
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-03-26 (UTC)"],[[["\u003cp\u003eThis page outlines the steps to set up a development environment for the Cloud Quotas API and configure \u003ccode\u003ecurl\u003c/code\u003e for API testing.\u003c/p\u003e\n"],["\u003cp\u003eEnabling 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 \u003ccode\u003egcloud\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eThe setup process includes defining a shell alias (\u003ccode\u003egcurl\u003c/code\u003e) for streamlined REST API calls and setting the \u003ccode\u003ePROJECT_ID\u003c/code\u003e environment variable.\u003c/p\u003e\n"],["\u003cp\u003eVerifying the setup involves using \u003ccode\u003egcurl\u003c/code\u003e to list enabled APIs and services in your project, ensuring the Cloud Quotas API is included in the results.\u003c/p\u003e\n"]]],[],null,["# Set up the Cloud Quotas API\n\nTo use the Cloud Quotas API, you must first enable it for your\nGoogle Cloud project. This document describes how to enable the Cloud Quotas API.\n\nEnable the API\n--------------\n\nYou can enable the Cloud Quotas API by using the Google Cloud console or the\n[Google Cloud CLI](/sdk/gcloud). \n\n### Console\n\n1. Go to the Google Cloud console **API Library** page.\n\n\n [Go to API Library](https://console.cloud.google.com/project/_/apis/library/cloudquotas.googleapis.com)\n\n \u003cbr /\u003e\n\n2. Select the Google Cloud project that you want to access the API.\n\n3. On the API Library page, enable **Cloud Quotas API**.\n\n4. Make sure that your user account has the required [IAM\n roles](/docs/quotas/permissions).\n\n### gcloud\n\nBefore you begin\n----------------\n\nAuthenticate to the gcloud CLI before you use it to enable\nAPIs. For more information about the authentication process, see\n[Authorize the gcloud CLI](/sdk/docs/authorizing).\n\nEnable the API\n--------------\n\n1. Run the [`gcloud services enable`](/sdk/gcloud/reference/services/enable)\n command and specify the Cloud Quotas API:\n\n gcloud services enable cloudquotas.googleapis.com --project=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e\n\n Replace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with the ID of the project\n that needs access to the Cloud Quotas API. You can find your project ID on the\n [Welcome](https://console.cloud.google.com/welcome) page of the Google Cloud console.\n2. To confirm that the Cloud Quotas API is enabled in your project, run the\n [`gcloud services list`](/sdk/gcloud/reference/services/list) command\n and filter for `cloudquotas.googleapis.com` by passing the output to a\n command such as `grep` or using a gcloud CLI\n [`filter`](/sdk/gcloud/reference/topic/filters):\n\n gcloud services list --filter=\"cloudquotas.googleapis.com\"\n\nWhat's next\n-----------\n\n- About the [Cloud Quotas API](/docs/quotas/api-overview)\n\n- Cloud Quotas API [reference](/docs/quotas/reference/rest)"]]