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: documentation
spec: {}

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: dc-cluster-group-1
  namespace: documentation
spec: {}
systemMetadata:
  creationTimestamp: "2020-10-19T09:48:15.834982800Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 0698af23-40ef-43d5-afe4-a6e87a2c931b

Request using curl:

curl -X 'POST' -d '{"metadata":{"name":"dc-cluster-group-1","namespace":"documentation"},"spec":{}}' -H 'Content-Type: application/json' -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'

curl response:

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

{
  "metadata": {
    "name": "dc-cluster-group-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "0698af23-40ef-43d5-afe4-a6e87a2c931b",
    "creation_timestamp": "2020-10-19T09:48:15.834982800Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {

  }
}