public interface DataCenterClient extends SearchableResource<DataCenter>
SearchableResource.GetByNameRequestInterceptor
Modifier and Type | Field and Description |
---|---|
static String |
DATA_CENTER_URI |
static String |
DATA_CENTER_VISUAL_CONTENT_URI |
Modifier and Type | Method and Description |
---|---|
DataCenter |
add(DataCenter resource)
Adds a resource according to the provided
resource object. |
List<VisualContent> |
getVisualContent(String resourceId)
Retrieves a
List <VisualContent > describing each rack
within the data center. |
String |
remove(String resourceId)
Removes the resource identified by the provided
resourceId . |
TaskResource |
removeByFilter(String filter,
RequestOption... options)
Removes the
DataCenter (s) matching the filter. |
DataCenter |
update(String resourceId,
DataCenter resource)
Updates the resource identified by the
resourceId according to the
provided resource object. |
getByName
static final String DATA_CENTER_URI
static final String DATA_CENTER_VISUAL_CONTENT_URI
DataCenter add(DataCenter resource)
resource
object.resource
- object containing the details of the resource that should be added.DataCenter
object containing the result of this request.DataCenter update(String resourceId, DataCenter 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 created.DataCenter
object containing the result of this request.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)
DataCenter
(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.List<VisualContent> getVisualContent(String resourceId)
List
<VisualContent
> describing each rack
within the data center.resourceId
- data center resource identifier as seen in HPE OneView.List
<VisualContent
> containing the details of each rack
within the data center.Copyright © 2017. All rights reserved.