ves-io-schema-rbac_policy-API-Get

Examples of getting rbac_policy

Usecase:

Create role-1 for Get

Request using vesctl:

vesctl configuration get rbac_policy rbc-policy-1 --namespace documentation

vesctl yaml response:

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build013258245_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/web/namespaces/documentation/rbac_policys/rbc-policy-1?response_format=0'

curl response:

HTTP/1.1 404 Not Found
Content-Length: 377
Content-Type: application/json
Date: Wed, 16 Sep 2020 10:50:41 GMT
Vary: Accept-Encoding

{
  "code": 5,
  "message": "ves.io.schema.rbac_policy.Object: rbc-policy-1 does not exist in namespace documentation",
  "details": [
    {
      "@type": "type.googleapis.com/ves.io.stdlib.server.error.Error",
      "code": "UNKNOWN",
      "details": "GetResource: ves.io.schema.rbac_policy.Object.default: Key acmecorp/documentation/rbc-policy-1 does not exist"
    }
  ]
}