ves-io-schema-namespace-API-Replace

Examples of replacing namespace

Usecase:

Replace namespace-1

Request using vesctl:

vesctl configuration replace namespace -i namespace.yaml

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

metadata:
  name: namespace-1
spec: {}

vesctl yaml response: None

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Fri, 15 May 2020 10:52:46 GMT
Vary: Accept-Encoding

{

}