DetachNetworkServiceFromL3Network

API Request

URLs
DELETE/v1/l3-networks/{l3NetworkUuid}/network-services?networkServices={networkServices}
Headers
Authorization: OAuth the-session-uuid
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth 6c324aa381644b8b87d229ba3fdad834" \
-X DELETE http://localhost:8080/zstack/v1/l3-networks/0cf8b1d49cb34d9c8f3fb0f70a4ec20d/network-services?networkServices.fa376f5cad7c3ddb8ff4e8ae0430f8d4=PortForwarding&networkServices.fa376f5cad7c3ddb8ff4e8ae0430f8d4=EIP
Request Parameters
Name Type Location Description Optional Value Starting Version
l3NetworkUuid String url The L3 network UUID. 0.6
networkServices Map body The network services. 0.6
systemTags List body Optional. The system tags. 0.6
userTags List body Optional. The user tags. 0.6

API Response

When the API succeeded, an empty JSON structure {} is returned. When the API failed, the returned JSON structure includes an error field. For example,
{
"error": {
"code": "SYS.1001",
"description": "A message or a operation timeout",
"details": "Create VM on KVM timeout after 300s"
    }
}

SDK Sample

Java SDK
DetachNetworkServiceFromL3NetworkAction action = new DetachNetworkServiceFromL3NetworkAction();
action.l3NetworkUuid = "ce1dedf370494cd4b49c1dd1c845c96b";
action.networkServices = [76b66ca373834d0e8f4011f84dbf6006:[PortForwarding, EIP]];
action.sessionId = "095d243ad49d4717b99b49c6151c25c8";
DetachNetworkServiceFromL3NetworkAction.Result res = action.call();
Python SDK
DetachNetworkServiceFromL3NetworkAction action = DetachNetworkServiceFromL3NetworkAction()
action.l3NetworkUuid = "a679835ba20342c5809e1be8ddf5e5c8"
action.networkServices = [b78e8e4ca36b4eefa5c38140c7611ef3:[PortForwarding, EIP]]
action.sessionId = "73aa0dad7996453f80331b833df6f320"
DetachNetworkServiceFromL3NetworkAction.Result res = action.call()