Skip to main content

GET /updateRepositories/firmware/status

Use this method to return the status for a repository task.

Authentication

Authentication with username and password is required.

Request URL

GET https://{management_server_IP}/updateRepositories/firmware/status

Query parameters

ParametersRequired / OptionalDescription
taskType=EXPORTREPOSITORYRequiredType of repository task for which to retrieve status. This can be the following value.
  • EXPORTREPOSITORY. Returns status for an export task.​

taskid={task_id}RequiredJob (task) ID that is returned by the PUT /updateRepositories/firmware?action=export method for collecting (exporting) firmware updates and UpdateXpress System Packs (UXSPs) in a .zip file. If 0 is specified, the status for all running tasks is returned.
The following example returns the status for a specific export job.
GET https://192.0.2.0/updateRepositories/firmware/status?tasktype=EXPORTREPOSITORY&taskid=12

Request body

None

Response codes

CodeDescriptionComments
200OKThe request completed successfully.
400Bad RequestA query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body.
403ForbiddenThe orchestrator server was prevented from fulfilling the request. A descriptive error message is returned in the response body. Ensure that you have privileges to perform the request.
409ConflictThere is a conflict with the current state of the resource. A descriptive error message is returned in the response body.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

AttributesTypeDescription
currentStringName of the ZIP file
downloadednumIntegerNumber of firmware-update and UXSPs that is currently exported
Tip
After the export is complete, the download number is the same as the total.
downloadedsizeIntegerSize of the .zip file that is currently exported
Tip
After the export is complete, the download size is the same as the total size.
progressIntegerPercentage complete of the bulk management job. This can be one of the following values
  • 0. Created.

  • 50. In progress.

  • 100. Complete.

stateStringThis can be one of the following values.
  • canceled. The request was canceled.

  • complete. The request completed successfully.

  • error. The request encountered an error.

taskIdsStringID of the task that collected the files.
totalIntegerTotal number of firmware-update and UXSPs in the .zip file
totalsizeIntegerTotal size of the .zip file
updatesArray 
errorMsgArrayInformation about one or more messages.
 messagesArrayMessage.
  idStringThe message identifier of a returned message.
  textStringMessage text associated with the message identifier.
 resultStringThe results of the request . This can be one of the following values.
  • success. The request completed successfully.

  • failure. The request failed. A descriptive error message is returned.

  • informational

The following example is returned if the request is successful.
{
"current": "repository20181112011742.zip",
"downloadednum": 0,
"downloadedsize": 8298,
"progress": 100,
"state": "complete",
"taskIds": "",
"total": 0,
"totalsize": 8298,
"updates": [],
"errorMsg": {
"result": "informational",
"messages": [{
"id": "FQXHMUP2500I",
"text": "Repository operation completed successfully."
}]
}
}