ves-io-schema-infraprotect_configuration-CustomAPI-Patch
Examples of performing infraprotect_configuration CustomAPI Patch
Usecase:
Patch or update a configured zone
Request:
Request using vesctl:
vesctl request rpc infraprotect_configuration.CustomAPI.Patch -i request.yaml --uri /public/namespaces/system/infraprotect_configurations/38b115f3-da21-42d1-a07e-542806b0d96a/patch --http-method POST
where file request.yaml has following contents:
description: updated description
namespace: system
zoneUuid: 38b115f3-da21-42d1-a07e-542806b0d96a
vesctl yaml response:
{}
Request using curl:
curl -X 'POST' -d '{"namespace":"system","zoneUuid":"38b115f3-da21-42d1-a07e-542806b0d96a","description":"updated description"}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build817539475_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/infraprotect/namespaces/system/infraprotect_configurations/38b115f3-da21-42d1-a07e-542806b0d96a/patch'
curl response:
HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Mon, 22 Feb 2021 15:44:00 GMT
Vary: Accept-Encoding
{
}