ves-io-schema-dc_cluster_group-API-Get

Examples of getting dcclustergroup

Usecase:

Get dc-cluster-group-1

Request using vesctl:

vesctl configuration get dc_cluster_group dc-cluster-group-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: dc-cluster-group-1
  namespace: documentation
object:
  metadata:
    annotations: {}
    labels: {}
    name: dc-cluster-group-1
    namespace: documentation
    uid: 8fcd7542-1e0c-4841-83ef-8924a0844fe4
  spec:
    gcSpec: {}
  systemMetadata:
    creationTimestamp: "2020-10-19T09:48:16.199055200Z"
    creatorClass: examplesvc
    creatorId: examplesvc
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 4dee87e636606163:4dee87e636606163:0:1
    uid: 8fcd7542-1e0c-4841-83ef-8924a0844fe4
resourceVersion: "167"
spec: {}
status: []
systemMetadata:
  creationTimestamp: "2020-10-19T09:48:16.199055200Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 8fcd7542-1e0c-4841-83ef-8924a0844fe4

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build185306297_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/dc_cluster_groups/dc-cluster-group-1?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Mon, 19 Oct 2020 09:48:16 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "dc-cluster-group-1",
      "namespace": "documentation",
      "uid": "8fcd7542-1e0c-4841-83ef-8924a0844fe4",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "8fcd7542-1e0c-4841-83ef-8924a0844fe4",
      "creation_timestamp": "2020-10-19T09:48:16.199055200Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc",
      "creator_id": "examplesvc",
      "creator_cookie": "",
      "trace_info": "4dee87e636606163:4dee87e636606163:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {

      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "167",
  "metadata": {
    "name": "dc-cluster-group-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "8fcd7542-1e0c-4841-83ef-8924a0844fe4",
    "creation_timestamp": "2020-10-19T09:48:16.199055200Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {

  },
  "status": [
  ]
}