2.0
Table Of Contents
- VMware vFabric Data Director API Programming Guide
Cloning a Database 8
This section provides examples of how to clone a database.
You can only perform this command on an existing database. In this example, the database ID is 28.
The example also assumes that you have created the target DB Group and that the DB Group ID is 26.
Here is an example of the REST API request to clone a database with these parameters.
POST https://example.aurora.com\
/datadirector/api/database/28/clones
Content-type : application/json
Authorization : Basic YWRtaW5AYXVyb3JhLnZtd2FyZS5jb206Y2xvdWRibXM=
Accept : application/json
{
"clonePoint": {
"cloneNow": {}
},
"cloneTarget": {
"cloneBothSchemaAndData": {
"fullClone": true
}
},
"dbgroupId": 26,
"description": "RestApiExample: clone database",
"name": "Aurora_clone"
}
The following is an example of the corresponding response.
content-length : 0
location : https://example.aurora.com\
/datadirector/api/task/34
202 Accepted
VMware, Inc.
33










