Document how to get quota_ids

This commit is contained in:
Wiktor Niesiobędzki 2024-04-11 09:14:19 +00:00 committed by Wiktor Niesiobędzki
parent bca5901691
commit 825bfca66d
1 changed files with 8 additions and 1 deletions

View File

@ -801,7 +801,14 @@ includedPermissions:
## Quotas
Project and regional quotas can be managed via the `quotas` variable.
Project and regional quotas can be managed via the `quotas` variable. Keep in mind, that metrics returned by `gcloud compute regions describe` do not match `quota_id`s. To get a list of quotas in the project use the API call, for example to get quotas for `compute.googleapis.com` use:
```bash
curl -X GET \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "X-Goog-User-Project: ${PROJECT_ID}" \
"https://cloudquotas.googleapis.com/v1/projects/${PROJECT_ID}/locations/global/services/compute.googleapis.com/quotaInfos?pageSize=1000" \
| grep quotaId
```
```hcl
module "project" {