ves-io-schema-fast_acl_rule-API-Get

Examples of getting fastaclrule

Usecase:

Get fast-acl-rule-white-list from current white list

Request using vesctl:

vesctl configuration get fast_acl_rule fast-acl-rule-white-list --namespace system

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: fast-acl-rule-white-list
  namespace: system
referringObjects: []
resourceVersion: "315"
spec:
  action:
    simpleAction: ALLOW
  ipPrefixSet:
    ref:
    - kind: ip_prefix_set
      name: acmecorp-white-list
      namespace: system
      tenant: acmecorp
  port: []
status: []
systemMetadata:
  creationTimestamp: "2021-08-25T09:03:01.177626222Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: d6697458-1924-411e-b59d-89dfd8fa6017

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/system/fast_acl_rules/fast-acl-rule-white-list?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 1052
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:03:01 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "315",
  "metadata": {
    "name": "fast-acl-rule-white-list",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "d6697458-1924-411e-b59d-89dfd8fa6017",
    "creation_timestamp": "2021-08-25T09:03:01.177626222Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "action": {
      "simple_action": "ALLOW"
    },
    "port": [
    ],
    "ip_prefix_set": {
      "ref": [
        {
          "kind": "ip_prefix_set",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "system",
          "name": "acmecorp-white-list"
        }
      ]
    }
  },
  "status": [
  ],
  "referring_objects": [
  ]
}