ves-io-schema-policer-API-Get

Examples of getting policer

Usecase:

Get policer-1

Request using vesctl:

vesctl configuration get policer policer-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: policer-1
  namespace: documentation
object:
  metadata:
    annotations: {}
    labels: {}
    name: policer-1
    namespace: documentation
    uid: 0dd5c85e-b8bd-4d46-adeb-3c2f1e433075
  spec:
    gcSpec:
      burstSize: 10000
      committedInformationRate: 100000
  systemMetadata:
    creationTimestamp: "2020-10-19T09:48:58.377234600Z"
    creatorClass: examplesvc
    creatorId: examplesvc
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 2db49384c4e3b8ce:2db49384c4e3b8ce:0:1
    uid: 0dd5c85e-b8bd-4d46-adeb-3c2f1e433075
resourceVersion: "526"
spec:
  burstSize: 10000
  committedInformationRate: 100000
status: []
systemMetadata:
  creationTimestamp: "2020-10-19T09:48:58.377234600Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 0dd5c85e-b8bd-4d46-adeb-3c2f1e433075

Request using curl:

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

curl response:

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

{
  "object": {
    "metadata": {
      "name": "policer-1",
      "namespace": "documentation",
      "uid": "0dd5c85e-b8bd-4d46-adeb-3c2f1e433075",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "0dd5c85e-b8bd-4d46-adeb-3c2f1e433075",
      "creation_timestamp": "2020-10-19T09:48:58.377234600Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc",
      "creator_id": "examplesvc",
      "creator_cookie": "",
      "trace_info": "2db49384c4e3b8ce:2db49384c4e3b8ce:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "policer_type": "POLICER_SINGLE_RATE_TWO_COLOR",
        "committed_information_rate": 100000,
        "burst_size": 10000,
        "policer_mode": "POLICER_MODE_NOT_SHARED"
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "526",
  "metadata": {
    "name": "policer-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "0dd5c85e-b8bd-4d46-adeb-3c2f1e433075",
    "creation_timestamp": "2020-10-19T09:48:58.377234600Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "policer_type": "POLICER_SINGLE_RATE_TWO_COLOR",
    "committed_information_rate": 100000,
    "burst_size": 10000,
    "policer_mode": "POLICER_MODE_NOT_SHARED"
  },
  "status": [
  ]
}