public interface StorageVolumeClient
Modifier and Type | Field and Description |
---|---|
static String |
REPAIR_FILTER |
Modifier and Type | Method and Description |
---|---|
TaskResourceV2 |
createStorageVolume(RestParams params,
AddStorageVolumeV2 addStorageVolumeDto,
boolean aSync,
boolean useJsonRequest)
The module aids in creation of storage volume when provided with the
storage volume details as an AddStorageVolume object or JsonRequest.
|
TaskResourceV2 |
createStorageVolumeSnapshot(RestParams params,
String storageVolumeId,
StorageVolumeSnapshot snapshot,
boolean aSync)
Creates a snapshot for the storage volume specified by the resource identifier.
|
TaskResourceV2 |
deleteStorageVolume(RestParams params,
String resourceId,
boolean aSync)
The module aids in deleting a storage volume for the specified storage volume
resource identifier.
|
TaskResourceV2 |
deleteStorageVolumeSnapshot(RestParams params,
String storageVolumeId,
String snapshotId,
boolean aSync)
Removes a storage volume snapshot from HPE OneView and storage system.
|
StorageVolumeCollection |
getAllStorageVolumes(RestParams params)
The module aids in fetching the storage volume details for all the
storage volumes found under the current HPE OneView.
|
StorageVolumeSnapshotCollection |
getAllStorageVolumeSnapshots(RestParams params,
String storageVolumeId)
Returns all the snapshots available of an existing storage volume.
|
AttachableStorageVolumeCollection |
getAttachableVolumes(RestParams params)
This method aids in fetching the attachable volumes that are connected to the
specified networks based on the storage system port's expected network connectivity.
|
ExtraStorageVolumeCollection |
getExtraManagedStorageVolumePaths(RestParams params)
Returns the list of extra managed storage volume paths.
|
String |
getId(RestParams params,
String name)
The module aids in fetching the storage volume resource identifier for the
storage volume name as specified in HPE OneView.
|
StorageVolumeV2 |
getStorageVolume(RestParams params,
String resourceId)
The module aids in fetching the storage volume details for the specified
storage volume resource identifier.
|
StorageVolumeV2 |
getStorageVolumeByName(RestParams params,
String name)
The module aids in fetching the storage volume details for the
storage volume name as specified in HPE OneView.
|
StorageVolumeSnapshot |
getStorageVolumeSnapshot(RestParams params,
String storageVolumeId,
String snapshotId)
Returns a snapshot of a storage volume.
|
TaskResourceV2 |
repairExtraManagedStorageVolumePath(RestParams params,
ExtraStorageVolumeRepair repair,
boolean aSync)
Removes extra presentations from a specified storage volume on the storage system.
|
String |
updateStorageVolume(RestParams params,
String resourceId,
StorageVolumeV2 storageVolumeDto,
boolean useJsonRequest)
The module takes in an StorageVolumeV2 object or JsonRequest and updates
the existing storage volume based on the resource identifier.
|
static final String REPAIR_FILTER
StorageVolumeV2 getStorageVolume(RestParams params, String resourceId)
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage volume as seen in HPE OneView.StorageVolumeV2
containing the storage volume details.StorageVolumeCollection getAllStorageVolumes(RestParams params)
params
- The RestParams
is a structure containing the connection details.StorageVolumeCollection
containing a collection of storage volume details.StorageVolumeV2 getStorageVolumeByName(RestParams params, String name)
params
- The RestParams
is a structure containing the connection details.name
- The name is the storage volume name as seen in HPE OneView.StorageVolumeV2
containing the storage volume details.TaskResourceV2 createStorageVolume(RestParams params, AddStorageVolumeV2 addStorageVolumeDto, boolean aSync, boolean useJsonRequest)
params
- The RestParams
is a structure containing the connection details.addStorageVolumeDto
- Object containing the storage volume details, used to create a storage volume.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of AddStorageVolumeV2 object which
takes in a String containing new storage volume details, which
is converted to a StorageVolume object using adaptor and
processed.TaskResourceV2
containing the task status for the process.String updateStorageVolume(RestParams params, String resourceId, StorageVolumeV2 storageVolumeDto, boolean useJsonRequest)
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage volume as seen in HPE OneView.storageVolumeDto
- Object containing the storage volume details, used to update a storage volume.useJsonRequest
- The JsonRequest body is part of StorageVolumeV2 object which
takes in a String containing the update to be made, which is
converted to StorageVolumeV2 object using an adaptor and processed.Updated
if successful.TaskResourceV2 deleteStorageVolume(RestParams params, String resourceId, boolean aSync)
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage volume as seen in HPE OneView.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.AttachableStorageVolumeCollection getAttachableVolumes(RestParams params)
params
- The RestParams
is a structure containing the connection details.AttachableStorageVolumeCollection
containing the attached storage
volume details.StorageVolumeSnapshot getStorageVolumeSnapshot(RestParams params, String storageVolumeId, String snapshotId)
params
- structure containing the connection details.storageVolumeId
- resource identifier for a storage volume as seen in HPE OneView.snapshotId
- resource identifier for the snapshot of the storage volume.StorageVolumeSnapshot
or null
in case the parameter snapshotId
does not match any existing storage volume snapshot.StorageVolumeSnapshotCollection getAllStorageVolumeSnapshots(RestParams params, String storageVolumeId)
params
- structure containing the connection details.storageVolumeId
- resource identifier for the storage volume as seen in HPE OneView.StorageVolumeSnapshotCollection
containing all snapshots for
the storage volume.TaskResourceV2 createStorageVolumeSnapshot(RestParams params, String storageVolumeId, StorageVolumeSnapshot snapshot, boolean aSync)
params
- structure containing the connection details.storageVolumeId
- resource identifier for a storage volume as seen in HPE OneView.snapshot
- StorageVolumeSnapshot
object containing the data to be used during
the snapshot creation.aSync
- flag input to process request asynchronously or synchronously.TaskResourceV2
which returns the task status for the process.TaskResourceV2 deleteStorageVolumeSnapshot(RestParams params, String storageVolumeId, String snapshotId, boolean aSync)
params
- structure containing the connection details.storageVolumeId
- resource identifier for a storage volume as seen in HPE OneView.snapshotId
- resource identifier for the snapshot of the storage volume.aSync
- flag input to process request asynchronously or synchronously.TaskResourceV2
which returns the task status for the process.ExtraStorageVolumeCollection getExtraManagedStorageVolumePaths(RestParams params)
params
- structure containing the connection details.ExtraStorageVolumeCollection
containing the resources found.TaskResourceV2 repairExtraManagedStorageVolumePath(RestParams params, ExtraStorageVolumeRepair repair, boolean aSync)
params
- structure containing the connection details.repair
- information about the extra paths to delete.aSync
- flag input to process request asynchronously or synchronously.TaskResourceV2
which returns the task status for the process.String getId(RestParams params, String name)
params
- The RestParams
is a structure containing the connection details.name
- The name is the storage volume name as seen in HPE OneView.Copyright © 2016. All rights reserved.