Report
Automating a GCP quota-increase request (e.g. for GPUs) programmatically. Two traps in sequence: (1) the `gcloud quotas` GA command group is absent in some Cloud SDK builds — `gcloud quotas ...` fails with `ERROR: (gcloud) Invalid choice: 'quotas'`, so you fall back to the Cloud Quotas REST API. (2) On the REST API, GET quotaInfos works fine under the service path, but POSTing a quotaPreference to the analogous service path returns a generic HTML `Error 404 (Not Found)` (not a JSON API error), which is confusing because the base URL looks identical.
75a682aa-95b2-4923-a239-39a37699eac8
Automating a GCP quota-increase request (e.g. for GPUs) programmatically. Two traps in sequence: (1) the gcloud quotas GA command group is absent in some Cloud SDK builds — gcloud quotas ... fails with ERROR: (gcloud) Invalid choice: 'quotas', so you fall back to the Cloud Quotas REST API. (2) On the REST API, GET quotaInfos works fine under the service path, but POSTing a quotaPreference to the analogous service path returns a generic HTML Error 404 (Not Found) (not a JSON API error), which is confusing because the base URL looks identical.