ves-io-schema-topology-CustomDataAPI-SiteMeshGroupsSummary

Examples of performing topology CustomDataAPI SiteMeshGroupsSummary

Usecase:

Get site mesh groups summary

Request:

Request using vesctl:

vesctl request rpc topology.CustomDataAPI.SiteMeshGroupsSummary -i request.yaml --uri /public/namespaces/system/topology/site_mesh_groups --http-method GET

where file request.yaml has following contents:

{}

vesctl yaml response:

edges: []
nodes:
- id: smg:smg-1
  metadata:
    name: smg-1
    tags: {}
  siteMeshGroup:
    info:
      hub: []
      type: SITE_MESH_GROUP_TYPE_HUB_FULL_MESH
    summary:
      linkStatusSummary:
      - count: 10
        status: LINK_STATUS_UP
      otherConnectedSiteMeshGroupSites: 2
      sites: 2
- id: smg:smg-2
  metadata:
    name: smg-2
    tags: {}
  siteMeshGroup:
    info:
      hub: []
      type: SITE_MESH_GROUP_TYPE_SPOKE
    summary:
      linkStatusSummary:
      - count: 10
        status: LINK_STATUS_UP
      otherConnectedSiteMeshGroupSites: 2
      sites: 2

Request using curl:

curl -X 'GET' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build038462651_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/data/namespaces/system/topology/site_mesh_groups'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 12 Jan 2022 14:51:10 GMT
Vary: Accept-Encoding

{
  "nodes": [
    {
      "id": "smg:smg-1",
      "metadata": {
        "name": "smg-1",
        "description": "",
        "level": 0,
        "provider_type": "PROVIDER_TYPE_UNSPECIFIED",
        "owner_id": "",
        "tags": {
        },
        "status": ""
      },
      "site_mesh_group": {
        "info": {
          "type": "SITE_MESH_GROUP_TYPE_HUB_FULL_MESH",
          "site_selector": null,
          "site_type": "INVALID",
          "hub": [
          ]
        },
        "summary": {
          "sites": 2,
          "other_connected_site_mesh_group_sites": 2,
          "link_status_summary": [
            {
              "type": "LINK_TYPE_TUNNEL",
              "status": "LINK_STATUS_UP",
              "count": 10
            }
          ]
        }
      }
    },
    {
      "id": "smg:smg-2",
      "metadata": {
        "name": "smg-2",
        "description": "",
        "level": 0,
        "provider_type": "PROVIDER_TYPE_UNSPECIFIED",
        "owner_id": "",
        "tags": {
        },
        "status": ""
      },
      "site_mesh_group": {
        "info": {
          "type": "SITE_MESH_GROUP_TYPE_SPOKE",
          "site_selector": null,
          "site_type": "INVALID",
          "hub": [
          ]
        },
        "summary": {
          "sites": 2,
          "other_connected_site_mesh_group_sites": 2,
          "link_status_summary": [
            {
              "type": "LINK_TYPE_TUNNEL",
              "status": "LINK_STATUS_UP",
              "count": 10
            }
          ]
        }
      }
    }
  ],
  "edges": [
  ]
}