You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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

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

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.

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 Length Identifies the name of the software image file being restored into Sonus SBC.

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)

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:

<?xml version="1.0"?>
<root>
 <status>
  <http_code>200</http_code>
</status>
  • No labels