ves-io-schema-api_credential-CustomAPI-ListServiceCredentials

Examples of performing api_credential CustomAPI ListServiceCredentials

Usecase:

List API service credentials created for given tenant

Request:

Request using vesctl:

vesctl request rpc api_credential.CustomAPI.ListServiceCredentials -i request.yaml --uri /public/namespaces/system/service_credentials --http-method POST

where file request.yaml has following contents:

namespace: system

vesctl yaml response:

{}

Request using curl:

curl -X 'POST' -d '{"namespace":"system"}' -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/web/namespaces/system/service_credentials'

curl response:

HTTP/1.1 200 OK
Content-Length: 30
Content-Type: application/json
Date: Wed, 23 Sep 2020 09:52:58 GMT
Vary: Accept-Encoding

{
  "data": "",
  "name": ""
}