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: "1083"
spec:
  mitigationType:
    rules:
    - mitigationAction: {}
      threatLevel: {}
status: []
systemMetadata:
  creationTimestamp: "2022-09-23T13:13:03.405779746Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  labels: {}
  tenant: acmecorp
  uid: 5256e412-33dc-430c-91a3-e2c1eb76f8b1

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build243329498_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: Fri, 23 Sep 2022 13:13:03 GMT
Vary: Accept-Encoding
X-Volterra-Response-Fields-Deprecated: object

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1083",
  "metadata": {
    "name": "malicious-user-mitigation",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "5256e412-33dc-430c-91a3-e2c1eb76f8b1",
    "creation_timestamp": "2022-09-23T13:13:03.405779746Z",
    "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": [
  ]
}