​
Select Service
ves-io-schema-crl-API-Create
Published April 5, 2023 | Last modified March 20, 2025
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):
RequestJSON:
{
"metadata": {
"name": "crl-1",
"namespace": "documentation"
},
"spec": {
"server_address": "mycrlserver.com",
"server_port": 80,
"refresh_interval": 6,
"timeout": 5,
"http_access": {
"path": "/blob/all.crl"
}
}
}
Copied!
vesctl yaml response:
ResponseJSON:
{
"metadata": {
"name": "crl-1",
"namespace": "documentation",
"labels": {},
"annotations": {},
"description": "",
"disable": false
},
"system_metadata": {
"uid": "f42107be-59bd-4f37-8fe2-a0f4c8afb9a9",
"creation_timestamp": "2025-03-11T00:55:45.136658Z",
"deletion_timestamp": null,
"modification_timestamp": null,
"initializers": null,
"finalizers": [],
"tenant": "acmecorp",
"creator_class": "examplesvc",
"creator_id": "examplesvc",
"object_index": 0,
"owner_view": null,
"labels": {}
},
"spec": {
"server_address": "mycrlserver.com",
"server_port": 80,
"refresh_interval": 6,
"timeout": 5,
"verify_all_certs_with_crl": false,
"http_access": {
"path": "/blob/all.crl"
}
}
}
Copied!
Request using curl:
curl -X 'POST' -d '{"metadata":{"name":"crl-1","namespace":"documentation"},"spec":{"server_address":"mycrlserver.com","server_port":80,"refresh_interval":6,"timeout":5,"http_access":{"path":"/blob/all.crl"}}}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_q2_3kp8z3zs0x5_m7pk1bgb0_ph0000gp_T_go-build436303540_b001_apidocs.test/host=MTY6VVHQPH/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/crls'
Copied!
curl response:
HTTP/1.1 200 OK
Content-Length: 815
Content-Type: application/json
Date: Tue, 11 Mar 2025 00:55:45 GMT
Vary: Accept-Encoding
{
"metadata": {
"name": "crl-1",
"namespace": "documentation",
"labels": {
},
"annotations": {
},
"description": "",
"disable": false
},
"system_metadata": {
"uid": "f42107be-59bd-4f37-8fe2-a0f4c8afb9a9",
"creation_timestamp": "2025-03-11T00:55:45.136658Z",
"deletion_timestamp": null,
"modification_timestamp": null,
"initializers": null,
"finalizers": [
],
"tenant": "acmecorp",
"creator_class": "examplesvc",
"creator_id": "examplesvc",
"object_index": 0,
"owner_view": null,
"labels": {
}
},
"spec": {
"server_address": "mycrlserver.com",
"server_port": 80,
"refresh_interval": 6,
"timeout": 5,
"verify_all_certs_with_crl": false,
"http_access": {
"path": "/blob/all.crl"
}
}
}
Copied!