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

Examples of getting allowed_domain

Usecase:

Get "example.com" allowed_domain that was created in previous example

Request using vesctl:

vesctl configuration get allowed_domain test --namespace system

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: test
  namespace: system
referringObjects: []
resourceVersion: "1418"
spec:
  allowedDomain: example.com
status: []
systemMetadata:
  creationTimestamp: "2022-01-12T14:50:32.893060300Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 61a333ac-8fb8-47a7-bcfc-c051f199a253

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/test?response_format=0'

curl response:

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

{
  "object": null,
  "create_form": null,
  "resource_version": "1418",
  "metadata": {
    "name": "test",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "61a333ac-8fb8-47a7-bcfc-c051f199a253",
    "creation_timestamp": "2022-01-12T14:50:32.893060300Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "allowed_domain": "example.com",
    "date_added": null
  },
  "status": [
  ],
  "referring_objects": [
  ]
}