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

Examples of getting mitigated_domain

Usecase:

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

Request using vesctl:

vesctl configuration get mitigated_domain test --namespace system

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: test
  namespace: system
referringObjects: []
resourceVersion: "1431"
spec:
  mitigatedDomain: example.com
status: []
systemMetadata:
  creationTimestamp: "2022-01-12T14:50:34.832786100Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 5d36f2d0-9c28-4d01-9ba0-fcb83a467dc2

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

curl response:

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

{
  "object": null,
  "create_form": null,
  "resource_version": "1431",
  "metadata": {
    "name": "test",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "5d36f2d0-9c28-4d01-9ba0-fcb83a467dc2",
    "creation_timestamp": "2022-01-12T14:50:34.832786100Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "mitigated_domain": "example.com",
    "date_added": null
  },
  "status": [
  ],
  "referring_objects": [
  ]
}