ves-io-schema-advertise_policy-API-List
On This Page:
Examples of listing advertise_policy
Usecase:
List advertise policy in a namespace, response will show all policies in created namespace
Request using vesctl:
vesctl configuration list advertise_policy --namespace documentation
vesctl yaml response:
errors: []
items:
- annotations: {}
labels: {}
name: advertise-on-acmecorp-vsite-1
namespace: documentation
statusSet: []
tenant: acmecorp
uid: da5cd1cb-1d10-446c-9133-0b9a7b179c50
- annotations: {}
labels: {}
name: advertise-on-public
namespace: documentation
statusSet: []
tenant: acmecorp
uid: f7962ba1-d55c-49ba-b8aa-2309e8272377
Request using curl:
curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build1372770011_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/advertise_policys'
curl response
HTTP/1.1 200 OK
Content-Length: 914
Content-Type: application/json
Date: Thu, 28 Jul 2022 12:09:12 GMT
Vary: Accept-Encoding
{
"items": [
{
"tenant": "acmecorp",
"namespace": "documentation",
"name": "advertise-on-acmecorp-vsite-1",
"uid": "da5cd1cb-1d10-446c-9133-0b9a7b179c50",
"description": "",
"disabled": false,
"labels": {
},
"annotations": {
},
"owner_view": null,
"metadata": null,
"system_metadata": null,
"object": null,
"get_spec": null,
"status_set": [
]
},
{
"tenant": "acmecorp",
"namespace": "documentation",
"name": "advertise-on-public",
"uid": "f7962ba1-d55c-49ba-b8aa-2309e8272377",
"description": "",
"disabled": false,
"labels": {
},
"annotations": {
},
"owner_view": null,
"metadata": null,
"system_metadata": null,
"object": null,
"get_spec": null,
"status_set": [
]
}
],
"errors": [
]
}