ves-io-schema-site_mesh_group-API-Get

Examples of getting sitemeshgroup

Usecase:

Get site-mesh-group-1

Request using vesctl:

vesctl configuration get site_mesh_group site-mesh-group-1 --namespace system

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: site-mesh-group-1
  namespace: system
referringObjects: []
resourceVersion: "890"
spec:
  hub:
  - kind: site_mesh_group
    name: site-mesh-group-hub-2
    namespace: system
    tenant: acmecorp
  tunnelType: SITE_TO_SITE_TUNNEL_IPSEC
  type: SITE_MESH_GROUP_TYPE_SPOKE
  virtualSite:
  - kind: virtual_site
    name: vsite-spoke-2
    namespace: system
    tenant: acmecorp
status: []
systemMetadata:
  creationTimestamp: "2021-08-25T09:04:07.195393094Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: f9577606-d3e7-4245-ad24-1a9b164ad331

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

curl response:

HTTP/1.1 200 OK
Content-Length: 1206
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:04:07 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "890",
  "metadata": {
    "name": "site-mesh-group-1",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "f9577606-d3e7-4245-ad24-1a9b164ad331",
    "creation_timestamp": "2021-08-25T09:04:07.195393094Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "type": "SITE_MESH_GROUP_TYPE_SPOKE",
    "tunnel_type": "SITE_TO_SITE_TUNNEL_IPSEC",
    "virtual_site": [
      {
        "kind": "virtual_site",
        "uid": "",
        "tenant": "acmecorp",
        "namespace": "system",
        "name": "vsite-spoke-2"
      }
    ],
    "hub": [
      {
        "kind": "site_mesh_group",
        "uid": "",
        "tenant": "acmecorp",
        "namespace": "system",
        "name": "site-mesh-group-hub-2"
      }
    ]
  },
  "status": [
  ],
  "referring_objects": [
  ]
}