ves-io-schema-quota-API-Get

Examples of getting quota

Usecase:

Get quota object

Request using vesctl:

vesctl configuration get quota default-quota --namespace documentation

vesctl yaml response:

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build1372770011_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/web/namespaces/documentation/quotas/default-quota?response_format=0'

curl response:

HTTP/1.1 404 Not Found
Content-Length: 359
Content-Type: application/json
Date: Thu, 28 Jul 2022 12:11:28 GMT
Vary: Accept-Encoding
X-Volterra-Response-Fields-Deprecated: object

{"code":5,"details":[{"type_url":"type.googleapis.com/ves.io.stdlib.server.error.Error","value":"hGetResource: ves.io.schema.quota.Object.default: Key acmecorp/documentation/default-quota does not exist82022-07-28 12:11:28.436460639 +0000 UTC m=+137.721946243"}],"message":"ves.io.schema.quota.Object: default-quota does not exist in namespace documentation"}