DetachPrimaryStorageFromCluster

API Request

URLs
DELETE/v1/clusters/{clusterUuid}/primary-storage/{primaryStorageUuid}
Headers
Authorization: OAuth the-session-uuid
Curl Example
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth d4e0a29dc5d94c9ca378b56c1eb538d7" \
-X DELETE http://localhost:8080/zstack/v1/clusters/d4ff9ff0511b4848870aa648748f9890/primary-storage/b91bcd212e434b1d97d80df127460f84?
Parameter List
Name Type Location Description Allowed Values Starting Version
primaryStorageUuid String url Data Storage UUID 0.6
clusterUuid String url Cluster UUID 0.6
systemTags (Optional) List body System Tags 0.6
userTags (Optional) List body User Tags 0.6

API Response

Response Example
{
"inventory": {
"name": "PS1",
"url": "/Cloud_ps",
"type": "LocalStorage",
"state": "Enabled",
"status": "Connected"
  }
}
Name Type Description Starting Version
error ErrorCode Error code. If not null, the operation failed. When the operation succeeds, this field is null. See error 0.6
inventory PrimaryStorageInventory See inventory 0.6
#error
Name Type Description Starting Version
code String Error code number, a globally unique identifier for the error, for example SYS.1000, HOST.1001 0.6
description String Brief description of the error 0.6
details String Detailed error information 0.6
elaboration String Reserved field, defaults to null 0.6
opaque LinkedHashMap Reserved field, defaults to null 0.6
cause ErrorCode Root cause, the source error that caused the current error. If there is no original error, this field is null 0.6
#inventory
Name Type Description Starting Version
uuid String Resource UUID, uniquely identifies the resource 0.6
zoneUuid String Data Center UUID 0.6
name String Resource Name 0.6
url String The URL. 0.6
description String Resource Description 0.6
totalCapacity Long The total capacity. 0.6
availableCapacity Long The available capacity. 0.6
totalPhysicalCapacity Long The total physical capacity. 0.6
availablePhysicalCapacity Long The available physical capacity. 0.6
systemUsedCapacity Long The system used capacity. 0.6
type String The resource type. 0.6
state String The resource state. 0.6
status String The resource status. 0.6
mountPath String The mount path. 0.6
createDate Timestamp Create Time 0.6
lastOpDate Timestamp Last Modification Time 0.6
attachedClusterUuids List The attached cluster UUIDs. 0.6

SDK Examples

Java SDK
DetachPrimaryStorageFromClusterAction action = new DetachPrimaryStorageFromClusterAction();
action.primaryStorageUuid = "c3444a3237a84d7e904b23d25106855a";
action.clusterUuid = "7ff9675810c84884984ee771d5a5b05c";
action.sessionId = "e678af3ed83b4ba893e0e514d2c07eb5";
DetachPrimaryStorageFromClusterAction.Result res = action.call();
Python SDK
DetachPrimaryStorageFromClusterAction action = DetachPrimaryStorageFromClusterAction()
action.primaryStorageUuid = "4dbcd51ef01c44728b19c4d5aa06ac59"
action.clusterUuid = "554ac500d71b476e91ecf5440980aba9"
action.sessionId = "21fdcfe391a14d46ad5a7dcccbc3ddfa"
DetachPrimaryStorageFromClusterAction.Result res = action.call()
API Reference | ZStack ZSphere · ZVF | ZStack Resource Center