ves-io-schema-malicious_user_mitigation-API-Get

Examples of getting malicious_user_mitigation

Usecase:

Get malicious_user_mitigation 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: "1005"
spec:
  mitigationType:
    rules:
    - mitigationAction: {}
      threatLevel: {}
status: []
systemMetadata:
  creationTimestamp: "2022-07-28T12:10:53.355323992Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  labels: {}
  tenant: acmecorp
  uid: d0fd89ff-5310-4d6c-afa4-3d4ff587bb4b

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build1372770011_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: 940
Content-Type: application/json
Date: Thu, 28 Jul 2022 12:10:53 GMT
Vary: Accept-Encoding
X-Volterra-Response-Fields-Deprecated: object

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1005",
  "metadata": {
    "name": "malicious-user-mitigation",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "d0fd89ff-5310-4d6c-afa4-3d4ff587bb4b",
    "creation_timestamp": "2022-07-28T12:10:53.355323992Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null,
    "labels": {
    }
  },
  "spec": {
    "mitigation_type": {
      "rules": [
        {
          "threat_level": {

          },
          "mitigation_action": {

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