DetachL3NetworksFromIPsecConnection
API Request
URLs
DELETE zstack/v1/ipsec/{uuid}/l3networks?l3NetworkUuids={l3NetworkUuids}
Headers
Authorization: OAuth the-session-uuid
Curl
Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X DELETE http://localhost:8080/zstack/v1/ipsec/ad4996bae0fb374bbbf696422f64e4aa/l3networks?l3NetworkUuids=a835701f0df63d14ad1281eb9cc1a768
Request Parameters
Name | Type | Location | Description | Optional Value | Starting Version |
---|---|---|---|---|---|
uuid | String | url | The resource UUID. | 2.3 | |
l3NetworkUuids | List | url | 2.3 | ||
systemTags | List | body | Optional. The system tags. | 2.3 | |
userTags | List | body | Optional. The user tags. | 2.3 |
API Response
Sample
Response
{
"inventory": {
"authKey": "123456",
"authMode": "psk",
"createDate": "Jan 30, 2018 2:26:00 PM",
"description": "",
"ikeAuthAlgorithm": "sha1",
"ikeDhGroup": 2,
"ikeEncryptionAlgorithm": "3des",
"l3NetworkRefs": [
{
"connectionUuid": "8430a82e1293406fb10de06567af6f1d",
"createDate": "Jan 30, 2018 2:29:55 PM",
"l3NetworkUuid": "3533e0dcd01d4e2aa8697048e152c5d8",
"lastOpDate": "Jan 30, 2018 2:29:55 PM",
"uuid": "33b116666cc14ec68da8108969dfdef1"
}
],
"lastOpDate": "Jan 30, 2018 2:26:05 PM",
"name": "IPsec",
"peerAddress": "10.128.22.3",
"peerCidrs": [
{
"cidr": "192.168.127.1/24",
"connectionUuid": "8430a82e1293406fb10de06567af6f1d",
"createDate": "Jan 30, 2018 2:26:00 PM",
"lastOpDate": "Jan 30, 2018 2:26:00 PM",
"uuid": "74069e473ff74b4a9a33ecadce3c0425"
}
],
"pfs": "dh-group2",
"policyAuthAlgorithm": "sha1",
"policyEncryptionAlgorithm": "3des",
"policyMode": "tunnel",
"state": "Enabled",
"status": "Ready",
"transformProtocol": "esp",
"uuid": "8430a82e1293406fb10de06567af6f1d",
"vipUuid": "334aa31bdac34f7d83ebfdd7ab2f83a7"
},
"success": true
}
Name | Type | Description | Starting Version |
---|---|---|---|
error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, see error. | 2.3 |
inventory | IPsecConnectionInventory | See inventory. | 2.3 |
#error
Name | Type | Description | Starting Version |
---|---|---|---|
code | String | The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. | 2.3 |
description | String | The brief description of the error. | 2.3 |
details | String | The details about the error. | 2.3 |
elaboration | String | The reserved field. Default value: null. | 2.3 |
opaque | LinkedHashMap | The reserved field. Default value: null. | 2.3 |
cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 2.3 |
#inventory
Name | Type | Description | Starting Version |
---|---|---|---|
uuid | String | The resource UUID. | 2.3 |
name | String | The resource name. | 2.3 |
description | String | The detailed description of the resource. | 2.3 |
peerAddress | String | 2.3 | |
authMode | String | 2.3 | |
authKey | String | 2.3 | |
vipUuid | String | The VIP UUID. | 2.3 |
ikeAuthAlgorithm | String | 2.3 | |
ikeEncryptionAlgorithm | String | 2.3 | |
ikeDhGroup | Integer | 2.3 | |
policyAuthAlgorithm | String | 2.3 | |
policyEncryptionAlgorithm | String | 2.3 | |
pfs | String | 2.3 | |
policyMode | String | 2.3 | |
transformProtocol | String | 2.3 | |
state | String | 2.3 | |
status | String | 2.3 | |
createDate | Timestamp | The creation date. | 2.3 |
lastOpDate | Timestamp | The last operation date. | 2.3 |
peerCidrs | List | See peerCidrs. | 2.3 |
l3NetworkRefs | List | See l3NetworkRefs. | 2.3 |
#peerCidrs
Name | Type | Description | Starting Version |
---|---|---|---|
uuid | String | The resource UUID. | 2.3 |
cidr | String | 2.3 | |
connectionUuid | String | 2.3 | |
createDate | Timestamp | The creation date. | 2.3 |
lastOpDate | Timestamp | The last operation date. | 2.3 |
#l3NetworkRefs
Name | Type | Description | Starting Version |
---|---|---|---|
uuid | String | The resource UUID. | 2.3 |
connectionUuid | String | 2.3 | |
l3NetworkUuid | String | The L3 network UUID. | 2.3 |
createDate | Timestamp | The creation date. | 2.3 |
lastOpDate | Timestamp | The last operation date. | 2.3 |
SDK Sample
Java
SDK
DetachL3NetworksFromIPsecConnectionAction action = new
DetachL3NetworksFromIPsecConnectionAction();
action.uuid = "ad4996bae0fb374bbbf696422f64e4aa";
action.l3NetworkUuids = asList("a835701f0df63d14ad1281eb9cc1a768");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
DetachL3NetworksFromIPsecConnectionAction.Result res = action.call();
Python
SDK
DetachL3NetworksFromIPsecConnectionAction action = DetachL3NetworksFromIPsecConnectionAction()
action.uuid = "ad4996bae0fb374bbbf696422f64e4aa"
action.l3NetworkUuids = [a835701f0df63d14ad1281eb9cc1a768]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
DetachL3NetworksFromIPsecConnectionAction.Result res = action.call()