ves-io-schema-discovery-API-List

Examples of listing discovery

Usecase:

List discovery objects from system namespace

Request using vesctl:

vesctl configuration list discovery --namespace system

vesctl yaml response:

errors: []
items:
- annotations: {}
  labels: {}
  name: consul-discovery
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 3b5f830c-ca48-45d8-89f1-d2ced5a68735
- annotations: {}
  labels: {}
  name: k8s-discovery
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: b82fd8d9-09af-4a63-89a6-45f8fde050cf

Request using curl:

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

curl response

HTTP/1.1 200 OK
Content-Length: 881
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:06:57 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "consul-discovery",
      "uid": "3b5f830c-ca48-45d8-89f1-d2ced5a68735",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "k8s-discovery",
      "uid": "b82fd8d9-09af-4a63-89a6-45f8fde050cf",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}