public class VcenterDataCenters extends AbstractCoreBulkResources<VcenterDataCenterRestRep>
Base URL: /compute/vcenter-data-centers
Constructor and Description |
---|
VcenterDataCenters(ViPRCoreClient parent,
RestClient client) |
Modifier and Type | Method and Description |
---|---|
VcenterDataCenterRestRep |
create(java.net.URI vcenterId,
VcenterDataCenterCreate input)
Creates a datacenter within the given vCenter by ID.
|
Task<VcenterDataCenterRestRep> |
createVcenterCluster(java.net.URI dataCenterId,
VcenterClusterParam clusterParam)
Create a vCenter cluster in a datacenter.
|
Task<VcenterDataCenterRestRep> |
deactivate(java.net.URI id)
Deactivates the given datacenter by ID.
|
Task<VcenterDataCenterRestRep> |
deactivate(java.net.URI id,
boolean detachStorage)
Deactivates a data center.
|
Task<VcenterDataCenterRestRep> |
detachStorage(java.net.URI id)
Detaches storage from a data center.
|
java.util.List<VcenterDataCenterRestRep> |
getByVcenter(java.net.URI vcenterId)
Gets the list of datacenters for the given vCenter by ID.
|
java.util.List<VcenterDataCenterRestRep> |
getByVcenter(java.net.URI vcenterId,
java.net.URI tenantId) |
java.util.List<NamedRelatedResourceRep> |
listByVcenter(java.net.URI vcenterId,
java.net.URI tenantId)
Lists the datacenters filtered by the tenants for the given vCenter by ID.
|
VcenterDataCenterRestRep |
update(java.net.URI id,
VcenterDataCenterUpdate input)
Updates the given datacenter by ID.
|
Task<VcenterDataCenterRestRep> |
updateVcenterCluster(java.net.URI dataCenterId,
VcenterClusterParam clusterParam)
Update and existing vCenter cluster.
|
VcenterDataCenters |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
VcenterDataCenters |
withInternal(boolean internal)
Configures the fetch operations to include internal resources.
|
getByIds, getByRefs, listBulkIds
addTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTags
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getByIds, getByRefs
addTags, get, get, getTags, removeTags, search, updateTags
public VcenterDataCenters(ViPRCoreClient parent, RestClient client)
public VcenterDataCenters withInactive(boolean inactive)
AbstractResources
withInactive
in class AbstractResources<VcenterDataCenterRestRep>
inactive
- whether to include inactive resources.public VcenterDataCenters withInternal(boolean internal)
AbstractResources
withInternal
in class AbstractResources<VcenterDataCenterRestRep>
internal
- whether to include internal resources.public java.util.List<NamedRelatedResourceRep> listByVcenter(java.net.URI vcenterId, java.net.URI tenantId)
API Call: GET /compute/vcenters/{vcenterId}/vcenter-data-centers?tenant={tenantId}
vcenterId
- the ID of the vCenter.public java.util.List<VcenterDataCenterRestRep> getByVcenter(java.net.URI vcenterId)
vcenterId
- the ID of the vCenter.public java.util.List<VcenterDataCenterRestRep> getByVcenter(java.net.URI vcenterId, java.net.URI tenantId)
public VcenterDataCenterRestRep create(java.net.URI vcenterId, VcenterDataCenterCreate input)
API Call: POST /compute/vcenters/{vcenterId}/vcenter-data-centers
vcenterId
- the ID of the vCenter.input
- the create configuration.public VcenterDataCenterRestRep update(java.net.URI id, VcenterDataCenterUpdate input)
API Call: PUT /compute/vcenter-data-centers/{id}
id
- the ID of the datacenter to update.input
- the update configuration.public Task<VcenterDataCenterRestRep> deactivate(java.net.URI id)
API Call: POST /compute/vcenter-data-centers/{id}/deactivate
id
- the ID of the datacenter to deactivate.public Task<VcenterDataCenterRestRep> deactivate(java.net.URI id, boolean detachStorage)
API Call: POST /compute/vcenter-data-centers/{id}/deactivate?detach-storage={detachStorage}
id
- the ID of the data center to deactivate.detachStorage
- if true, will first detach storage.public Task<VcenterDataCenterRestRep> detachStorage(java.net.URI id)
API Call: POST /compute/vcenter-data-centers/{id}/detach-storage
id
- the ID of the data center.public Task<VcenterDataCenterRestRep> createVcenterCluster(java.net.URI dataCenterId, VcenterClusterParam clusterParam)
API Call: POST /compute/vcenter-data-centers/{id}/create-vcenter-cluster
dataCenterId
- the id of the data center.clusterParam
- VcenterClusterParam id of the selected clusterpublic Task<VcenterDataCenterRestRep> updateVcenterCluster(java.net.URI dataCenterId, VcenterClusterParam clusterParam)
API Call: PUT /compute/vcenter-data-centers/{id}/update-vcenter-cluster
dataCenterId
- the id of the data center.clusterParam
- VcenterClusterParam id of the selected cluster