DeleteEip
API Request
URLs
DELETE/v1/eips/{uuid}?deleteMode={deleteMode}
Headers
Authorization: OAuth the-session-uuid
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth 45ccb9eb4add405d9059fb45990a6e8c" \
-X DELETE http://localhost:8080/zstack/v1/eips/468cb75384344acd87f22610d07080e5?deleteMode=Permissive
Request Parameters
Name | Type | Location | Description | Optional Value | Starting Version |
---|---|---|---|---|---|
uuid | String | url | The EIP UUID. | 0.6 | |
deleteMode | String | body | Optional. The delete mode. | 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
DeleteEipAction action = new DeleteEipAction();
action.uuid = "7ff634c9d79c48ca976a34ce53951c76";
action.deleteMode = "Permissive";
action.sessionId = "44b7b711d77b4dfa91257db5b9a61585";
DeleteEipAction.Result res = action.call();
Python
SDK
DeleteEipAction action = DeleteEipAction()
action.uuid = "e0699e3693ea429180371be5ca95e49e"
action.deleteMode = "Permissive"
action.sessionId = "ee71c70ee83a4ef8876f86d3876dbc8f"
DeleteEipAction.Result res = action.call()