ves-io-schema-virtual_k8s-API-Replace
On This Page:
Examples of replacing virtual_k8s
Usecase:
Replace virtual-k8s-1
Request using vesctl:
vesctl configuration replace virtual_k8s -i virtual_k8s.yaml
where file virtualk8s.yaml has following contents (virtualk8s.ReplaceRequest):
metadata:
name: virtual-k8s-1
namespace: documentation
spec: {}
vesctl yaml response: None
Request using curl:
curl -X 'PUT' -d '{"metadata":{"name":"virtual-k8s-1","namespace":"documentation"},"spec":{}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build318584715_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/virtual_k8ss/virtual-k8s-1'
curl response:
HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 31 Mar 2021 08:30:44 GMT
Vary: Accept-Encoding
{
}