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:

items:
- labels: {}
  name: consul-discovery
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 04eb6da0-7839-4441-ae4f-b138499cee77
- labels: {}
  name: k8s-discovery
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 2add3244-afec-4ff6-8301-e30cf12c07ac

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build144460626_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: 588
Content-Type: application/json
Date: Fri, 15 May 2020 10:52:36 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "consul-discovery",
      "uid": "04eb6da0-7839-4441-ae4f-b138499cee77",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "k8s-discovery",
      "uid": "2add3244-afec-4ff6-8301-e30cf12c07ac",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}