public class VirtualDataCenters extends AbstractCoreResources<VirtualDataCenterRestRep> implements TopLevelResources<VirtualDataCenterRestRep>
Base URL: /vdc
| Constructor and Description | 
|---|
VirtualDataCenters(ViPRCoreClient parent,
                  RestClient client)  | 
| Modifier and Type | Method and Description | 
|---|---|
Task<VirtualDataCenterRestRep> | 
create(VirtualDataCenterAddParam input)
Creates a vdc. 
 | 
Task<VirtualDataCenterRestRep> | 
delete(java.net.URI id)
Deletes the given vdc by ID. 
 | 
Task<VirtualDataCenterRestRep> | 
disconnect(java.net.URI id)
Disconnects the given vdc by ID. 
 | 
java.util.List<VirtualDataCenterRestRep> | 
getAll()
 Gets all resources for this resource type. 
 | 
java.util.List<VirtualDataCenterRestRep> | 
getAll(ResourceFilter<VirtualDataCenterRestRep> filter)
 Gets all resources for this resource type. 
 | 
VirtualDataCenterSecretKeyRestRep | 
getSecretKey()
gets the secret key. 
 | 
Tasks<VirtualDataCenterRestRep> | 
getTasks(java.net.URI id)  | 
boolean | 
isCompatibleVDCVersion(java.lang.String expectedVersion)
A VDC compatibility check to see of all the VDCs in the federation are in the
 minimum expected version or not. 
 | 
boolean | 
isGeoSetup()
A check to see if the setup is geo-distributed multi-vdc setup. 
 | 
java.util.List<NamedRelatedResourceRep> | 
list()
 Lists named resources (name + ID) for this resource type. 
 | 
Task<VirtualDataCenterRestRep> | 
reconnect(java.net.URI id)
Reconnects the given vdc by ID. 
 | 
Task<VirtualDataCenterRestRep> | 
update(java.net.URI id,
      VirtualDataCenterModifyParam input)
Updates a vdc. 
 | 
VirtualDataCenters | 
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources. 
 | 
addTags, get, get, getByIds, getByIds, getByRefs, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTags, withInternalpublic VirtualDataCenters(ViPRCoreClient parent, RestClient client)
public VirtualDataCenters withInactive(boolean inactive)
AbstractResourceswithInactive in class AbstractResources<VirtualDataCenterRestRep>inactive - whether to include inactive resources.public java.util.List<NamedRelatedResourceRep> list()
TopLevelResourcesLists named resources (name + ID) for this resource type.
API Call: GET /RESOURCE_PATH
list in interface TopLevelResources<VirtualDataCenterRestRep>public Task<VirtualDataCenterRestRep> create(VirtualDataCenterAddParam input)
API Call: POST /vdc/
input - the vdc configuration.public Task<VirtualDataCenterRestRep> update(java.net.URI id, VirtualDataCenterModifyParam input)
API Call: PUT /vdc/{id}
id - the ID of the vdc to update.input - the vdc configuration.public Task<VirtualDataCenterRestRep> delete(java.net.URI id)
API Call: DELETE /vdc/{id}
id - the ID of the vdc to delete.public Task<VirtualDataCenterRestRep> reconnect(java.net.URI id)
API Call: POST /vdc/{id}/reconnect
id - the ID of the vdc to reconnect.public Task<VirtualDataCenterRestRep> disconnect(java.net.URI id)
API Call: POST /vdc/{id}/disconnect
id - the ID of the vdc to disconnect.public VirtualDataCenterSecretKeyRestRep getSecretKey()
API Call: POST /vdc/secret-key
public java.util.List<VirtualDataCenterRestRep> getAll()
TopLevelResourcesGets all resources for this resource type. This is combination of the list() call combined with a bulk query to retrieve the resources.
API Call: GET /RESOURCE_PATH
getAll in interface TopLevelResources<VirtualDataCenterRestRep>TopLevelResources.list(), 
Resources.getByRefs(java.util.Collection)public java.util.List<VirtualDataCenterRestRep> getAll(ResourceFilter<VirtualDataCenterRestRep> filter)
TopLevelResourcesGets all resources for this resource type. This is combination of the list() call combined with a bulk query to retrieve the resources. This optionally filters the results by the filter specified.
API Call: GET /RESOURCE_PATH
getAll in interface TopLevelResources<VirtualDataCenterRestRep>filter - the resource filter to apply to the results as they are returned (optional).TopLevelResources.list(), 
Resources.getByRefs(java.util.Collection, ResourceFilter)public Tasks<VirtualDataCenterRestRep> getTasks(java.net.URI id)
public boolean isCompatibleVDCVersion(java.lang.String expectedVersion)
expectedVersion - minimum expected version of all the VDCs in the federation.public boolean isGeoSetup()