ves-io-schema-registration-CustomAPI-ListRegistrationsBySite

Examples of performing registration CustomAPI ListRegistrationsBySite

Usecase:

Perform ListRegistrationsBySite on registration

Request:

Request using vesctl:

vesctl request rpc registration.CustomAPI.ListRegistrationsBySite -i request.yaml --uri /public/namespaces/namespace-literal/registrations_by_site/site_name-literal --http-method GET

where file request.yaml has following contents:

{}

vesctl yaml response:

errors: []
items:
- annotations: {}
  labels:
    abc: def
  name: reg-b056977a-d028-4682-9970-3fca15f4f95f
  namespace: system
  tenant: customer1
  uid: b056977a-d028-4682-9970-3fca15f4f95f

Request using curl:

curl -X 'GET' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build672621555_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/register/namespaces/namespace-literal/registrations_by_site/site_name-literal?namespace=&site_name='

curl response:

HTTP/1.1 200 OK
Content-Length: 476
Content-Type: application/json
Date: Wed, 12 May 2021 11:18:34 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "customer1",
      "namespace": "system",
      "name": "reg-b056977a-d028-4682-9970-3fca15f4f95f",
      "uid": "b056977a-d028-4682-9970-3fca15f4f95f",
      "description": "",
      "disabled": false,
      "labels": {
        "abc": "def"
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null
    }
  ],
  "errors": [
  ]
}