Versions Compared

Key

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

REST API Method: POST /rest/system?action=setdatetime

Page Tree
rootResource - system

This action configures the Sonus SBC 1000/2000 system's date and time.

URL:

https://134.56.227.163/rest/system?action=setdatetime

HTTP Method

POST

Requires Authentication:

true



Parameters

Parameter Name Required Service Affecting Data Type Default Value Possible Values Description
epochTimeYesNolongIdentifies the time to be set on the node. It is entered in seconds since January 1, 1970 epoch. It needs to be within the range 0-2147483647

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

Code Block
languagebash
 curl --cookie  PHPSESSID=4cvansmtlcokghkiuc2ghagkc1 --cacert 1kCAcert.pem -i  https://134.56.227.163/rest/system?action=setdatetime?epochTime=1386973847

Response:

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