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
referringObjects: []
resourceVersion: "658"
spec:
  burstSize: 10000
  committedInformationRate: 100000
status: []
systemMetadata:
  creationTimestamp: "2021-07-14T08:07:56.761942761Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 73a7ad9f-d0c0-4595-9c3c-f09df4f9945c

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build381173587_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-Length: 902
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:07:56 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "658",
  "metadata": {
    "name": "policer-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "73a7ad9f-d0c0-4595-9c3c-f09df4f9945c",
    "creation_timestamp": "2021-07-14T08:07:56.761942761Z",
    "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": [
  ],
  "referring_objects": [
  ]
}