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: b43d7799-c3ae-4961-b4e0-4e8e94081d25
- annotations: {}
  labels: {}
  name: advertise-on-public
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 24d92ee9-3448-4291-aa46-6db84e2a057a

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build672621555_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, 12 May 2021 11:17:20 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "advertise-on-acmecorp-vsite-1",
      "uid": "b43d7799-c3ae-4961-b4e0-4e8e94081d25",
      "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": "24d92ee9-3448-4291-aa46-6db84e2a057a",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}