ves-io-schema-crl-API-Create

Examples of creating crl

Usecase:

Create crl-config-1

Request using vesctl:

vesctl configuration create crl -i crl.yaml

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

metadata:
  name: crl-1
  namespace: documentation
spec:
  httpAccess:
    path: /blob/all.crl
  refreshInterval: 6
  serverAddress: mycrlserver.com
  serverPort: 80

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: crl-1
  namespace: documentation
spec:
  httpAccess:
    path: /blob/all.crl
  refreshInterval: 6
  serverAddress: mycrlserver.com
  serverPort: 80
systemMetadata:
  creationTimestamp: "2022-01-12T14:48:10.459445100Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 8abc3932-a4d3-4a0c-a4e1-e33cf921c3ec

Request using curl:

curl -X 'POST' -d '{"metadata":{"name":"crl-1","namespace":"documentation"},"spec":{"serverAddress":"mycrlserver.com","serverPort":80,"refreshInterval":6,"httpAccess":{"path":"/blob/all.crl"}}}' -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/config/namespaces/documentation/crls'

curl response:

HTTP/1.1 200 OK
Content-Length: 777
Content-Type: application/json
Date: Wed, 12 Jan 2022 14:48:10 GMT
Vary: Accept-Encoding

{
  "metadata": {
    "name": "crl-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "8abc3932-a4d3-4a0c-a4e1-e33cf921c3ec",
    "creation_timestamp": "2022-01-12T14:48:10.459445100Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "server_address": "mycrlserver.com",
    "server_port": 80,
    "refresh_interval": 6,
    "verify_all_certs_with_crl": false,
    "http_access": {
      "path": "/blob/all.crl"
    }
  }
}