Remove A Specified Repository File - Cisco 340 Series Configuration Manual

Table of Contents

Advertisement

Chapter 4
Configuring HTTP API
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d
'{"backup":"/tmp"}' https://localhost/api/2.0/repository/backup
Reply
{"success":"true","updatedAt":"2013-04-08 13:14:51"}

Remove a Specified Repository File

Example: remove a specified repository file from the repository directory
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d
'{"removing":" google-chrome.repo"}' https://localhost/api/2.0/repository/removing
Reply
{"success":"true","updatedAt":"2013-04-08 13:14:51"}
Add a Specified Repository File
Example: add a specified repository file
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d
'{"update":"/home/user/google-chrome.repo"}' https://localhost/api/2.0/repository/update
Reply
{"success":"true","updatedAt":"2013-04-08 13:14:51"}
Add All the Repository Files Under the Specified Folder
Example: add all the repository files under the specified folder
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d
'{"updateAll":"/home/user/"}' https://localhost/api/2.0/repository/updateAll
Reply
{"success":"true","updatedAt":"2013-04-08 13:14:51"}
Core Dump
Set Core Dump Limit
Example: set core dump limit to unlimit
OL-29491-01
Cisco Edge 340 Series Software Configuration Guide, Release 1.0
Core Dump
4-7

Advertisement

Table of Contents
loading

Table of Contents