ves-io-schema-namespace-CustomAPI-CascadeDelete

Examples of performing namespace CustomAPI CascadeDelete

Usecase:

Cascade delete a particular namespace

Request:

Request using vesctl:

vesctl request rpc namespace.CustomAPI.CascadeDelete -i request.yaml --uri /public/namespaces/app-ns-1/cascade_delete --http-method POST

where file request.yaml has following contents:

name: app-ns-1

vesctl yaml response:

items: []

Request using curl:

curl -X 'POST' -d '{"name":"app-ns-1"}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build013258245_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/web/namespaces/app-ns-1/cascade_delete'

curl response:

HTTP/1.1 200 OK
Content-Length: 20
Content-Type: application/json
Date: Wed, 16 Sep 2020 10:50:27 GMT
Vary: Accept-Encoding

{
  "items": [
  ]
}