Get list of saved backup configuration files
get
/rest/{version}/configuration/management/files
Retrieves the list of all saved backup configuration files in the standard backup file directory (/code/bkups) in the file system.
For more information, see Configuration Overview in the Maintenance and Troubleshooting Guide.
For more information, see Configuration Overview in the Maintenance and Troubleshooting Guide.
Request
Path Parameters
-
version(required):
REST API version string.
Available values: v1.2
Header Parameters
-
Authorization(required):
The value in the Authorization header must be the string "
Bearer {access token}
", where{access token}
is a valid, unexpired token received in response to a prior/rest/{version}/auth/token
request.
Response
200 Response
OK - Requested data is returned in response body
400 Response
The request is malformed in some way or is missing required information and therefore cannot be processed.
401 Response
Unauthorized - Request lacks valid authentication credentials.
404 Response
Resource not found
Examples
Examples of Accessing the API
See Authenticate for how to acquire a token.
The following example shows how to get list of saved backup configuration files using curl.
curl -X GET \
--header "Accept: application/xml" \
--header "Authorization: Bearer $TOKEN" \
"https://${SBCIP}/rest/v1.2/configuration/management/files"
The following example shows how to get list of saved backup configuration files using Python.
import requests
headers = { "Accept":"application/xml", "Authorization":"Bearer " + token }
url = "https://" + sbcip + "/rest/v1.2/configuration/management/files"
resp = requests.get(url, headers=headers)
Example of the Response Body
The following example shows the contents of the response body in XML.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
<data>
<backupFiles>
<fileDetails>
<name>backupRunningConfig.gz</name>
<sizeBytes>5585</sizeBytes>
<lastModifiedTime>2019-01-14T22:48:02+0000</lastModifiedTime>
</fileDetails>
</backupFiles>
</data>
<messages/>
<links/>
</response>