public interface RackClient extends SearchableResource<Rack>
SearchableResource.GetByNameRequestInterceptor
Modifier and Type | Field and Description |
---|---|
static String |
RACK_DEVICE_TOPOLOGY |
static String |
RACK_URI |
Modifier and Type | Method and Description |
---|---|
Rack |
add(Rack resource)
Adds a resource according to the provided
resource object. |
TopologyInformation |
getDeviceTopology(String resourceId)
Retrieves the topology information for the rack resource identified
by the provided
resourceId . |
String |
remove(String resourceId)
Removes the resource identified by the provided
resourceId . |
TaskResource |
removeByFilter(String filter,
RequestOption... options)
Removes the
Rack (s) matching the filter. |
Rack |
update(String resourceId,
Rack resource)
Updates the resource identified by the
resourceId according to the
provided resource object. |
getByName
static final String RACK_DEVICE_TOPOLOGY
static final String RACK_URI
Rack add(Rack resource)
resource
object.resource
- object containing the details of the resource that should be added.Rack
.Rack update(String resourceId, Rack resource)
resourceId
according to the
provided resource
object.resourceId
- resource identifier as seen in HPE OneView.resource
- object containing the details of the resource that should be updated.Rack
.String remove(String resourceId)
resourceId
.resourceId
- resource identifier as seen in HPE OneView.String
containing the result of this request.TaskResource removeByFilter(String filter, RequestOption... options)
Rack
(s) matching the filter. A filter is required
to identify the set of resources to be removed. The actual deletion will proceed
asynchronously, although the method can process the request asynchronously or
synchronously based on the TaskTimeout
specified.filter
- a general filter string that narrows the list of resources.options
- varargs
of RequestOption
, which can be used to specify
some request options.TaskResource
containing the task status for the process.TopologyInformation getDeviceTopology(String resourceId)
resourceId
.resourceId
- rack resource identifier as seen in HPE OneView.TopologyInformation
containing the topology information for the rack.Copyright © 2017. All rights reserved.