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: 762c51d7-b1ca-4e9a-ab54-246a834d9716
- annotations: {}
  labels: {}
  name: k8s-discovery
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 566ec0e8-ec3e-4071-adde-8b1afabf6737

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build038462651_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, 12 Jan 2022 14:48:19 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "consul-discovery",
      "uid": "762c51d7-b1ca-4e9a-ab54-246a834d9716",
      "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": "566ec0e8-ec3e-4071-adde-8b1afabf6737",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}