ves-io-schema-user-CustomAPI-List

Examples of performing user CustomAPI List

Usecase:

list users and namespace roles

Request:

Request using vesctl:

vesctl request rpc user.CustomAPI.List -i request.yaml --uri /public/custom/namespaces/documentation/user_roles --http-method GET

where file request.yaml has following contents:

namespace: documentation

vesctl yaml response:

items: []

Request using curl:

curl -X 'GET' -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/custom/namespaces/documentation/user_roles?namespace=documentation'

curl response:

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

{
  "items": [
  ]
}