ves-io-schema-shape-client_side_defense-allowed_domain-API-List

Examples of listing allowed_domain

Usecase:

List allowed_domain

Request using vesctl:

vesctl configuration list allowed_domain --namespace system

vesctl yaml response:

errors: []
items:
- annotations: {}
  labels: {}
  name: test
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 47c0fdbd-a196-41f4-9070-d6dbd0a468e5

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build038462651_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/client_side_defense/namespaces/system/allowed_domains'

curl response

HTTP/1.1 200 OK
Content-Length: 449
Content-Type: application/json
Date: Wed, 12 Jan 2022 14:50:33 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "test",
      "uid": "47c0fdbd-a196-41f4-9070-d6dbd0a468e5",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}