ves-io-schema-discovery-API-List
On This Page:
Examples of listing discovery
Usecase:
List discovery objects from system namespace
Request using vesctl:
vesctl configuration list discovery --namespace system
vesctl yaml response:
items:
- annotations: {}
labels: {}
name: consul-discovery
namespace: system
statusSet: []
tenant: acmecorp
uid: 018d418b-4bf9-4b8d-a435-dacb46dd80db
- annotations: {}
labels: {}
name: k8s-discovery
namespace: system
statusSet: []
tenant: acmecorp
uid: f950a1ce-016e-4074-a763-ac8d186382aa
Request using curl:
curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build817539475_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: 862
Content-Type: application/json
Date: Mon, 22 Feb 2021 15:43:46 GMT
Vary: Accept-Encoding
{
"items": [
{
"tenant": "acmecorp",
"namespace": "system",
"name": "consul-discovery",
"uid": "018d418b-4bf9-4b8d-a435-dacb46dd80db",
"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": "f950a1ce-016e-4074-a763-ac8d186382aa",
"description": "",
"disabled": false,
"labels": {
},
"annotations": {
},
"owner_view": null,
"metadata": null,
"system_metadata": null,
"object": null,
"get_spec": null,
"status_set": [
]
}
]
}