ves-io-schema-namespace-API-List

Examples of listing namespace

Usecase:

List namespace

Request using vesctl:

vesctl configuration list namespace --namespace 

vesctl yaml response:

errors: []
items:
- annotations: {}
  labels: {}
  name: namespace-1
  statusSet: []
  tenant: acmecorp
  uid: ddd626a7-f7f5-4cfa-b222-3c6d3e706936

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/web/namespaces'

curl response

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

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "",
      "name": "namespace-1",
      "uid": "ddd626a7-f7f5-4cfa-b222-3c6d3e706936",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}