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:

object:
  metadata:
    annotations: {}
    labels: {}
    name: fast-acl-rule-white-list
    namespace: system
    uid: 288c16ae-8c31-4d23-818d-8730cc34525f
  spec:
    gcSpec:
      action:
        simpleAction: ALLOW
      ipPrefixSet:
        ref:
        - kind: ip_prefix_set
          name: acmecorp-white-list
          namespace: system
          tenant: acmecorp
      port: []
  systemMetadata:
    creationTimestamp: "2020-05-15T10:52:38.758835734Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: system
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 7a1262e19dcf8123:7a1262e19dcf8123:0:1
    uid: 288c16ae-8c31-4d23-818d-8730cc34525f
resourceVersion: "180"
status: []

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build144460626_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-Type: application/json
Date: Fri, 15 May 2020 10:52:38 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "fast-acl-rule-white-list",
      "namespace": "system",
      "uid": "288c16ae-8c31-4d23-818d-8730cc34525f",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "288c16ae-8c31-4d23-818d-8730cc34525f",
      "creation_timestamp": "2020-05-15T10:52:38.758835734Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "7a1262e19dcf8123:7a1262e19dcf8123:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "system"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "action": {
          "simple_action": "ALLOW"
        },
        "port": [
        ],
        "ip_prefix_set": {
          "ref": [
            {
              "kind": "ip_prefix_set",
              "uid": "",
              "tenant": "acmecorp",
              "namespace": "system",
              "name": "acmecorp-white-list"
            }
          ]
        }
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "180",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}