ves-io-schema-rate_limiter-API-Get

Examples of getting rate_limiter

Usecase:

Get rate_limiter.

Request using vesctl:

vesctl configuration get rate_limiter object-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: object-1
  namespace: documentation
referringObjects: []
resourceVersion: "682"
spec:
  limits: []
  userIdentification: []
status: []
systemMetadata:
  creationTimestamp: "2021-05-12T11:18:31.345468766Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 1e783469-7290-45b6-a77b-97675ec03956

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Length: 793
Content-Type: application/json
Date: Wed, 12 May 2021 11:18:31 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "682",
  "metadata": {
    "name": "object-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "1e783469-7290-45b6-a77b-97675ec03956",
    "creation_timestamp": "2021-05-12T11:18:31.345468766Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "limits": [
    ],
    "user_identification": [
    ]
  },
  "status": [
  ],
  "referring_objects": [
  ]
}