ves-io-schema-fast_acl-API-Get

Examples of getting fast_acl

Usecase:

Get fast-acl-1234vip from system namespace

Request using vesctl:

vesctl configuration get fast_acl fast-acl-1234vip --namespace system

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: fast-acl-1234vip
    namespace: system
    uid: 9b627324-b2d5-417b-8187-7d438e59de8e
  spec:
    gcSpec:
      defaultProtocolPolicer: []
      destinationType:
        destinationIpAddress:
          address:
          - ipv4:
              addr: 1.2.3.4/32
          ports:
          - all: {}
          protocol: TCP
      networkType:
        siteLocal: {}
      sourceRules:
      - kind: fast_acl_rule
        name: fast-acl-1234vip-rule1
        namespace: system
        tenant: acmecorp
      - kind: fast_acl_rule
        name: fast-acl-1234vip-rule2
        namespace: system
        tenant: acmecorp
  systemMetadata:
    creationTimestamp: "2020-05-15T10:52:37.600386664Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: system
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 47db370765cd9135:47db370765cd9135:0:1
    uid: 9b627324-b2d5-417b-8187-7d438e59de8e
resourceVersion: "166"
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_acls/fast-acl-1234vip?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Fri, 15 May 2020 10:52:37 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "fast-acl-1234vip",
      "namespace": "system",
      "uid": "9b627324-b2d5-417b-8187-7d438e59de8e",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "9b627324-b2d5-417b-8187-7d438e59de8e",
      "creation_timestamp": "2020-05-15T10:52:37.600386664Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "47db370765cd9135:47db370765cd9135:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "system"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "network_type": {
          "site_local": {

          }
        },
        "destination_type": {
          "destination_ip_address": {
            "address": [
              {
                "ipv4": {
                  "addr": "1.2.3.4/32"
                }
              }
            ],
            "ports": [
              {
                "all": {

                }
              }
            ],
            "protocol": "TCP"
          }
        },
        "source_rules": [
          {
            "kind": "fast_acl_rule",
            "uid": "",
            "tenant": "acmecorp",
            "namespace": "system",
            "name": "fast-acl-1234vip-rule1"
          },
          {
            "kind": "fast_acl_rule",
            "uid": "",
            "tenant": "acmecorp",
            "namespace": "system",
            "name": "fast-acl-1234vip-rule2"
          }
        ],
        "default_protocol_policer": [
        ]
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "166",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}