2.7

},
"cloneTarget": {
"cloneBothSchemaAndData": {
"fullClone": true
}
},
"dbgroupId": 26,
"description": "RestApiExample: clone database",
"name": "Aurora_clone"
}
The response that the system returns might look as follows.
content-length : 0
location : https://example.aurora.com/datadirector/api/task/34
202 Accepted
Refresh a Cloned Database
You can refresh a cloned database manually, or configure an automatic refresh profile using the vFabric
Data Director GUI. Refresh is supported only for certain clone types.
The database or catalog that a database is cloned from is the source of a cloned database. If the source has
been deleted, you cannot refresh the cloned database. When you refresh a cloned database, Data Director
performs the following processes.
n
Fetches schema and data from the source.
n
Runs a post-clone script on the schema and data.
n
Applies the schema and data generated by the post-clone script to the cloned database.
Procedure
u
Use an HTTTP POST call to refresh a database from the current state of its parent database.
POST https://example.aurora.com/datadirector/api/database/99?action=refresh
Content-Type : application/json
Authorization : Basic YWRtaW5AYXVyb3JhLnZtd2FyZS5jb206Y2xvdWRibXM=
Accept : application/json
The response that the system returns might look as follows.
202 Accepted
location : https://example.aurora.com/datadirector/api/task/79
Reconfigure a Database
You can reconfigure an existing database, for example, by changing the resource settings.
You can only reconfigure existing databases.
Procedure
u
Use an HTTP PUT call to reconfigure the database.
PUT https://example.aurora.com/datadirector/api/database/28
Content-type : application/json
Authorization : Basic YWRtaW5AYXVyb3JhLnZtd2FyZS5jb206Y2xvdWRibXM=
Accept : application/json
Chapter 3 Database Operations
VMware, Inc. 27