啟用及停用服務

本頁面說明啟用和停用 Infrastructure Manager 的步驟。

如要瞭解 Infra Manager 的收費方式,請參閱「定價」。

啟用服務

  1. 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.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Make sure that billing is enabled for your Google Cloud project.

  4. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  5. Make sure that billing is enabled for your Google Cloud project.

  6. 如果尚未安裝 Google Cloud CLI,請安裝並初始化。如果是現有安裝作業,請使用以下指令更新 Google Cloud CLI 的元件:gcloud components update

    如要確認 gcloud CLI 版本,請執行下列指令:

    gcloud version
  7. 您可以透過 Google Cloud 控制台啟用 API,也可以使用下列 gcloud 指令:
    gcloud services enable config.googleapis.com
  8. 選用:如要搭配 Infra Manager 使用配額驗證,請從 Google Cloud 控制台或透過以下 gcloud 指令啟用 API:
    gcloud services enable cloudquotas.googleapis.com
  9. 停用服務

    停用 Infra Manager API 後,專案中仍會保留所有相關資源。停用後,您就無法使用這項服務對專案中的部署和資源進行任何變更。

    如果您再次啟用 API,可以繼續以首次啟用 API 時的方式使用服務。

    如要透過 Google Cloud 控制台停用 API,請按照下列步驟操作:

    主控台

    1. 前往 Infra Manager 的「API 總覽」頁面。
    2. 選取已啟用 API 的專案。
    3. 點選「管理」
    4. 點選「停用 API」

    gcloud

    執行下列指令,為目前專案停用 API:

    gcloud services disable config.googleapis.com
    

    後續步驟