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-build038462651_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: 379
Content-Type: application/json
Date: Wed, 12 Jan 2022 14:50:03 GMT
Vary: Accept-Encoding

{"code":5,"details":[{"type_url":"type.googleapis.com/ves.io.stdlib.server.error.Error","value":"\u0012mGetResource: ves.io.schema.rbac_policy.Object.default: Key acmecorp/documentation/rbc-policy-1 does not exist\u001a62022-01-12 14:50:03.7571658 +0000 UTC m=+153.525182901"}],"message":"ves.io.schema.rbac_policy.Object: rbc-policy-1 does not exist in namespace documentation"}