ves-io-schema-waf-API-Get

Examples of getting waf

Usecase:

Get waf-1

Request using vesctl:

vesctl configuration get waf waf-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: waf-1
  namespace: documentation
object:
  metadata:
    annotations: {}
    labels: {}
    name: waf-1
    namespace: documentation
    uid: dda86fbf-e108-412c-9bf2-645d940b45ad
  spec:
    gcSpec:
      appProfile:
        cms:
        - DOKUWIKI
        - DRUPAL
        - WORDPRESS
        - NEXTCLOUD
        - CPANEL
        language:
        - PHP
        - JAVA
        webserver:
        - IIS
      disabledDetectionTags:
        detectionTagType:
        - DATA_LEAKAGE
        - SQLI_ATTACK
        - XSS_ATTACK
        - PROTOCOL_ATTACK
        - RCE_ATTACK
  systemMetadata:
    creationTimestamp: "2020-09-16T10:51:11.816821900Z"
    creatorClass: examplesvc
    creatorId: examplesvc
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 347d46b19c6540ec:347d46b19c6540ec:0:1
    uid: dda86fbf-e108-412c-9bf2-645d940b45ad
resourceVersion: "844"
spec:
  appProfile:
    cms:
    - DOKUWIKI
    - DRUPAL
    - WORDPRESS
    - NEXTCLOUD
    - CPANEL
    language:
    - PHP
    - JAVA
    webserver:
    - IIS
  disabledDetectionTags:
    detectionTagType:
    - DATA_LEAKAGE
    - SQLI_ATTACK
    - XSS_ATTACK
    - PROTOCOL_ATTACK
    - RCE_ATTACK
status: []
systemMetadata:
  creationTimestamp: "2020-09-16T10:51:11.816821900Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: dda86fbf-e108-412c-9bf2-645d940b45ad

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build013258245_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/wafs/waf-1?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 16 Sep 2020 10:51:11 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "waf-1",
      "namespace": "documentation",
      "uid": "dda86fbf-e108-412c-9bf2-645d940b45ad",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "dda86fbf-e108-412c-9bf2-645d940b45ad",
      "creation_timestamp": "2020-09-16T10:51:11.816821900Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc",
      "creator_id": "examplesvc",
      "creator_cookie": "",
      "trace_info": "347d46b19c6540ec:347d46b19c6540ec:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "app_profile": {
          "language": [
            "PHP",
            "JAVA"
          ],
          "cms": [
            "DOKUWIKI",
            "DRUPAL",
            "WORDPRESS",
            "NEXTCLOUD",
            "CPANEL"
          ],
          "webserver": [
            "IIS"
          ]
        },
        "mode": "BLOCK",
        "disabled_detection_tags": {
          "detection_tag_type": [
            "DATA_LEAKAGE",
            "SQLI_ATTACK",
            "XSS_ATTACK",
            "PROTOCOL_ATTACK",
            "RCE_ATTACK"
          ]
        }
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "844",
  "metadata": {
    "name": "waf-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "dda86fbf-e108-412c-9bf2-645d940b45ad",
    "creation_timestamp": "2020-09-16T10:51:11.816821900Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "app_profile": {
      "language": [
        "PHP",
        "JAVA"
      ],
      "cms": [
        "DOKUWIKI",
        "DRUPAL",
        "WORDPRESS",
        "NEXTCLOUD",
        "CPANEL"
      ],
      "webserver": [
        "IIS"
      ]
    },
    "mode": "BLOCK",
    "disabled_detection_tags": {
      "detection_tag_type": [
        "DATA_LEAKAGE",
        "SQLI_ATTACK",
        "XSS_ATTACK",
        "PROTOCOL_ATTACK",
        "RCE_ATTACK"
      ]
    }
  },
  "status": [
  ]
}