ves-io-schema-registration-CustomAPI-RegistrationConfig

Examples of performing registration CustomAPI RegistrationConfig

Usecase:

Read configuration for registration

Request:

Request using vesctl:

vesctl request rpc registration.CustomAPI.RegistrationConfig -i request.yaml --uri /public/requestConfig --http-method POST

where file request.yaml has following contents:

name: r-4b0b5d92-c23e-4cdd-884e-8d48978fecc8
namespace: system
token: cc3af983-cb5e-4d97-8cc2-55e367566166

vesctl yaml response:

workload:
  ce-ver:
    params:
      param1: abc

Request using curl:

curl -X 'POST' -d '{"namespace":"system","name":"r-4b0b5d92-c23e-4cdd-884e-8d48978fecc8","token":"cc3af983-cb5e-4d97-8cc2-55e367566166"}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build743694289_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/register/requestConfig'

curl response:

HTTP/1.1 200 OK
Content-Length: 95
Content-Type: application/json
Date: Thu, 02 Jul 2020 15:53:24 GMT
Vary: Accept-Encoding

{
  "workload": {
    "ce-ver": {
      "params": {
        "param1": "abc"
      }
    }
  }
}