[英]GCP enable services/apis via Rest API or python module
How can I enable/disable APIs/Services in Google Cloud Project via Restful APIs or python?如何通过 Restful API 或 python 在 Google Cloud Project 中启用/禁用 API/服务?
For example, I want to enable following API/Service in a project.例如,我想在项目中启用以下 API/服务。
https://console.developers.google.com/apis/api/iam.googleapis.com/overview?project= https://console.developers.google.com/apis/api/iam.googleapis.com/overview?project=
I see this is a super old thread, but I figure since it comes up in a search, I should go ahead and respond.我看到这是一个超级旧的线程,但我想既然它出现在搜索中,我应该提前 go 并回复。
You can programmatically enable or disable a GCP service using the Service Usage API. There are also methods for batch operations and querying service state. See the link below to the documentation.您可以使用服务使用 API 以编程方式启用或禁用 GCP 服务。还有批量操作和查询服务 state 的方法。请参阅下面的文档链接。
https://cloud.google.com/service-usage/docs/reference/rest/v1/services https://cloud.google.com/service-usage/docs/reference/rest/v1/services
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.