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: 7e33f34b-57f7-4324-8ef5-1072122bb30e
- annotations: {}
  labels: {}
  name: advertise-on-public
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: b830e956-4908-41dc-91b4-34767c490331

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build243329498_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: Fri, 23 Sep 2022 13:11:01 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "advertise-on-acmecorp-vsite-1",
      "uid": "7e33f34b-57f7-4324-8ef5-1072122bb30e",
      "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": "b830e956-4908-41dc-91b4-34767c490331",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}