ves-io-schema-quota-API-Get

Examples of getting quota

Usecase:

Get quota object

Request using vesctl:

vesctl configuration get quota custom-quota --namespace documentation

vesctl yaml response:

Request using curl:

          curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_2__8qnt6fwd5dvglr1xqq6l8b7w0000gp_T_go-build3109416560_b001_apidocs.test/host=C02FN35BMD6R/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/web/namespaces/documentation/quotas/custom-quota?response_format=0'
        

curl response:

          HTTP/1.1 404 Not Found
Content-Length: 354
Content-Type: application/json
Date: Thu, 21 Mar 2024 14:06:42 GMT
Vary: Accept-Encoding

{"code":5,"details":[{"type_url":"type.googleapis.com/ves.io.stdlib.server.error.Error","value":"gGetResource: ves.io.schema.quota.Object.default: Key acmecorp/documentation/custom-quota does not exist52024-03-21 15:06:42.658611 +0100 CET m=+145.774463110"}],"message":"ves.io.schema.quota.Object: custom-quota does not exist in namespace documentation"}