ves-io-schema-policer-API-Replace
On This Page:
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):
RequestJSON:
{"metadata":{"name":"policer-1","namespace":"documentation"},"spec":{"committed_information_rate":10000,"burst_size":100000}}
`
vesctl yaml response: None
Request using curl:
curl -X 'PUT' -d '{"metadata":{"name":"policer-1","namespace":"documentation"},"spec":{"committed_information_rate":10000,"burst_size":100000}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build1372770011_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: Thu, 28 Jul 2022 12:11:26 GMT
Vary: Accept-Encoding
{
}