ves-io-schema-token-API-List

Examples of listing token

Usecase:

List token

Request using vesctl:

vesctl configuration list token --namespace documentation

vesctl yaml response:

items:
- labels: {}
  name: token-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: fbf707bc-0a51-47f7-a90f-6fd60c660872

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'

curl response

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

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "token-1",
      "uid": "fbf707bc-0a51-47f7-a90f-6fd60c660872",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}