Get Data Storage License Information

GET/zstack/v1/primary-storage/{uuid}/license

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/9b624d6e4ca53a4aa10bfc341281d0ef/license

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
uuidStringurlData Storage UUID 3.6.0
systemTags (Optional)Listquery  3.6.0
userTags (Optional)Listquery  3.6.0

API Response

Response Example

{
  "uuid": "28d49729434c388b987efbb84b5b0ee6",
  "name": "Ceph",
  "expireTime": ""
}
NameTypeDescriptionStarting Version
uuidString 3.6.0
nameString 3.6.0
expireTimeString 3.6.0
successboolean 3.6.0
errorErrorCodeError code. If not null, the operation failed. When the operation succeeds, this field is null. See error3.6.0

error

NameTypeDescriptionStarting Version
codeStringError code number, a globally unique identifier for the error, for example SYS.1000, HOST.10013.6.0
descriptionStringBrief description of the error3.6.0
detailsStringDetailed error information3.6.0
elaborationStringReserved field, defaults to null3.6.0
opaqueLinkedHashMapReserved field, defaults to null3.6.0
causeErrorCodeRoot cause, the source error that caused the current error. If there is no original error, this field is null3.6.0

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