ves-io-schema-operate-debug-CustomPublicAPI-Status

Examples of performing operate_debug CustomPublicAPI Status

Usecase:

Get status of Volterra services

Request:

Request using vesctl:

vesctl request rpc operate_debug.CustomPublicAPI.Status -i request.yaml --uri /public/namespaces/system/sites/site1/vpm/debug/ves-system/status --http-method GET

where file request.yaml has following contents:

namespace: system
site: site1
vesnamespace: ves-system

vesctl yaml response:

status:
- name: ver
  node: master-0
  status: Ready

Request using curl:

curl -X 'GET' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build823219857_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/operate/namespaces/system/sites/site1/vpm/debug/ves-system/status?namespace=system&site=site1&vesnamespace=ves-system'

curl response:

HTTP/1.1 200 OK
Content-Length: 125
Content-Type: application/json
Date: Wed, 23 Sep 2020 09:53:44 GMT
Vary: Accept-Encoding

{
  "status": [
    {
      "name": "ver",
      "node": "master-0",
      "status": "Ready",
      "message": ""
    }
  ]
}