ves-io-schema-site-API-Get

Examples of getting site

Usecase:

Get site-1

Request using vesctl:

vesctl configuration get site site-1 --namespace system

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: site-1
  namespace: system
resourceVersion: "794"
spec:
  connectedRe: []
  connectedReForConfig: []
  siteType: REGIONAL_EDGE
status: []
systemMetadata:
  creationTimestamp: "2021-03-31T08:30:00.892558600Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 8b1ba919-5ffd-45aa-a4ba-84b718f12a99

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/config/namespaces/system/sites/site-1?response_format=0'

curl response:

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

{
  "object": null,
  "replace_form": null,
  "resource_version": "794",
  "metadata": {
    "name": "site-1",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "8b1ba919-5ffd-45aa-a4ba-84b718f12a99",
    "creation_timestamp": "2021-03-31T08:30:00.892558600Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "site_type": "REGIONAL_EDGE",
    "address": "",
    "coordinates": null,
    "volterra_software_version": "",
    "connected_re": [
    ],
    "connected_re_for_config": [
    ],
    "inside_vip": "",
    "outside_vip": "",
    "vip_vrrp_mode": "VIP_VRRP_INVALID",
    "site_to_site_network_type": "VIRTUAL_NETWORK_SITE_LOCAL",
    "site_to_site_tunnel_ip": "",
    "volterra_software_overide": "SITE_SOFTWARE_OVERRIDE_SITE",
    "bgp_router_id": "",
    "bgp_peer_address": "",
    "inside_nameserver": "",
    "outside_nameserver": "",
    "desired_pool_count": 0,
    "tunnel_type": "SITE_TO_SITE_TUNNEL_IPSEC_OR_SSL",
    "operating_system_version": "",
    "site_state": "ONLINE",
    "tunnel_dead_timeout": 0,
    "region": "",
    "ce_site_mode": "CE_SITE_MODE_INGRESS_EGRESS_GW",
    "local_k8s_access_enabled": false,
    "default_underlay_network": null
  },
  "status": [
  ]
}