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
referringObjects: []
resourceVersion: "1237"
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: "2021-08-25T09:04:44.963349652Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 70b4ddf0-2d31-4400-9caa-faeceed39ed1

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/wafs/waf-1?response_format=0'

curl response:

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

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1237",
  "metadata": {
    "name": "waf-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "70b4ddf0-2d31-4400-9caa-faeceed39ed1",
    "creation_timestamp": "2021-08-25T09:04:44.963349652Z",
    "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": [
  ],
  "referring_objects": [
  ]
}