Get Data Storage Usage Forecast Report

GET/zstack/v1/primary-storage/{primaryStorageUuid}/usage/report

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/primary-storage/902707d77b6e36179ee0117e6614e52f/usage/report

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
primaryStorageUuidStringurlData Storage UUID 4.7.21
uris (Optional)ListqueryStorage Protocol 4.7.21
systemTags (Optional)ListquerySystem Tags 4.7.21
userTags (Optional)ListqueryUser Tags 4.7.21

API Response

Response Example

{
  "uriUsageForecast": {},
  "usageReport": {}
}
NameTypeDescriptionStarting Version
successboolean 4.7.21
uriUsageForecastMapSee uriUsageForecast4.7.21
usageReportUsageReportSee usagereport4.7.21
errorErrorCodeError code. If not null, the operation failed. When the operation succeeds, this field is null. See error4.7.21

uriUsageForecast

NameTypeDescriptionStarting Version
usedPhysicalCapacitiesForecastList 4.7.21
UsedPhysicalCapacitiesHistoryList 4.7.21
TotalPhysicalCapacitiesHistoryList 4.7.21
startTimeLong 4.7.21
intervalLong 4.7.21

usageReport

NameTypeDescriptionStarting Version
usedPhysicalCapacitiesForecastList 4.7.21
UsedPhysicalCapacitiesHistoryList 4.7.21
TotalPhysicalCapacitiesHistoryList 4.7.21
startTimeLong 4.7.21
intervalLong 4.7.21

error

NameTypeDescriptionStarting Version
codeStringError code number, a globally unique identifier for the error, for example SYS.1000, HOST.10014.7.21
descriptionStringBrief description of the error4.7.21
detailsStringDetailed error information4.7.21
elaborationStringReserved field, defaults to null4.7.21
opaqueLinkedHashMapReserved field, defaults to null4.7.21
causeErrorCodeRoot cause, the source error that caused the current error. If there is no original error, this field is null4.7.21

SDK Examples

Java SDK

GetPrimaryStorageLicenseInfoAction action = new GetPrimaryStorageLicenseInfoAction();
action.uuid = "9b624d6e4ca53a4aa10bfc341281d0ef";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetPrimaryStorageLicenseInfoAction.Result res = action.call();

Python SDK

GetPrimaryStorageLicenseInfoAction action = GetPrimaryStorageLicenseInfoAction()
action.uuid = "9b624d6e4ca53a4aa10bfc341281d0ef"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetPrimaryStorageLicenseInfoAction.Result res = action.call()