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-build185306297_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: 443
Content-Type: application/json
Date: Mon, 19 Oct 2020 09:49:00 GMT
Vary: Accept-Encoding

{
  "code": 5,
  "message": "ves.io.schema.quota.Object: default-quota does not exist in namespace documentation",
  "details": [
    {
      "@type": "type.googleapis.com/ves.io.stdlib.server.error.Error",
      "code": "UNKNOWN",
      "details": "GetResource: ves.io.schema.quota.Object.default: Key acmecorp/documentation/default-quota does not exist",
      "timestamp": "2020-10-19 09:49:00.2980407 +0000 UTC m=+63.876231301"
    }
  ]
}