Skip to main content

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

CodeDescriptionComments
200OKThe request completed successfully.
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
currentString 
downloadedsizeInteger 
downloadednumInteger 
progressIntegerJob progress, where 100 is complete, and less than 100 is in progress
stateStringState of the import process. This can be one of the following values.
  • success. The request completed successfully.
  • error. The request failed. A descriptive error message is returned.
totalInteger 
totalsizeInteger 
updatesArray 
popMsgArrayIndicates that some files are not applicable for virtual-appliance updates repository
 resultStringResult of the request. This can be one of the following values.
  • warning
 messagesObjectInformation about one or more messages
  idStringMessage identifier of a returned message
  explanationString 
  recoveryArray 
   textString 
  textStringMessage text that is associated with the message identifier
errorMsgArrayInformation about one or more messages
 resultStringResult of the request. This can be one of the following values.
  • informational. The request completed successfully.
 messagesArrayInformation about one or more messages
  idStringMessage identifier of a returned message
  textStringMessage 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."
}]
}
}