[[["易于理解","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-04。"],[],[],null,["# Enable and disable the service\n\nThis page describes the steps required to enable or disable Cloud Source Repositories.\n| **Caution:** Effective June 17, 2024, Cloud Source Repositories isn't available\n| to new customers. If your organization hasn't\n| previously used Cloud Source Repositories, you can't enable the API or use\n| Cloud Source Repositories. New projects not connected to an organization can't enable the\n| Cloud Source Repositories API. Organizations that have used Cloud Source Repositories prior to\n| June 17, 2024 are not affected by this change.\n\nEnable the service\n------------------\n\n1. Ensure you have the \\`serviceusage.services.enable\\` IAM permission on the project.\n2. Enable the Cloud Source Repositories API with the following Google Cloud CLI command: \n\n ```bash\n gcloud services enable sourcerepo.googleapis.com\n ```\n\nDisable the service\n-------------------\n\n1. Before you disable the Cloud Source Repositories API, ensure that all code that you\n want to keep is available in another location.\n\n2. It's recommended that you [delete repositories](/source-repositories/docs/deleting-a-repository) before you\n disable the API.\n\n3. To disable Cloud Source Repositories, run the following command for your current\n project:\n\n gcloud services disable sourcerepos.googleapis.com"]]