2.0
Table Of Contents
- VMware vFabric Data Director API Programming Guide
The third call retrieves network information.
GET https://example.aurora.com\
/datadirector/api/resourcepool\
/null:ResourcePool:resgroup-9680\
/networks
The final call in the sequence contains a 'payload' of data that you submit to a web service, with the information
that we retrieved with our previous queries. This 'payload' is often included as application code in an
application such as Python or JavaScript.
POST https://example.aurora.com\
/datadirector/api/sysresourcebundle
{
"networkRefId": "null:Network:network-1464",
"backupDataStoreRefId": "null:Datastore:datastore-3803",
"dataDataStoreRefId": "null:Datastore:datastore-3803",
"backupStorageSize": 0,
"dataStorageSize": 151200,
"resourcePoolRefId": "null:ResourcePool:resgroup-9680",
"ipAllocType": "DHCP"
}
The following is an example of the corresponding response.
202 Accepted
location: https://example.aurora.com\
/datadirector/api/task/55
Converting a Base DBVM to a Base DB Template
Use this call to convert a Base DBVM to a Base DB Template.
The call in this example uses an iterative process that is common in REST APIs, where you make a call to
retrieve data that you will need in the next call.
The first call retrieves the ID of the base DBVMs.
GET https://example.aurora.com\
/datadirector/api/basedbvms
From this call, we can see the data for the base dbvms. We decide to use the base DBVM where the ID is 2.
The final call in the sequence contains a 'payload' of data that you submit to a web service. This is often included
as application code in an application such as Python or JavaScript.
POST https://example.aurora.com\
/datadirector/api/basedbtemplates
{
"keepBaseDbvm": true,
"baseDbvmId": 2,
"name": "vpostgress_template"
}
The following is an example of the corresponding response.
202 Accepted
location: https://example.aurora.com\
/datadirector/api/task/56
VMware vFabric Data Director API Programming Guide
18 VMware, Inc.