ves-io-schema-waf_rule_list-API-Get

Examples of getting wafrulelist

Usecase:

Get wafrulelist.

Request using vesctl:

vesctl configuration get waf_rule_list object-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: object-1
  namespace: documentation
referringObjects: []
resourceVersion: "1220"
spec:
  ruleIds: []
status: []
systemMetadata:
  creationTimestamp: "2021-05-12T11:19:25.740827315Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 1cf6d0c3-6cd4-46dd-a757-c0ba034bf9ac

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Length: 760
Content-Type: application/json
Date: Wed, 12 May 2021 11:19:25 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1220",
  "metadata": {
    "name": "object-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "1cf6d0c3-6cd4-46dd-a757-c0ba034bf9ac",
    "creation_timestamp": "2021-05-12T11:19:25.740827315Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "rule_ids": [
    ]
  },
  "status": [
  ],
  "referring_objects": [
  ]
}