Export

Exports all datasources to a combined XML file. The command can be used for backing up the current datasources and importing them at a later time. The response is written as a plain text file.

GET /api/datasources/export

Exports all datasources as combined XML file.

Example Request

# Request
# Use user:password for authorization
GET /api/datasources/export HTTP/1.1
Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u
 
# Response - Exported datasource xml
HTTP/1.1 200 OK
Content-Type: plain/text
Content-Disposition: attachement;filename=datasource.xml
Content-Length: <LENGTH>
 
<DATASOURCE.XML RESPONSE>

Application Example

# Shell access using curl
curl -LsH "Authorization: Bearer <access_token>" "http://127.0.0.1:9000/api/datasources/export"
 
# Shell access using curl using username and password
curl -Lsu username:password "http://127.0.0.1:9000/api/datasources/export"