gcloud Disable Dependent Services
What
When using gcloud to disable services, you may run in to the below error
This is actually a terraform error that the API has returned.
It should really read:
But that's none of my BusinessHow
You will need to use gcurl
Setup gcurl
alias gcurl='curl -H "Authorization: Bearer $(gcloud auth print-access-token)" -H "Content-Type: application/json"'
Get the project numerical ID
Make a note of the Numerical ID
Disable the service
PROJECT=1234
SERVICE="service.googleapis.com"
gcurl -d '{ "disableDependentServices": true,}' "https://serviceusage.googleapis.com/v1/projects/${PROJECT}/services/${SERVICE}:disable"
Want to make this site better? Open a PR or help fund hosting costs