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
object:
  metadata:
    annotations: {}
    labels: {}
    name: malicious-user-mitigation
    namespace: documentation
    uid: 53508208-240b-4c65-95a3-9abd39b0647f
  spec:
    gcSpec:
      javascriptChallengeSettings:
        cookieExpiry: 10
        jsScriptDelay: 3000
      mitigationType:
        rules:
        - mitigationAction: {}
          threatLevel: {}
  systemMetadata:
    creationTimestamp: "2020-10-19T09:48:41.648803Z"
    creatorClass: examplesvc
    creatorId: examplesvc
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 63f071e6021c6575:63f071e6021c6575:0:1
    uid: 53508208-240b-4c65-95a3-9abd39b0647f
resourceVersion: "395"
spec:
  javascriptChallengeSettings:
    cookieExpiry: 10
    jsScriptDelay: 3000
  mitigationType:
    rules:
    - mitigationAction: {}
      threatLevel: {}
status: []
systemMetadata:
  creationTimestamp: "2020-10-19T09:48:41.648803Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 53508208-240b-4c65-95a3-9abd39b0647f

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build185306297_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-Type: application/json
Date: Mon, 19 Oct 2020 09:48:41 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "malicious-user-mitigation",
      "namespace": "documentation",
      "uid": "53508208-240b-4c65-95a3-9abd39b0647f",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "53508208-240b-4c65-95a3-9abd39b0647f",
      "creation_timestamp": "2020-10-19T09:48:41.648803Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc",
      "creator_id": "examplesvc",
      "creator_cookie": "",
      "trace_info": "63f071e6021c6575:63f071e6021c6575:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "mitigation_type": {
          "rules": [
            {
              "threat_level": {

              },
              "mitigation_action": {

              }
            }
          ]
        },
        "javascript_challenge_settings": {
          "js_script_delay": 3000,
          "cookie_expiry": 10,
          "custom_page": ""
        },
        "captcha_challenge_settings": null,
        "temporary_blocking_settings": null
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "395",
  "metadata": {
    "name": "malicious-user-mitigation",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "53508208-240b-4c65-95a3-9abd39b0647f",
    "creation_timestamp": "2020-10-19T09:48:41.648803Z",
    "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": {

          }
        }
      ]
    },
    "javascript_challenge_settings": {
      "js_script_delay": 3000,
      "cookie_expiry": 10,
      "custom_page": ""
    },
    "captcha_challenge_settings": null,
    "temporary_blocking_settings": null
  },
  "status": [
  ]
}