ves-io-schema-token-API-Get

Examples of getting token

Usecase:

Get token-1

Request using vesctl:

vesctl configuration get token token-1 --namespace documentation

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: token-1
    namespace: documentation
    uid: 2f5c244f-e69e-4b3b-acaf-df22391bc054
  spec:
    gcSpec: {}
  systemMetadata:
    creationTimestamp: "2020-07-02T15:53:34.917974Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 58e25625c219c9e5:58e25625c219c9e5:0:1
    uid: 2f5c244f-e69e-4b3b-acaf-df22391bc054
resourceVersion: "600"
status: []

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Length: 1204
Content-Type: application/json
Date: Thu, 02 Jul 2020 15:53:34 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "token-1",
      "namespace": "documentation",
      "uid": "2f5c244f-e69e-4b3b-acaf-df22391bc054",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "2f5c244f-e69e-4b3b-acaf-df22391bc054",
      "creation_timestamp": "2020-07-02T15:53:34.917974Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "58e25625c219c9e5:58e25625c219c9e5:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "state": "UNKNOWN"
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "600",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}