ves-io-schema-advertise_policy-API-List

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:

items:
- labels: {}
  name: advertise-on-acmecrop-vsite-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 80ba750b-0300-4106-a404-fe8419050048
- labels: {}
  name: advertise-on-public
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 2f22d96c-b599-4a4d-92ce-aef9ecd8f554

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build896999001_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: 621
Content-Type: application/json
Date: Fri, 31 Jul 2020 12:53:56 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "advertise-on-acmecrop-vsite-1",
      "uid": "80ba750b-0300-4106-a404-fe8419050048",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "advertise-on-public",
      "uid": "2f22d96c-b599-4a4d-92ce-aef9ecd8f554",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}