ves-io-schema-dc_cluster_group-API-Create

Examples of creating dcclustergroup

Usecase:

Create dc-cluster-group-1

Request using vesctl:

vesctl configuration create dc_cluster_group -i dc_cluster_group.yaml

where file dcclustergroup.yaml has following contents (dcclustergroup.CreateRequest):

metadata:
  name: dc-cluster-group-1
  namespace: system
spec: {}

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: dc-cluster-group-1
  namespace: system
spec: {}
systemMetadata:
  creationTimestamp: "2021-08-25T09:02:53.777803741Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: fc6de1e0-2856-4808-9f63-0a25a8c6ca4a

Request using curl:

curl -X 'POST' -d '{"metadata":{"name":"dc-cluster-group-1","namespace":"system"},"spec":{}}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/dc_cluster_groups'

curl response:

HTTP/1.1 200 OK
Content-Length: 596
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:02:53 GMT
Vary: Accept-Encoding

{
  "metadata": {
    "name": "dc-cluster-group-1",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "fc6de1e0-2856-4808-9f63-0a25a8c6ca4a",
    "creation_timestamp": "2021-08-25T09:02:53.777803741Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {

  }
}