2.0

Ingesting a Database 6
This section provides examples of how to ingest an existing database into Data Director.
The example also assumes that you have created an Oracle base DB template with an ID of 1, and created a
DB Group with an ID of 26.
In this example, the dbName for the ingestion source is ORAC and the ip address is 192.168.64.48:/nfs.
The resourceTemplate used in this example is the default resourceTemplate, so you do not have to create one
before making this call.
Here is an example of the REST API request to ingest a database with these assumptions.
POST https://example.aurora.com\
/datadirector/api/databases
Content-type : application/json
Authorization : Basic YWRtaW5AYXVyb3JhLnZtd2FyZS5jb206cGFzc3dvcmQ=
Accept : application/json
{
"baseDbTemplateId": 1,
"dbName": "ORAC",
"dbgroupId": 26,
"description": "RestApiExample: ingestion oracle",
"extendedCreationConfig": {
"ingestExternalDb": {
"ingestionSource": {
"address": "192.168.64.48:/nfs",
"relativePath": "xhwang/BAK1_L0"
}
}
},
"name": "ORAC",
"resourceSetting": {
"resourceTemplateId": 21
}
}
The following is an example of the corresponding response.
content-length : 0
location : https://example.aurora.com\
/datadirector/api/task/221
202 Accepted
VMware, Inc.
29