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

Examples of listing protected_domain

Usecase:

List protected_domain

Request using vesctl:

vesctl configuration list protected_domain --namespace system

vesctl yaml response:

errors: []
items:
- annotations: {}
  labels: {}
  name: test
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 9ce4223b-46bd-48fb-9d5e-6898c69f5086

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/protected_domains'

curl response

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

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "test",
      "uid": "9ce4223b-46bd-48fb-9d5e-6898c69f5086",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}