ves-io-schema-malicious_user_mitigation-API-Get

Examples of getting malicioususermitigation

Usecase:

Get malicioususermitigation for current namespace

Request using vesctl:

vesctl configuration get malicious_user_mitigation malicious-user-mitigation --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: malicious-user-mitigation
  namespace: documentation
referringObjects: []
resourceVersion: "544"
spec:
  mitigationType:
    rules:
    - mitigationAction: {}
      threatLevel: {}
status: []
systemMetadata:
  creationTimestamp: "2021-08-25T09:03:25.801227628Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: a71ec7de-99fe-470c-bddf-be84b9f4d5ff

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/malicious_user_mitigations/malicious-user-mitigation?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 916
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:03:25 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "544",
  "metadata": {
    "name": "malicious-user-mitigation",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "a71ec7de-99fe-470c-bddf-be84b9f4d5ff",
    "creation_timestamp": "2021-08-25T09:03:25.801227628Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "mitigation_type": {
      "rules": [
        {
          "threat_level": {

          },
          "mitigation_action": {

          }
        }
      ]
    }
  },
  "status": [
  ],
  "referring_objects": [
  ]
}