啟用及停用服務

本頁面說明啟用或停用 Cloud Source Repositories 的必要步驟。

啟用服務。

  1. 請確認您在專案上具備 `serviceusage.services.enable` IAM 權限。
  2. 使用下列 Google Cloud CLI 指令啟用 Cloud Source Repositories API:
    gcloud services enable sourcerepo.googleapis.com

停用服務

  1. 停用 Cloud Source Repositories API 前,請先確認要保留的所有程式碼均已存放於其他位置。

  2. 建議您先刪除存放區,再停用 API。

  3. 如要停用 Cloud Source Repositories,請為目前專案執行下列指令:

    gcloud services disable sourcerepos.googleapis.com