ves-io-schema-registration-API-List

Examples of listing registration

Usecase:

List registration

Request using vesctl:

vesctl configuration list registration --namespace system

vesctl yaml response:

errors: []
items:
- annotations: {}
  labels:
    host-os-version: coreos-2135-6-0
    hw-model: m5a-xlarge
    hw-serial-number: ec2a5ad2-ffe1-0724-2e18-9a5dbaf8ecf8
    hw-vendor: amazon-ec2
    hw-version: ""
    provider: AWS
  name: r-4b0b5d92-c23e-4cdd-884e-8d48978fecc8
  namespace: system
  tenant: acmecorp
  uid: 2b76fb74-f06c-4508-8880-2dd1b765c119

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/register/namespaces/system/registrations'

curl response

HTTP/1.1 200 OK
Content-Length: 687
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:03:46 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "r-4b0b5d92-c23e-4cdd-884e-8d48978fecc8",
      "uid": "2b76fb74-f06c-4508-8880-2dd1b765c119",
      "description": "",
      "disabled": false,
      "labels": {
        "host-os-version": "coreos-2135-6-0",
        "hw-model": "m5a-xlarge",
        "hw-serial-number": "ec2a5ad2-ffe1-0724-2e18-9a5dbaf8ecf8",
        "hw-vendor": "amazon-ec2",
        "hw-version": "",
        "provider": "AWS"
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null
    }
  ],
  "errors": [
  ]
}