MethodPathDescription
POST/v1/bdbs/{uid}/actions/exportInitiate database export

Initiate database export

POST /v1/bdbs/{int: uid}/actions/export

Initiate a database export.

Permissions

Permission nameRoles
start_bdb_exportadmin
cluster_member
db_member

Request

Example HTTP request

POST /bdbs/1/actions/export

Headers

KeyValueDescription
Hostcnm.cluster.fqdnDomain name
Acceptapplication/jsonAccepted media type

URL parameters

FieldTypeDescription
uidintegerThe unique ID of the database

Body

The request body should contain a JSON object with the following export parameters:

FieldTypeDescription
export_locationbackup_location/export_location objectDetails for the export destination. Call GET /jsonschema on the bdb object and review the backup_location field to retrieve the object’s structure.
email_notificationbooleanEnable/disable an email notification on export failure/ completion. (optional)
Example JSON body
{
    "export_location": {
        "type": "url",
        "url": "ftp://..."
    },
    "email_notification": true
}

The above request initiates an export operation to the specified location.

Response

Returns a status code.

Status codes

CodeDescription
200 OKThe request is accepted and is being processed. In order to monitor progress, the BDB’s export_status, export_progress, and export_failure_reason attributes can be consulted.
404 Not FoundAttempting to perform an action on a nonexistent database.
406 Not AcceptableNot all the modules loaded to the database support ‘backup_restore’ capability
409 ConflictDatabase is currently busy with another action. In this context, this is a temporary condition and the request should be reattempted later.