POST /files/stgupdates/repository/import/SELF
Use this method to import a management-server update to the updates repository without using a job.
Authentication
Authentication with username and password is required.
Request URL
POST https://{management_server_IP}/files/stgupdates/repository/import/SELF
Query parameters
None
Request body
Use the "multipart/form-data" media type to import the update package. Use the attributes in the following table as the multipart name in the body. For more information about the multipart/form-data media type, see Returning Values from Forms: multipart/form-data webpage. For example:
HTTP Header
Content-Type: multipart/form-data; boundary=AaB03x
Request body
--AaB03x
Content-Disposition: form-data; name="uploadedfiles[]";
filename="lnvgy_sw_lxca_serverrepo2-1.1.1_anyos_noarch.chg"
Content-Type: application/octet-stream
--AaB03x
Content-Disposition: form-data; name="uploadedfiles[]";
filename="lnvgy_sw_lxca_serverrepo2-1.1.1_anyos_noarch.tgz"
Content-Type: application/x-compressed
--AaB03x
Content-Disposition: form-data; name="uploadedfiles[]";
filename="lnvgy_sw_lxca_serverrepo2-1.1.1_anyos_noarch.txt"
Content-Type: text/plain
--AaB03x
Content-Disposition: form-data; name="uploadedfiles[]";
filename="lnvgy_sw_lxca_serverrepo2-1.1.1_anyos_noarch.xml"
Content-Type: text/xml
--AaB03x--
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
409 | Conflict | There is a conflict with the current state of the resource. A descriptive error message is returned in the response body. |
500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Response body
Attributes | Type | Description | |||
---|---|---|---|---|---|
current | String | ||||
downloadedsize | Integer | ||||
downloadednum | Integer | ||||
progress | Integer | Job progress, where 100 is complete, and less than 100 is in progress | |||
state | String | State of the import process. This can be one of the following values.
| |||
total | Integer | ||||
totalsize | Integer | ||||
updates | Array | ||||
popMsg | Array | Indicates that some files are not applicable for virtual-appliance updates repository | |||
result | String | Result of the request. This can be one of the following values.
| |||
messages | Object | Information about one or more messages | |||
id | String | Message identifier of a returned message | |||
explanation | String | ||||
recovery | Array | ||||
text | String | ||||
text | String | Message text that is associated with the message identifier | |||
errorMsg | Array | Information about one or more messages | |||
result | String | Result of the request. This can be one of the following values.
| |||
messages | Array | Information about one or more messages | |||
id | String | Message identifier of a returned message | |||
text | String | Message text that is associated with the message identifier |
The following example is returned if the request is successful.
{
"current": "",
"downloadednum": 0
"downloadedsize": 0,
"progress": 0,
"state": "success",
"total": 0,
"totalsize": 1,
"updates": [],
"popMsg": {
"result": "warning",
"messages": [{
"id": "FQXHMUP2512F",
"text": "Import complete",
"explanation": "The following files are not applicable to the updates
process; they have been discarded: newFile.txt.",
"recovery": {
"text": "Discarded packages are not referenced by any .xml file
currently in Firmware Updates Repository. Ensure your
uploaded files include the correct .xml file."
}
}]
},
"errorMsg": {
"result": "informational",
"messages": [{
"id": "FQXHMUP2500I",
"text": "Repository operation completed successfully."
}]
}
}
Give documentation feedback