GetPrimaryStorageAllocatorStrategies

API Request

URLs
GET zstack/v1/primary-storage/allocators/strategies
Headers
Authorization: OAuth the-session-uuid
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth c74da723ad8b47d387c211a4fcbc0697" \
-X GET http://localhost:8080/zstack/v1/primary-storage/allocators/strategies
Request Parameters
Name Type Location Description Optional Value Starting Version
systemTags List query Optional. The system tags. 0.6
userTags List query Optional. The user tags. 0.6

API Response

Sample Response
{
"primaryStorageAllocatorStrategies": [
"DefaultPrimaryStorageAllocationStrategy",
"LocalStorageAllocatorStrategy"
  ]
}
Name Type Description Starting Version
strategies List 0.6
error ErrorCode The error code. If not null, the operation fails, or vice versa. For more information, see error. 0.6
#error
Name Type Description Starting Version
code String The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. 0.6
description String The detailed description of the error. 0.6
details String The details about the error. 0.6
elaboration String The reserved field. Default value: null. 0.6
opaque LinkedHashMap The reserved field. Default value: null. 0.6
cause ErrorCode The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. 0.6

SDK Sample

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()