ves-io-schema-role-API-Get

Examples of getting role

Usecase:

Get role-1

Request using vesctl:

vesctl configuration get role role-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: role-1
  namespace: documentation
referringObjects: []
resourceVersion: "716"
spec:
  rbacPolicy: []
status: []
systemMetadata:
  creationTimestamp: "2021-07-14T08:08:03.867621644Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 8219fbc8-f1ee-47f1-8bdb-a85df7d60f1f

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Length: 760
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:08:03 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "716",
  "metadata": {
    "name": "role-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "8219fbc8-f1ee-47f1-8bdb-a85df7d60f1f",
    "creation_timestamp": "2021-07-14T08:08:03.867621644Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "rbac_policy": [
    ]
  },
  "status": [
  ],
  "referring_objects": [
  ]
}