ves-io-schema-tpm_manager-API-Create

Examples of creating tpm_manager

Usecase:

Create "tpm_manager"

Request using vesctl:

vesctl configuration create tpm_manager -i tpm_manager.yaml

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

metadata:
  name: tpm-manager-001
  namespace: documentation
spec: {}

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: tpm-manager-001
  namespace: documentation
spec: {}
systemMetadata:
  creationTimestamp: "2020-09-16T10:50:57.544701100Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: df891f68-c0aa-4bdd-986c-c1289e6e77c8

Request using curl:

curl -X 'POST' -d '{"metadata":{"name":"tpm-manager-001","namespace":"documentation"},"spec":{}}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build013258245_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/tpm/namespaces/documentation/tpm_managers'

curl response:

HTTP/1.1 200 OK
Content-Length: 659
Content-Type: application/json
Date: Wed, 16 Sep 2020 10:50:57 GMT
Vary: Accept-Encoding

{
  "metadata": {
    "name": "tpm-manager-001",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "df891f68-c0aa-4bdd-986c-c1289e6e77c8",
    "creation_timestamp": "2020-09-16T10:50:57.544701100Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "ak_root_ca_name": "",
    "ak_root_ca_certificate": ""
  }
}