ves-io-schema-rate_limiter-API-Replace

Examples of replacing rate_limiter

Usecase:

Replace rate_limiter.

Request using vesctl:

vesctl configuration replace rate_limiter -i rate_limiter.yaml

where file ratelimiter.yaml has following contents (ratelimiter.ReplaceRequest):

metadata:
  name: object-1
  namespace: documentation
spec: {}

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"object-1","namespace":"documentation"},"spec":{}}' -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/rate_limiters/object-1'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:08:00 GMT
Vary: Accept-Encoding

{

}