ves-io-schema-role-API-Replace

Examples of replacing role

Usecase:

Replace role-1

Request using vesctl:

vesctl configuration replace role -i role.yaml

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

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

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"role-1","namespace":"documentation"},"spec":{}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build743694289_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/web/namespaces/documentation/roles/role-1'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Thu, 02 Jul 2020 15:53:24 GMT
Vary: Accept-Encoding

{

}