GetPrimaryStorageAllocatorStrategies

API Request

URLs
GET zstack/v1/primary-storage/allocators/strategies
Headers
Authorization: OAuth the-session-uuid
Curl Example
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth c74da723ad8b47d387c211a4fcbc0697" \
-X GET http://localhost:8080/zstack/v1/primary-storage/allocators/strategies
Parameter List
Name Type Location Description Allowed Values Starting Version
systemTags (Optional) List query System Tags 0.6
userTags (Optional) List query User Tags 0.6

API Response

Response Example
{
"primaryStorageAllocatorStrategies": [
"DefaultPrimaryStorageAllocationStrategy",
"LocalStorageAllocatorStrategy"
  ]
}
Name Type Description Starting Version
strategies List The strategies. 0.6
error ErrorCode Error code. If not null, the operation failed. When the operation succeeds, this field is null. See error 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

SDK Examples

Java SDK
GetPrimaryStorageAllocatorStrategiesAction action = new GetPrimaryStorageAllocatorStrategiesAction();
action.sessionId = "ed5d5f6e4ac14b61a972469e88589b38";
GetPrimaryStorageAllocatorStrategiesAction.Result res = action.call();
Python SDK
GetPrimaryStorageAllocatorStrategiesAction action = GetPrimaryStorageAllocatorStrategiesAction()
action.sessionId = "78a99afd143f4ffca767a27bf9b3af93"
GetPrimaryStorageAllocatorStrategiesAction.Result res = action.call()
API Reference | ZStack ZSphere · ZVF | ZStack Resource Center