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:

errors: []
items:
- annotations: {}
  labels: {}
  name: advertise-on-acmecorp-vsite-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: e4dab67d-83e1-43c9-b2cd-30c968aad3bd
- annotations: {}
  labels: {}
  name: advertise-on-public
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: ac69d6eb-5fd3-42c5-9811-0352674db370

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build381173587_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: Wed, 14 Jul 2021 08:06:28 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "advertise-on-acmecorp-vsite-1",
      "uid": "e4dab67d-83e1-43c9-b2cd-30c968aad3bd",
      "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": "ac69d6eb-5fd3-42c5-9811-0352674db370",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}