public class ComputeElements extends AbstractCoreBulkResources<ComputeElementRestRep> implements TopLevelResources<ComputeElementRestRep>
Base URL: /vdc/compute-elements
| Constructor and Description |
|---|
ComputeElements(ViPRCoreClient parent,
RestClient client) |
| Modifier and Type | Method and Description |
|---|---|
ComputeElementRestRep |
deregister(java.net.URI id)
Deregisters a compute element.
|
java.util.List<ComputeElementRestRep> |
getAll()
Gets all compute elements.
|
java.util.List<ComputeElementRestRep> |
getAll(ResourceFilter<ComputeElementRestRep> filter)
Gets all compute elements.
|
java.util.List<NamedRelatedResourceRep> |
list()
Lists all compute elements.
|
ComputeElementRestRep |
rediscover(java.net.URI id)
Rediscover a compute element.
|
ComputeElementRestRep |
register(java.net.URI computeElementId)
Registers a compute element with the given compute system.
|
ComputeElements |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
getByIds, getByRefs, listBulkIdsaddTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTags, withInternalequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetByIds, getByRefsaddTags, get, get, getTags, removeTags, search, updateTagspublic ComputeElements(ViPRCoreClient parent, RestClient client)
public ComputeElements withInactive(boolean inactive)
AbstractResourceswithInactive in class AbstractResources<ComputeElementRestRep>inactive - whether to include inactive resources.public java.util.List<NamedRelatedResourceRep> list()
API Call: GET /vdc/compute-elements
list in interface TopLevelResources<ComputeElementRestRep>public java.util.List<ComputeElementRestRep> getAll()
getAll in interface TopLevelResources<ComputeElementRestRep>TopLevelResources.list(),
Resources.getByRefs(java.util.Collection)public java.util.List<ComputeElementRestRep> getAll(ResourceFilter<ComputeElementRestRep> filter)
getAll in interface TopLevelResources<ComputeElementRestRep>filter - the resource filter to apply to the results as they are returned (optional).TopLevelResources.list(),
Resources.getByRefs(java.util.Collection, ResourceFilter)public ComputeElementRestRep rediscover(java.net.URI id)
API Call: POST /vdc/compute-elements/{id}/discover
id - the ID of the compute element.public ComputeElementRestRep register(java.net.URI computeElementId)
API Call: POST /vdc/compute-systems/{computeSystemId}/compute-elements/{computeElementId}/register
computeElementId - the ID of the compute element.public ComputeElementRestRep deregister(java.net.URI id)
API Call: POST /vdc/compute-elements/{id}/deregister
id - the ID of the compute element.