public class ComputeSystems extends AbstractCoreBulkResources<ComputeSystemRestRep> implements TopLevelResources<ComputeSystemRestRep>, TaskResources<ComputeSystemRestRep>
Base URL: /vdc/compute-systems
| Constructor and Description |
|---|
ComputeSystems(ViPRCoreClient parent,
RestClient client) |
| Modifier and Type | Method and Description |
|---|---|
Task<ComputeSystemRestRep> |
create(ComputeSystemCreate input)
Begins creating a compute system.
|
Task<ComputeSystemRestRep> |
deactivate(java.net.URI id)
Begins deactivating the given compute system by ID.
|
ComputeSystemRestRep |
deregister(java.net.URI id)
De-registers the given storage system by ID.
|
Task<ComputeSystemRestRep> |
discover(java.net.URI id)
Begins discovery on the given compute system.
|
Tasks<ComputeSystemRestRep> |
discoverAll()
Begins discovery on all compute systems.
|
java.util.List<ComputeSystemRestRep> |
getAll()
Gets the list of all compute systems.
|
java.util.List<ComputeSystemRestRep> |
getAll(ResourceFilter<ComputeSystemRestRep> filter)
Gets the list of all compute systems, optionally filtering the results.
|
java.util.List<ComputeElementRestRep> |
getComputeElements(java.net.URI id)
Gets the list of Compute Elements in the given Compute System.
|
Task<ComputeSystemRestRep> |
getTask(java.net.URI id,
java.net.URI taskId)
Gets a single task associated with a given resource by ID.
|
Tasks<ComputeSystemRestRep> |
getTasks(java.net.URI id)
Gets the tasks associated with a given resource by ID.
|
java.util.List<NamedRelatedResourceRep> |
list()
Lists all compute systems.
|
ComputeSystemRestRep |
register(java.net.URI id)
Registers the given storage system by ID.
|
Task<ComputeSystemRestRep> |
update(java.net.URI id,
ComputeSystemUpdate input)
Begins updating the given compute system by ID.
|
ComputeSystems |
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 ComputeSystems(ViPRCoreClient parent, RestClient client)
public ComputeSystems withInactive(boolean inactive)
AbstractResourceswithInactive in class AbstractResources<ComputeSystemRestRep>inactive - whether to include inactive resources.public Tasks<ComputeSystemRestRep> getTasks(java.net.URI id)
TaskResourcesAPI Call: GET baseUrl/{id}/tasks
getTasks in interface TaskResources<ComputeSystemRestRep>id - the resource ID.public Task<ComputeSystemRestRep> getTask(java.net.URI id, java.net.URI taskId)
TaskResourcesAPI Call: GET baseUrl/{id}/tasks/{taskId}
getTask in interface TaskResources<ComputeSystemRestRep>id - the resource ID.taskId - the task ID.public java.util.List<NamedRelatedResourceRep> list()
API Call: GET /vdc/compute-systems
list in interface TopLevelResources<ComputeSystemRestRep>public java.util.List<ComputeSystemRestRep> getAll()
getAll in interface TopLevelResources<ComputeSystemRestRep>TopLevelResources.list(),
Resources.getByRefs(java.util.Collection)public java.util.List<ComputeSystemRestRep> getAll(ResourceFilter<ComputeSystemRestRep> filter)
getAll in interface TopLevelResources<ComputeSystemRestRep>filter - the resource filter to apply to the results as they are returned (optional).TopLevelResources.list(),
Resources.getByRefs(java.util.Collection, ResourceFilter)public Task<ComputeSystemRestRep> create(ComputeSystemCreate input)
API Call: POST /vdc/compute-systems
input - the create configuration.public Task<ComputeSystemRestRep> update(java.net.URI id, ComputeSystemUpdate input)
API Call: PUT /vdc/compute-systems/{id}
id - the ID of the compute system.input - the update configuration.public Task<ComputeSystemRestRep> deactivate(java.net.URI id)
API Call: POST /vdc/compute-systems/{id}/deactivate
id - the ID of the compute system.public Tasks<ComputeSystemRestRep> discoverAll()
API Call: POST /vdc/compute-systems/discover
public Task<ComputeSystemRestRep> discover(java.net.URI id)
API Call: POST /vdc/compute-systems/{id}/discover
id - the ID of the compute system.public ComputeSystemRestRep register(java.net.URI id)
API Call: POST /vdc/storage-systems/{id}/register
id - the ID of the storage system.public ComputeSystemRestRep deregister(java.net.URI id)
API Call: POST /vdc/storage-systems/{id}/deregister
id - the ID of the storage system.public java.util.List<ComputeElementRestRep> getComputeElements(java.net.URI id)
API Call: GET /vdc/compute-systems/{id}/compute-elements
id - the ID of the compute system.