ves-io-schema-token-API-List

Examples of listing token

Usecase:

List token

Request using vesctl:

vesctl configuration list token --namespace system

vesctl yaml response:

errors: []
items:
- annotations: {}
  labels: {}
  name: token-1
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: bb62d086-3951-4488-a778-47f0905fc199

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/register/namespaces/system/tokens'

curl response

HTTP/1.1 200 OK
Content-Length: 452
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:04:09 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "token-1",
      "uid": "bb62d086-3951-4488-a778-47f0905fc199",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}