GetUploadSoftwarePackageJobDetails
Headers
Authorization: OAuth the-session-uuidCurl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/software-package/upload-jobs/details/ff04e1736ec6391f9a1f023b524d0a00Parameter List
| Name | Type | Location | Description | Allowed Values | Starting Version |
|---|---|---|---|---|---|
| softwarePackageId | String | url | The software package ID (default is hash value). | 4.10.20 | |
| systemTags (Optional) | List | query | The system tags. | 4.10.20 | |
| userTags (Optional) | List | query | The user tags. | 4.10.20 |
API Response
Sample Response
{
"existingJobDetails": [
{
"longJobUuid": "ff05232082b53f4f8e657884f462f600",
"longJobState": "Running",
"softwarePackageUuid": "ff04e1736ec6391f9a1f023b524d0a00",
"softwarePackageUploadUrl": "http://127.0.0.1:8001/host/file/upload",
"offset": 452984832
}
]
}| Name | Type | Description | Starting Version |
|---|---|---|---|
| success | boolean | The operation success. True if success, false otherwise. | 4.10.20 |
| existingJobDetails | List | See existingJobDetails. | 4.10.20 |
| error | ErrorCode | See error. | 4.10.20 |
existingJobDetails
| Name | Type | Description | Starting Version |
|---|---|---|---|
| longJobUuid | String | The task UUID. | 4.10.20 |
| longJobState | String | The task status. | 4.10.20 |
| softwarePackageUuid | String | The software package UUID. | 4.10.20 |
| softwarePackageUploadUrl | String | The software package upload URL. | 4.10.20 |
| offset | long | The upload offset. | 4.10.20 |
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 brief description of the error. | 0.6 |
| details | String | The details about the error. | 0.6 |
| elaboration | String | Reserved field. Default value: null. | 0.6 |
| opaque | LinkedHashMap | 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
GetUploadSoftwarePackageJobDetailsAction action = new GetUploadSoftwarePackageJobDetailsAction();
action.softwarePackageId = "ff04e1736ec6391f9a1f023b524d0a00";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetUploadSoftwarePackageJobDetailsAction.Result res = action.call();Python SDK
action = GetUploadSoftwarePackageJobDetailsAction()
action.softwarePackageId = "ff04e1736ec6391f9a1f023b524d0a00"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
res = action.call()