Set Time - Cisco 340 Series Configuration Manual

Table of Contents

Advertisement

Repository
Parameter Restrictions
The valid parameter is enable or disable.

Set Time

Example: set time to 2012-11-06 19:49:21
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d '{"time" :
"2012-11-06 19:49:21"}' https://localhost/api/2.0/sys/time
Reply
{"success":"true","updatedAt":"2012-11-06 19:49:21"}
Parameter Restrictions
The parameter should be in the YYYY-MM-DD HH:MM:SS format. Otherwise, a 004 error is reported.
Get Time
Example: get time
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/sys/time
Reply
{"time":"2012-11-07 15:22:15","success":"true","getAt":"2012-11-07 15:22:15"}
Repository
List All Repository Files
Example: list all repository files that are being used
Request
curl -k -X GET -H 'password: cisco123!'
Reply
{"reposList":"fedora-updates.repo fedora-updates-testing.repo google-chrome.repo
fedora.repo","success":"true","getAt":"2013-08-14 14:29:28"}
Set Repository Backup
Example: set backup repository to a destination
Cisco Edge 340 Series Software Configuration Guide, Release 1.0
4-6
https://localhost/api/2.0/repository/reposList
Chapter 4
Configuring HTTP API
OL-29491-01

Advertisement

Table of Contents
loading

Table of Contents