Get Data Storage Allocation Strategy List

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

NameTypeLocationDescriptionAllowed ValuesStarting Version
systemTags (Optional)ListquerySystem Tags 0.6
userTags (Optional)ListqueryUser Tags 0.6

API Response

Response Example

{
  "primaryStorageAllocatorStrategies": [
    "DefaultPrimaryStorageAllocationStrategy",
    "LocalStorageAllocatorStrategy"
  ]
}
NameTypeDescriptionStarting Version
strategiesList 0.6
errorErrorCodeError code. If not null, the operation failed. When the operation succeeds, this field is null. See error0.6

error

NameTypeDescriptionStarting Version
codeStringError code number, a globally unique identifier for the error, for example SYS.1000, HOST.10010.6
descriptionStringBrief description of the error0.6
detailsStringDetailed error information0.6
elaborationStringReserved field, defaults to null0.6
opaqueLinkedHashMapReserved field, defaults to null0.6
causeErrorCodeRoot cause, the source error that caused the current error. If there is no original error, this field is null0.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()