2.0
Table Of Contents
- VMware vFabric Data Director API Programming Guide
Reconfiguring a Database
You can only perform this command on an existing database. In this example, the database ID is 28.
Here is an example of the REST API request to reconfigure a database.
PUT https://example.aurora.com\
/datadirector/api/database/28
Content-type : application/json
Authorization : Basic YWRtaW5AYXVyb3JhLnZtd2FyZS5jb206Y2xvdWRibXM=
Accept : application/json
{
"description": "RestApiExample: reconfigure database",
"resourceSetting": {
"resourceConfig": {
"cpuReservationMHz": 0,
"highAvailabilityEnabled": false,
"memoryMb": 3000,
"memoryReservationMb": 0,
"priority": "Automatic",
"storageGb": 10,
"swapstorageMb": 4500,
"vCpuNumber": 1
}
},
"restartIfNeeded": true
}
The following is an example of the corresponding response.
content-length : 0
location : https://example.aurora.com\
/datadirector/api/task/29
202 Accepted
Cataloging 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 catalog a database with these parameters.
POST https://example.aurora.com\
/datadirector/api/catalogs
Content-type : application/json
Authorization : Basic YWRtaW5AYXVyb3JhLnZtd2FyZS5jb206Y2xvdWRibXM=
Accept : application/json
{
"cloneParam": {
"dstDbgId": 26,
"fullClone": true,
"srcDbId": 28
Chapter 5 Managing a Database
VMware, Inc. 27