ves-io-schema-fast_acl_set-API-Create

Examples of creating fastaclset

Usecase:

Create acmecorp-fast-acl-set to allow access to add fast-acl list for denial of service attacks

Request using vesctl:

vesctl configuration create fast_acl_set -i fast_acl_set.yaml

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

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

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: acmecorp-fast-acl-set
  namespace: system
spec:
  aclList:
  - kind: fast_acl.Object
    name: acmecorp-fast-acl
    namespace: system
    tenant: acmecorp
    uid: ffffffff-ffff-ffff-ffff-ffffffffffff
systemMetadata:
  creationTimestamp: "2020-10-19T09:48:23.312058200Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 8de011ea-68a9-4eb6-a5de-b62830179f45

Request using curl:

curl -X 'POST' -d '{"metadata":{"name":"acmecorp-fast-acl-set","namespace":"system"},"spec":{"aclList":[{"tenant":"acmecorp","namespace":"system","name":"acmecorp-fast-acl"}]}}' -H 'Content-Type: application/json' -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'

curl response:

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

{
  "metadata": {
    "name": "acmecorp-fast-acl-set",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "8de011ea-68a9-4eb6-a5de-b62830179f45",
    "creation_timestamp": "2020-10-19T09:48:23.312058200Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "acl_list": [
      {
        "kind": "fast_acl.Object",
        "uid": "ffffffff-ffff-ffff-ffff-ffffffffffff",
        "tenant": "acmecorp",
        "namespace": "system",
        "name": "acmecorp-fast-acl"
      }
    ]
  }
}