​
Select Service
ves-io-schema-ike2-API-Create
Published April 5, 2023 | Last modified September 19, 2025
Examples of creating ike2
Usecase:
Create ike_phas1_profile
Request using vesctl:
vesctl configuration create ike2 -i ike2.yaml
where file ike2.yaml has following contents (ike2.CreateRequest):
RequestJSON:
{
"metadata": {
"name": "ike-phase2-profile-test",
"namespace": "system"
},
"spec": {
"encryption_algos": [
"ENC_ALG_DEFAULT",
"AES128_CBC"
],
"authentication_algos": [
"AUTH_ALG_DEFAULT"
],
"disable_pfs": {},
"ike_keylifetime_hours": {
"duration": 4
}
}
}
Copied!
vesctl yaml response:
ResponseJSON:
{
"metadata": {
"name": "ike-phase2-profile-test",
"namespace": "system",
"labels": {},
"annotations": {},
"description": "",
"disable": false
},
"system_metadata": {
"uid": "3c584c0a-3a7e-4b21-924d-c5efaa3e039d",
"creation_timestamp": "2025-09-19T02:00:11.028461Z",
"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": {
"encryption_algos": [
"ENC_ALG_DEFAULT",
"AES128_CBC"
],
"authentication_algos": [
"AUTH_ALG_DEFAULT"
],
"disable_pfs": {},
"ike_keylifetime_hours": {
"duration": 4
}
}
}
Copied!
Request using curl:
curl -X 'POST' -d '{"metadata":{"name":"ike-phase2-profile-test","namespace":"system"},"spec":{"encryption_algos":["ENC_ALG_DEFAULT","AES128_CBC"],"authentication_algos":["AUTH_ALG_DEFAULT"],"disable_pfs":{},"ike_keylifetime_hours":{"duration":4}}}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_q2_3kp8z3zs0x5_m7pk1bgb0_ph0000gp_T_go-build2850427035_b001_apidocs.test/host=MTY6VVHQPH/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/ike2s'
Copied!
curl response:
HTTP/1.1 200 OK
Content-Length: 845
Content-Type: application/json
Date: Fri, 19 Sep 2025 02:00:11 GMT
Vary: Accept-Encoding
{
"metadata": {
"name": "ike-phase2-profile-test",
"namespace": "system",
"labels": {
},
"annotations": {
},
"description": "",
"disable": false
},
"system_metadata": {
"uid": "3c584c0a-3a7e-4b21-924d-c5efaa3e039d",
"creation_timestamp": "2025-09-19T02:00:11.028461Z",
"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": {
"encryption_algos": [
"ENC_ALG_DEFAULT",
"AES128_CBC"
],
"authentication_algos": [
"AUTH_ALG_DEFAULT"
],
"disable_pfs": {
},
"ike_keylifetime_hours": {
"duration": 4
}
}
}
Copied!