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 documentation

vesctl yaml response:

object:
  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: documentation
    uid: 9622f4a1-17ae-4c0f-bb27-dd24d084d4d9
  spec:
    gcSpec:
      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
        customerRoute: 192.168.36.0/24
        latitude: 49.315674
        longitude: 14.248433
        privateDefaultGw: 192.168.33.1
        privateVnPrefix: 192.168.33.0
      role: []
      site: []
      token: cc3af983-cb5e-4d97-8cc2-55e367566166
  systemMetadata:
    creationTimestamp: "2020-07-02T15:53:23.325620100Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 1e2af69079782e78:1e2af69079782e78:0:1
    uid: 9622f4a1-17ae-4c0f-bb27-dd24d084d4d9
resourceVersion: "442"

Request using curl:

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

curl response:

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

{
  "object": {
    "metadata": {
      "name": "r-4b0b5d92-c23e-4cdd-884e-8d48978fecc8",
      "namespace": "documentation",
      "uid": "9622f4a1-17ae-4c0f-bb27-dd24d084d4d9",
      "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": "9622f4a1-17ae-4c0f-bb27-dd24d084d4d9",
      "creation_timestamp": "2020-07-02T15:53:23.325620100Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "1e2af69079782e78:1e2af69079782e78:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_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
        },
        "token": "cc3af983-cb5e-4d97-8cc2-55e367566166",
        "passport": {
          "cluster_name": "ce01",
          "cluster_type": "ce",
          "tenant": "",
          "private_default_gw": "192.168.33.1",
          "private_vn_prefix": "192.168.33.0",
          "customer_route": "192.168.36.0/24",
          "latitude": 49.315674,
          "longitude": 14.248433,
          "cluster_size": 1,
          "vpm_version": ""
        },
        "site": [
        ],
        "role": [
        ],
        "tunnel_type": "SITE_TO_SITE_TUNNEL_IPSEC_OR_SSL"
      }
    },
    "status": null
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "442",
  "metadata": null,
  "system_metadata": null,
  "spec": null
}