[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-05。"],[[["\u003cp\u003eThis guide provides instructions on how to list deployments within a project and location using the \u003ccode\u003egcloud infra-manager deployments list\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eYou can view detailed information about a specific deployment, such as its current state and the Terraform version used, by using the \u003ccode\u003egcloud infra-manager deployments describe\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eIt is possible to list all revisions associated with a particular deployment by utilizing the \u003ccode\u003egcloud infra-manager revisions list\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eYou can view specific details about a particular revision, such as its current state and the Terraform version used, by utilizing the \u003ccode\u003egcloud infra-manager revisions describe\u003c/code\u003e command.\u003c/p\u003e\n"]]],[],null,["# View deployments\n\nThis page describes how to view information about deployments, including:\n\n- [Listing deployments in a project](#list-deployments).\n- [Viewing details of a deployment](#deployment-details), including the following:\n - The state of the deployment.\n - The version of Terraform used to create the deployment.\n- [Listing revisions in a deployment](#list-revision).\n- [Viewing details of a revision](#revision-details), including the following:\n - The state of the revision.\n - The version of Terraform used to create the revision.\n\nBefore you begin\n----------------\n\n1. Ensure [Infra Manager is enabled](/infrastructure-manager/docs/enable-service).\n2. Ensure that you have the IAM permissions needed to view deployments:\n - `roles/config.admin` or `roles/config.viewer`.\n\nList deployments in a project\n-----------------------------\n\nDeployments are specific to a project and\n[location](/infrastructure-manager/docs/locations). You can list the\ndeployments if you want to assess which deployments exist.\n\nTo list the deployments in a project and location, use the following command: \n\n gcloud infra-manager deployments list --project \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e --location \"\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e\"\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the project ID where Infrastructure Manager runs.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e with the location where the deployments exist. See [Infrastructure Manager locations](/infrastructure-manager/docs/locations) for the list of valid locations.\n\nView details of a deployment\n----------------------------\n\nAfter you create a deployment, you might want to view details about the\ndeployment, including the following:\n\n- The state of the deployment. View the state to verify if the deployment was successful, failed, or had any issues such as a partial deployment.\n- The version of Terraform that Infra Manager used to create the deployment.\n\nTo view details of a deployment, use the following command: \n\n gcloud infra-manager deployments describe projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/locations/\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e/deployments/\u003cvar translate=\"no\"\u003eDEPLOYMENT_ID\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the project ID where Infrastructure Manager runs.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: the location where Infra Manager runs. See [Infrastructure Manager locations](/infrastructure-manager/docs/locations) for the list of valid locations.\n- \u003cvar translate=\"no\"\u003eDEPLOYMENT_ID\u003c/var\u003e: the deployment identifier of the deployment you're viewing.\n\nFor the list of possible states and details about each state, see\n[State](/infrastructure-manager/docs/reference/rest/v1/projects.locations.deployments#State)\nin the REST API reference.\n\nThe version of Terraform used to create the deployment is listed in the output\nnext to `tfVersion`. For more information, see\n[Supported Terraform versions](/infrastructure-manager/docs/terraform#terraform_versions).\n\nTo troubleshoot failed deployments, see\n[Troubleshoot deployment errors](/infrastructure-manager/docs/troubleshoot-deployments).\n\nList revisions in a deployment\n------------------------------\n\nYou might want to see the list of the different revisions that a deployment\nhas gone through.\n\nTo list the revisions in a deployment, use the following command: \n\n gcloud infra-manager revisions list --deployment=projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/locations/\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e/deployments/\u003cvar translate=\"no\"\u003eDEPLOYMENT_ID\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the project ID where Infrastructure Manager runs.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: the location where Infra Manager runs. See [Infrastructure Manager locations](/infrastructure-manager/docs/locations) for the list of valid locations.\n- \u003cvar translate=\"no\"\u003eDEPLOYMENT_ID\u003c/var\u003e: the deployment identifier of the deployment you're viewing.\n\nView details of a revision\n--------------------------\n\nTo view details of a specific revision, use the following command: \n\n gcloud infra-manager revisions describe projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/locations/\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e/deployments/\u003cvar translate=\"no\"\u003eDEPLOYMENT_ID\u003c/var\u003e/revisions/\u003cvar translate=\"no\"\u003eREVISION_ID\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the project ID where Infrastructure Manager runs.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: the location where Infra Manager runs. See [Infrastructure Manager locations](/infrastructure-manager/docs/locations) for the list of valid locations.\n- \u003cvar translate=\"no\"\u003eDEPLOYMENT_ID\u003c/var\u003e: the deployment identifier of the deployment you're viewing.\n- \u003cvar translate=\"no\"\u003eREVISION_ID\u003c/var\u003e: the revision identifier of the revision you're viewing.\n\nFor the list of possible states and details about each state, see\n[State](/infrastructure-manager/docs/reference/rest/v1/projects.locations.deployments.revisions#state)\nin the REST API reference.\n\nThe version of Terraform used to create the revision is listed in the output\nnext to `tfVersion`. For more details, see\n[Supported Terraform versions](/infrastructure-manager/docs/terraform#terraform_versions).\n\nTo troubleshoot failed deployments, which includes failed revisions, see\n[Troubleshoot deployment errors](/infrastructure-manager/docs/troubleshoot-deployments).\n\nWhat's next\n-----------\n\n- Learn more about [Terraform with Google Cloud](/docs/terraform).\n- [Automate deployments](/infrastructure-manager/docs/automate-git).\n- [Update a deployment](/infrastructure-manager/docs/update-deployment).\n- [View resources deployed](/infrastructure-manager/docs/view-resources).\n- [Delete a deployment](/infrastructure-manager/docs/delete-deployments)."]]