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: 1a42385c-6153-4724-abb5-8547aae9c646
- annotations: {}
  labels: {}
  name: k8s-discovery
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: b8dde42e-8281-46e3-8013-8e951e483145

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/config/namespaces/system/discoverys'

curl response

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

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "consul-discovery",
      "uid": "1a42385c-6153-4724-abb5-8547aae9c646",
      "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": "b8dde42e-8281-46e3-8013-8e951e483145",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}