VM Related Interfaces
Delete Resource Group Directory
Headers
Authorization: OAuth the-session-uuidCurl Example
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X DELETE http://localhost:8080/zstack/v1/delete/directoryParameter List
Name | Type | Location | Description | Allowed Values | Starting Version |
|---|---|---|---|---|---|
uuid | String | body | Resource UUID, a unique identifier for the resource |
| 4.6.0 |
deleteMode (optional) | String | body | Delete Mode |
| 4.6.0 |
systemTags (optional) | List | body | System Tags |
| 4.6.0 |
userTags (optional) | List | body | User Tags |
| 4.6.0 |
API Response
This API returns an empty JSON structure {} on success. On error, the returned JSON structure contains 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 Examples
Java SDK
DeleteDirectoryAction action = new DeleteDirectoryAction();
action.uuid = "7e0f83ed1d1c3e0b81b4d93afa882ead";
action.deleteMode = "Permissive";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
DeleteDirectoryAction.Result res = action.call();Python SDK
DeleteDirectoryAction action = DeleteDirectoryAction()
action.uuid = "7e0f83ed1d1c3e0b81b4d93afa882ead"
action.deleteMode = "Permissive"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
DeleteDirectoryAction.Result res = action.call()