ves-io-schema-registration-API-Get

Examples of getting registration

Usecase:

Get r-4b0b5d92-c23e-4cdd-884e-8d48978fecc8

Request using vesctl:

vesctl configuration get registration r-4b0b5d92-c23e-4cdd-884e-8d48978fecc8 --namespace system

vesctl yaml response:

metadata:
  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
resourceVersion: "667"
spec:
  infra:
    domain: us-east-2.compute.internal
    hostname: ip-192-168-32-24
    instanceId: i-0a50a70afd761a1a9
    interfaces:
      fabric:
        addr: 192.168.32.24
        name: eth0
        plen: 24
    provider: AWS
    zone: us-east-2
  passport:
    clusterName: ce01
    clusterSize: 1
    clusterType: ce
    latitude: 49.315674
    longitude: 14.248433
  token: cc3af983-cb5e-4d97-8cc2-55e367566166
systemMetadata:
  creationTimestamp: "2021-03-31T08:29:42.596309800Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 113cbd13-397a-4e9a-b8ec-e0a7eb48b8fa

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build318584715_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/register/namespaces/system/registrations/r-4b0b5d92-c23e-4cdd-884e-8d48978fecc8?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 31 Mar 2021 08:29:42 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "667",
  "metadata": {
    "name": "r-4b0b5d92-c23e-4cdd-884e-8d48978fecc8",
    "namespace": "system",
    "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": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "113cbd13-397a-4e9a-b8ec-e0a7eb48b8fa",
    "creation_timestamp": "2021-03-31T08:29:42.596309800Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "infra": {
      "provider": "AWS",
      "instance_id": "i-0a50a70afd761a1a9",
      "zone": "us-east-2",
      "availability_zone": "",
      "hostname": "ip-192-168-32-24",
      "domain": "us-east-2.compute.internal",
      "machine_id": "",
      "interfaces": {
        "fabric": {
          "addr": "192.168.32.24",
          "plen": 24,
          "name": "eth0"
        }
      },
      "hw_info": null,
      "certified_hw": "",
      "internet_proxy": null,
      "timestamp": null
    },
    "token": "cc3af983-cb5e-4d97-8cc2-55e367566166",
    "passport": {
      "cluster_name": "ce01",
      "cluster_type": "ce",
      "latitude": 49.315674,
      "longitude": 14.248433,
      "cluster_size": 1,
      "vpm_version": "",
      "private_network_name": ""
    }
  }
}