2.7
Table Of Contents
Procedure
1 Retrieve data about available resource pools; excluding the system resource pool.
GET https://example.aurora.com/resourcepools?forsysrb=false
2 Retrieve network information.
GET https://example.aurora.com/datadirector/api/resourcepool/
null:ResourcePool:resgroup-9680/networks
3 Retrieve information about the base DB templates.
GET https://example.aurora.com/datadirector/api/basedbtemplates
You learn that the template ID for the base DB template is 5.
You can now make an HTTP POST call that includes payload data. The payload data might be included
as application code in a Python or JavaScript application.
4 Create the resource bundle by making an HTTP POST call and specifying network settings, storage
settings, the base DB template, and other attributes.
POST https://example.aurora.com/datadirector/api/resourcebundles
{
"networkSetting": {
"instance": [{
"networkRefId": "null:Network:network-1464","ipAllocType": "DHCP"
}]
},
"name": "AuroraRB",
"minStorageAlpha": 0.8,
"baseDbTemplateId": {
"instance": [{
"templateId": 5
}]
},
"resourcePoolRefId": "null:ResourcePool:resgroup-9673",
"storageAllocs":{
"instance": [{
"datastoreRefId":"null:Datastore:datastore-3803",
"reservationSizeMb":30720,
"usageTypes":{
"instance":["data","os","log","backup"]}
}]
}
}
The response that the system returns might look as follows.
202 Accepted location: https://example.aurora.com/datadirector/api/task/57
What to do next
Create an organization.
VMware vFabric Data Director Programming Guide
18 VMware, Inc.