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:

metadata:
  annotations: {}
  labels: {}
  name: site-mesh-group-1
  namespace: documentation
object:
  metadata:
    annotations: {}
    labels: {}
    name: site-mesh-group-1
    namespace: documentation
    uid: b164c364-5e7e-4a81-b05c-d8a23a374096
  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-31T12:54:46.744840400Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 667e7dc406f17c31:667e7dc406f17c31:0:1
    uid: b164c364-5e7e-4a81-b05c-d8a23a374096
resourceVersion: "635"
spec:
  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
status: []
systemMetadata:
  creationTimestamp: "2020-07-31T12:54:46.744840400Z"
  creatorClass: examplesvc.ves.io
  finalizers: []
  tenant: acmecorp
  uid: b164c364-5e7e-4a81-b05c-d8a23a374096

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build896999001_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: Fri, 31 Jul 2020 12:54:46 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "site-mesh-group-1",
      "namespace": "documentation",
      "uid": "b164c364-5e7e-4a81-b05c-d8a23a374096",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "b164c364-5e7e-4a81-b05c-d8a23a374096",
      "creation_timestamp": "2020-07-31T12:54:46.744840400Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "667e7dc406f17c31:667e7dc406f17c31: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": "635",
  "metadata": {
    "name": "site-mesh-group-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "b164c364-5e7e-4a81-b05c-d8a23a374096",
    "creation_timestamp": "2020-07-31T12:54:46.744840400Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc.ves.io",
    "creator_id": "",
    "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": "documentation",
        "name": "vsite-spoke-2"
      }
    ],
    "hub": [
      {
        "kind": "site_mesh_group",
        "uid": "",
        "tenant": "acmecorp",
        "namespace": "documentation",
        "name": "site-mesh-group-hub-2"
      }
    ]
  },
  "status": [
  ]
}