ves-io-schema-policer-API-Replace

Examples of replacing policer

Usecase:

Replace policer-1 with committed information rate changed to 100KBps and burst size changed to 100kB

Request using vesctl:

vesctl configuration replace policer -i policer.yaml

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

metadata:
  name: policer-1
  namespace: documentation
spec:
  burstSize: 100000
  committedInformationRate: 10000

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"policer-1","namespace":"documentation"},"spec":{"committedInformationRate":10000,"burstSize":100000}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build823219857_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/policers/policer-1'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 23 Sep 2020 09:53:48 GMT
Vary: Accept-Encoding

{

}