Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Cette page décrit la procédure à suivre pour activer et désactiver Infrastructure Manager.
Pour en savoir plus sur les frais liés à Infra Manager, consultez la section Tarifs.
Activer le service
Sign in to your Google Cloud account. If you're new to
Google Cloud,
create an account to evaluate how our products perform in
real-world scenarios. New customers also get $300 in free credits to
run, test, and deploy workloads.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
Installez et initialisez Google Cloud CLI si ce n'est pas déjà fait. Pour une installation existante, mettez à jour les composants de Google Cloud CLI à l'aide de la commande suivante :
gcloud components update.
Pour vérifier votre version de la gcloud CLI, exécutez la commande suivante :
gcloud version
Activez l'API depuis la consoleGoogle Cloud ou à l'aide de la commande gcloud suivante :
Lorsque vous désactivez l'API Infra Manager, toutes les ressources associées continuent d'exister dans le projet. Une fois le service désactivé, vous ne pouvez plus l'utiliser pour modifier les déploiements et les ressources du projet.
Si vous réactivez l'API, vous pouvez continuer à utiliser le service de la même manière que lorsque vous l'avez activée pour la première fois.
Pour désactiver l'API à partir de la console Google Cloud :
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/08/19 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/08/19 (UTC)."],[[["\u003cp\u003eThis page outlines how to enable and disable the Infrastructure Manager service.\u003c/p\u003e\n"],["\u003cp\u003eEnabling the service requires installing or updating the Google Cloud CLI and enabling the necessary API via the console or with the \u003ccode\u003egcloud\u003c/code\u003e command, with an optional second API for quota validation.\u003c/p\u003e\n"],["\u003cp\u003eDisabling the service can be done through the Google Cloud console or with the \u003ccode\u003egcloud services disable config.googleapis.com\u003c/code\u003e command, and any existing resources remain unchanged.\u003c/p\u003e\n"],["\u003cp\u003eDisabling prevents any further changes to deployments and resources in the project, but enabling the API again will resume normal service.\u003c/p\u003e\n"]]],[],null,["# Enable and disable the service\n\nThis page describes the steps to enable and disable Infrastructure Manager.\n\nSee [Pricing](../pricing) for information about charges for Infra Manager.\n\nEnabling service\n----------------\n\n- Sign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n1. Install and initialize [Google Cloud CLI](/sdk/docs) if it is not already installed. For an existing installation, update components of the Google Cloud CLI with the command: `gcloud components update`.\n\n To check your version of the gcloud CLI, run the command: \n\n ```\n gcloud version\n ```\n | **Note:** On Ubuntu, use the [Debian package](/sdk/docs/install#deb) to install gcloud CLI. The gcloud CLI snap package does not include `kubectl` or extensions to authenticate with Infra Manager using the gcloud CLI.\n2. Enable the API from [Google Cloud console](https://console.cloud.google.com/flows/enableapi?apiid=config.googleapis.com) or with the following `gcloud` command: \n\n ```\n gcloud services enable config.googleapis.com\n ```\n3. Optional: In order to use [quota validation](/infrastructure-manager/docs/quotas#quota_validation) with Infra Manager, enable the API from [Google Cloud console](https://console.cloud.google.com/flows/enableapi?apiid=cloudquotas.googleapis.com) or with the following `gcloud` command: \n\n ```\n gcloud services enable cloudquotas.googleapis.com\n ```\n\nDisabling service\n-----------------\n\nWhen you disable the Infra Manager API, any related resources will\ncontinue to exist in the project. Once disabled, you cannot use the service\nto make any changes to deployments and resources in the project.\n\nIf you enable the API again, you can continue to use the service in the same\nway as when you first enabled the API.\n\nTo disable the API from the Google Cloud console: \n\n### console\n\n1. Go to the [API Overview](https://console.cloud.google.com/apis/library/config.googleapis.com) page for Infra Manager.\n2. Select the project where the API is enabled.\n3. Click **Manage**.\n4. Click **Disable API**.\n\n### gcloud\n\nRun the following command to disable the API for your current project: \n\n gcloud services disable config.googleapis.com\n\nWhat's next\n-----------\n\n- Learn more about [Terraform with Google Cloud](/docs/terraform).\n- [Deploy infrastructure using Infra Manager](/infrastructure-manager/docs/deploy-resources).\n- [Update a deployment](/infrastructure-manager/docs/update-deployment).\n- [View the state of a deployment](/infrastructure-manager/docs/view-deployments)."]]