Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

REST API Method: POST /rest/partition/{identifier}?action=upgrade

Page Tree
rootResource - partition

This action causes the Sonus SBC 1000/2000 system to be upgraded to a new software version.

Info

If the system is being upgraded to a new software image, the upgrade needs to be performed on the non-active partition (either partition 2 or 3). If the boot partition is being upgraded, the action needs to be performed on partition 1.

Note

A HTTP Status 200 return for this action only means that the request was successfully received by the system and some pre-validation is performed. The upgrade process can take a while and so it is the responsibility of the client to perform HTTP_GET requests on the Partition Resource and check on the status by inspecting the rt_Download_Resource_Code attribute.

URL:

https://134.56.227.163/rest/partition/{identifier}?action=upgrade

HTTP Method

POST

Requires Authentication:

true



Parameters

Parameter Name Required Service Affecting Data Type Default Value Possible Values Description
FilenameYesNostringnone255 - Max LengthIdentifies the name of the software image file being restored into Sonus SBC.
Info

If the upgrade is being performed from an existing Sonus SBC 1000/2000 1.3.x version, then the file needs to be of extension .tar.gz. For all other upgrades from version 2.0 onwards, the file needs to be of extension .img.

Usage Example: (about cURL | requires a session token)

Code Block
languagebash
curl --cookie PHPSESSID=s87rdf8usk6rsi30nnkbk18c4ert 1kCAcert.pem  -i https://134.56.227.163/rest/partition/2?action=upgrade -F Filename=@sbc1000-release-3.1.0.img



Response:

Code Block
languagehtml/xml
<?xml version="1.0"?>
<root>
 <status>
  <http_code>200</http_code>
</status>