ves-io-schema-site-UamKubeConfigAPI-RevokeGlobalKubeConfig

Examples of performing site UamKubeConfigAPI RevokeGlobalKubeConfig

Usecase:

Revoke kubeconfig for a site

Request:

Request using vesctl:

vesctl request rpc site.UamKubeConfigAPI.RevokeGlobalKubeConfig -i request.yaml --uri /public/namespaces/system/revoke/global-kubeconfigs --http-method POST

where file request.yaml has following contents:

name: site213-afvyaeha

vesctl yaml response:

{}

Request using curl:

curl -X 'POST' -d '{"name":"site213-afvyaeha"}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/web/namespaces/system/revoke/global-kubeconfigs'

curl response:

HTTP/1.1 200 OK
Content-Length: 21
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:04:06 GMT
Vary: Accept-Encoding

{
  "status": false
}