ves-io-schema-topology-CustomDataAPI-DCClusterGroupsSummary

Examples of performing topology CustomDataAPI DCClusterGroupsSummary

Usecase:

Get DC Cluster groups summary

Request:

Request using vesctl:

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

where file request.yaml has following contents:

{}

vesctl yaml response:

edges: []
nodes:
- dcClusterGroup:
    info: {}
    summary:
      sites: 3
  id: dcg:dcg-1
  metadata:
    name: dcg-1
    tags: {}
- dcClusterGroup:
    info: {}
    summary:
      sites: 5
  id: dcg:dcg-2
  metadata:
    name: dcg-2
    tags: {}

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/dc_cluster_groups'

curl response:

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

{
  "nodes": [
    {
      "id": "dcg:dcg-1",
      "metadata": {
        "name": "dcg-1",
        "description": "",
        "level": 0,
        "provider_type": "PROVIDER_TYPE_UNSPECIFIED",
        "owner_id": "",
        "tags": {
        },
        "status": ""
      },
      "dc_cluster_group": {
        "info": {

        },
        "summary": {
          "sites": 3
        }
      }
    },
    {
      "id": "dcg:dcg-2",
      "metadata": {
        "name": "dcg-2",
        "description": "",
        "level": 0,
        "provider_type": "PROVIDER_TYPE_UNSPECIFIED",
        "owner_id": "",
        "tags": {
        },
        "status": ""
      },
      "dc_cluster_group": {
        "info": {

        },
        "summary": {
          "sites": 5
        }
      }
    }
  ],
  "edges": [
  ]
}