ves-io-schema-protocol_policer-API-Get

Examples of getting protocol_policer

Usecase:

Get protocol-policer-1

Request using vesctl:

vesctl configuration get protocol_policer protocol-policer-1 --namespace documentation

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: protocol-policer-1
    namespace: documentation
    uid: 7d06698f-ca40-42b7-91ab-c4bd259b1b6f
  spec:
    gcSpec:
      protocolPolicer:
      - policer:
        - kind: policer
          name: policer-1
          namespace: documentation
          tenant: acmecorp
        protocol:
          icmp:
            type:
            - ALL_ICMP_MSG
  systemMetadata:
    creationTimestamp: "2020-07-02T15:53:22.183942700Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 359e4473bde0b513:359e4473bde0b513:0:1
    uid: 7d06698f-ca40-42b7-91ab-c4bd259b1b6f
resourceVersion: "429"
status: []

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build743694289_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/protocol_policers/protocol-policer-1?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Thu, 02 Jul 2020 15:53:22 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "protocol-policer-1",
      "namespace": "documentation",
      "uid": "7d06698f-ca40-42b7-91ab-c4bd259b1b6f",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "7d06698f-ca40-42b7-91ab-c4bd259b1b6f",
      "creation_timestamp": "2020-07-02T15:53:22.183942700Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "359e4473bde0b513:359e4473bde0b513:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "protocol_policer": [
          {
            "protocol": {
              "icmp": {
                "type": [
                  "ALL_ICMP_MSG"
                ]
              }
            },
            "policer": [
              {
                "kind": "policer",
                "uid": "",
                "tenant": "acmecorp",
                "namespace": "documentation",
                "name": "policer-1"
              }
            ]
          }
        ]
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "429",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}