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 documentation

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: site-mesh-group-1
    namespace: documentation
    uid: 0b1c9ce7-b1ed-4a41-b710-9d6913be744c
  spec:
    gcSpec:
      hub:
      - kind: site_mesh_group
        name: site-mesh-group-hub-2
        namespace: documentation
        tenant: acmecorp
      tunnelType: SITE_TO_SITE_TUNNEL_IPSEC
      type: SITE_MESH_GROUP_TYPE_SPOKE
      virtualSite:
      - kind: virtual_site
        name: vsite-spoke-2
        namespace: documentation
        tenant: acmecorp
  systemMetadata:
    creationTimestamp: "2020-07-02T15:53:34.191671Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 300755873f26b24a:300755873f26b24a:0:1
    uid: 0b1c9ce7-b1ed-4a41-b710-9d6913be744c
resourceVersion: "588"
status: []

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

curl response:

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

{
  "object": {
    "metadata": {
      "name": "site-mesh-group-1",
      "namespace": "documentation",
      "uid": "0b1c9ce7-b1ed-4a41-b710-9d6913be744c",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "0b1c9ce7-b1ed-4a41-b710-9d6913be744c",
      "creation_timestamp": "2020-07-02T15:53:34.191671Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "300755873f26b24a:300755873f26b24a:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "type": "SITE_MESH_GROUP_TYPE_SPOKE",
        "tunnel_type": "SITE_TO_SITE_TUNNEL_IPSEC",
        "virtual_site": [
          {
            "kind": "virtual_site",
            "uid": "",
            "tenant": "acmecorp",
            "namespace": "documentation",
            "name": "vsite-spoke-2"
          }
        ],
        "hub": [
          {
            "kind": "site_mesh_group",
            "uid": "",
            "tenant": "acmecorp",
            "namespace": "documentation",
            "name": "site-mesh-group-hub-2"
          }
        ]
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "588",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}