public interface DataCenterApi
Modifier and Type | Method and Description |
---|---|
DataCenter |
clearDataCenter(String identifier)
Removes all components from an existing Virtual Data Center.
|
DataCenter |
createDataCenter(DataCenter.Request.CreatePayload createRequest)
Creates and saves a new, empty Virtual Data Center.
|
boolean |
deleteDataCenter(String identifier)
Deletes an Virtual Data Center.
|
List<DataCenter> |
getAllDataCenters() |
DataCenter |
getDataCenter(String identifier) |
ProvisioningState |
getDataCenterState(String identifier)
This is a lightweight function for polling the current provisioning state of the Virtual Data Center.
|
DataCenter |
updateDataCenter(DataCenter.Request.UpdatePayload updateRequest)
Updates the information associated to an existing Virtual Data Center.
|
@Named(value="datacenter:getall") List<DataCenter> getAllDataCenters()
@Named(value="datacenter:get") DataCenter getDataCenter(String identifier)
identifier
- Data Center identifiernull
if it doesn't exist.@Named(value="datacenter:getstate") ProvisioningState getDataCenterState(String identifier)
identifier
- Data Center identifier@Named(value="datacenter:create") DataCenter createDataCenter(DataCenter.Request.CreatePayload createRequest)
Note: Data center names cannot start with or contain (@, /, \, |, ‘’, ‘)
createRequest
- VDC payload containing dataCenterName, region@Named(value="datacenter:update") DataCenter updateDataCenter(DataCenter.Request.UpdatePayload updateRequest)
updateRequest
- VDC payload containing dataCenterId, and name@Named(value="datacenter:clear") DataCenter clearDataCenter(String identifier)
identifier
- Identifier of the virtual data center@Named(value="datacenter:delete") boolean deleteDataCenter(String identifier)
identifier
- Identifier of the virtual data centerCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.