public interface DataCenterClient
Modifier and Type | Method and Description |
---|---|
DataCenter |
addDataCenter(RestParams params,
DataCenter dataCenter)
Adds a data center according to the provided
DataCenter object. |
ResourceCollection<DataCenter> |
getAllDataCenters(RestParams params)
Retrieves a
ResourceCollection <DataCenter > containing details
for all the available data centers found under the current HPE OneView. |
DataCenter |
getDataCenter(RestParams params,
String resourceId)
Retrieves the
DataCenter details for the specified
data center. |
DataCenter |
getDataCenterByName(RestParams params,
String name)
Retrieves the
DataCenter details for the specified
data center identified by name. |
String |
getId(RestParams params,
String name)
Retrieves the data center resource identifier for the specified
data center identified by name.
|
List<VisualContent> |
getVisualContent(RestParams params,
String resourceId)
Retrieves a
List <VisualContent > describing each rack
within the data center. |
String |
removeDataCenter(RestParams params,
String resourceId)
Removes the
DataCenter identified by the given resource identifier. |
TaskResourceV2 |
removeDataCenterByFilter(RestParams params,
String filter,
boolean aSync)
Removes the
DataCenter (s) matching the filter. |
DataCenter |
updateDataCenter(RestParams params,
String resourceId,
DataCenter dataCenter)
Updates a
DataCenter identified by the given resource identifier. |
DataCenter getDataCenter(RestParams params, String resourceId)
DataCenter
details for the specified
data center.params
- structure containing the connection details.resourceId
- data center resource identifier as seen in HPE OneView.DataCenter
object containing the details.ResourceCollection<DataCenter> getAllDataCenters(RestParams params)
ResourceCollection
<DataCenter
> containing details
for all the available data centers found under the current HPE OneView.params
- structure containing the connection details.ResourceCollection
<DataCenter
> containing
the details for all found data centers.DataCenter getDataCenterByName(RestParams params, String name)
DataCenter
details for the specified
data center identified by name.params
- structure containing the connection details.name
- data center name as seen in HPE OneView.DataCenter
object containing the details.DataCenter addDataCenter(RestParams params, DataCenter dataCenter)
DataCenter
object.params
- structure containing the connection details.dataCenter
- object containing the data center details.DataCenter
containing the added data center.DataCenter updateDataCenter(RestParams params, String resourceId, DataCenter dataCenter)
DataCenter
identified by the given resource identifier.params
- structure containing the connection details.resourceId
- data center resource identifier as seen in HPE OneView.dataCenter
- object containing the data center details.DataCenter
containing the data center updated.String removeDataCenter(RestParams params, String resourceId)
DataCenter
identified by the given resource identifier.params
- structure containing the connection details.resourceId
- data center resource identifier as seen in HPE OneView.TaskResourceV2 removeDataCenterByFilter(RestParams params, String filter, boolean aSync)
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 aSync flag input.params
- structure containing the connection details.filter
- A general filter/query string that narrows the list of resources.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.List<VisualContent> getVisualContent(RestParams params, String resourceId)
List
<VisualContent
> describing each rack
within the data center.params
- structure containing the connection details.resourceId
- data center resource identifier as seen in HPE OneView.List
<VisualContent
> containing the details of each rack
within the data center.String getId(RestParams params, String name)
params
- structure containing the connection details.name
- data center name as seen in HPE OneView.Copyright © 2016. All rights reserved.