ves-io-schema-namespace_role-API-Get

Examples of getting namespace_role

Usecase:

Get namespace-role-1

Request using vesctl:

vesctl configuration get namespace_role namespace-role-1 --namespace documentation

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: namespace-role-1
    namespace: documentation
    uid: f1375a49-9955-4976-afc0-61363212d826
  spec:
    gcSpec:
      role: []
      user: []
  systemMetadata:
    creationTimestamp: "2020-05-15T10:52:46.848187314Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 7b13c7b3271284ef:7b13c7b3271284ef:0:1
    uid: f1375a49-9955-4976-afc0-61363212d826
resourceVersion: "303"
status: []

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Length: 1271
Content-Type: application/json
Date: Fri, 15 May 2020 10:52:46 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "namespace-role-1",
      "namespace": "documentation",
      "uid": "f1375a49-9955-4976-afc0-61363212d826",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "f1375a49-9955-4976-afc0-61363212d826",
      "creation_timestamp": "2020-05-15T10:52:46.848187314Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "7b13c7b3271284ef:7b13c7b3271284ef:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "user": [
        ],
        "role": [
        ],
        "namespace": ""
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "303",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}