ves-io-schema-fast_acl_set-API-Replace

Examples of replacing fastaclset

Usecase:

Replace acmecorp-fast-acl with acmecorp-fast-acl-2 in acmecorp-fast-acl-set to allow access to add fast-acl list for denial of service attacks

Request using vesctl:

vesctl configuration replace fast_acl_set -i fast_acl_set.yaml

where file fastaclset.yaml has following contents (fastaclset.ReplaceRequest):

metadata:
  name: acmecorp-fast-acl-set
  namespace: system
spec:
  aclList:
  - kind: fast_acl
    name: acmecorp-fast-acl-2
    namespace: system
    tenant: acmecorp

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"acmecorp-fast-acl-set","namespace":"system"},"spec":{"aclList":[{"kind":"fast_acl","tenant":"acmecorp","namespace":"system","name":"acmecorp-fast-acl-2"}]}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build185306297_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/fast_acl_sets/acmecorp-fast-acl-set'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Mon, 19 Oct 2020 09:48:24 GMT
Vary: Accept-Encoding

{

}