public class BlockVolumes extends BulkExportResources<VolumeRestRep> implements TaskResources<VolumeRestRep>
Base URL: /block/volumes
| Constructor and Description |
|---|
BlockVolumes(ViPRCoreClient parent,
RestClient client) |
| Modifier and Type | Method and Description |
|---|---|
Task<VolumeRestRep> |
activateFullCopy(java.net.URI id,
java.net.URI copyId)
Deprecated.
|
Tasks<VolumeRestRep> |
addJournalCapacity(VolumeCreate create)
Adds journal capacity
|
Task<VolumeRestRep> |
changeVirtualArray(java.net.URI id,
VirtualArrayChangeParam input)
Deprecated.
|
Tasks<VolumeRestRep> |
changeVirtualArrayForVolumes(VolumeVirtualArrayChangeParam input)
Changes the virtual array for the given block volumes.
|
Tasks<VolumeRestRep> |
changeVirtualPool(VolumeVirtualPoolChangeParam input)
Changes the virtual pool for the given block volume.
|
VolumeRestRep |
checkFullCopyProgress(java.net.URI id,
java.net.URI copyId)
Deprecated.
|
Tasks<VolumeRestRep> |
create(VolumeCreate create)
Begins creating one or more block volumes.
|
Tasks<VolumeRestRep> |
createFullCopy(java.net.URI id,
VolumeFullCopyCreateParam input)
Begins creating a full copy of the given block volume.
|
Tasks<VolumeRestRep> |
deactivate(java.util.List<java.net.URI> ids)
Begins deactivating multiple block volumes by their IDs.
|
Tasks<VolumeRestRep> |
deactivate(java.util.List<java.net.URI> ids,
VolumeDeleteTypeEnum deletionType)
Begins deactivating multiple block volumes by their IDs.
|
Task<VolumeRestRep> |
deactivate(java.net.URI id)
Begins deactivating a block volume by ID.
|
Task<VolumeRestRep> |
deactivate(java.net.URI id,
VolumeDeleteTypeEnum deletionType)
Begins deactivating a block volume by ID.
|
Tasks<VolumeRestRep> |
deactivateContinuousCopies(java.net.URI id,
CopiesParam input)
Begins deactivating a number of continuous copies for the given block volume.
|
Tasks<VolumeRestRep> |
deactivateContinuousCopies(java.net.URI id,
CopiesParam input,
VolumeDeleteTypeEnum type)
Begins deactivating a number of continuous copies for the given block volume.
|
Task<VolumeRestRep> |
detachFullCopy(java.net.URI id,
java.net.URI copyId)
Deprecated.
|
Task<VolumeRestRep> |
expand(java.net.URI id,
VolumeExpandParam input)
Begins expanding a block volume by ID.
|
Tasks<VolumeRestRep> |
failover(java.net.URI id,
CopiesParam input)
Begins initiating failover for a given block volume.
|
Tasks<VolumeRestRep> |
failoverCancel(java.net.URI id,
CopiesParam input)
Begins canceling a previously initiated failover for the given block volume.
|
Tasks<VolumeRestRep> |
failoverTest(java.net.URI id,
CopiesParam input)
Deprecated.
failover-test is being replaced by failover.
|
Tasks<VolumeRestRep> |
failoverTestCancel(java.net.URI id,
CopiesParam input)
Deprecated.
failover-test-cancel needs to be replaced by failover-cancel.
TO-DO: Add client support for failover-cancel.
|
java.util.List<VolumeRestRep> |
findByName(java.lang.String name)
Finds a volume by its name.
|
java.util.List<VolumeRestRep> |
findByWwn(java.lang.String wwn)
Finds a volume by its WWN.
|
java.util.List<VolumeRestRep> |
getByExportGroups(java.util.Collection<? extends ExportGroupRestRep> exportGroups)
Gets the list of volumes for the given export groups.
|
java.util.List<VolumeRestRep> |
getByExportGroups(java.util.Collection<? extends ExportGroupRestRep> exportGroups,
ResourceFilter<VolumeRestRep> filter)
Gets the list of volumes for the given export groups, optionally filtering the results.
|
java.util.List<BlockMirrorRestRep> |
getContinuousCopies(java.net.URI id)
Gets the list of continuous copies for the given block volume.
|
java.util.List<BlockMirrorRestRep> |
getContinuousCopies(java.net.URI id,
ResourceFilter<BlockMirrorRestRep> filter)
Gets the list of continuous copies for the given block volume, optionally filtering the results.
|
BlockMirrorRestRep |
getContinuousCopy(java.net.URI id,
java.net.URI copyId)
Gets a continuous copy for the given block volume.
|
ITLBulkRep |
getExports(BulkIdParam ids)
Gets the exports for a list of volumes.
|
java.util.List<ITLRestRep> |
getExports(java.net.URI id)
Gets the list of exports for a given block volume.
|
java.util.List<VolumeRestRep> |
getFullCopies(java.net.URI id)
Gets the full copies associated with the given block volume.
|
java.util.List<VolumeRestRep> |
getFullCopies(java.net.URI id,
ResourceFilter<VolumeRestRep> filter)
Gets the full copies associated with the given block volume, with filtering support.
|
ProtectionSetRestRep |
getProtectionSet(java.net.URI volumeId,
java.net.URI protectionSetId)
Gets a protection set for the given block volume.
|
Task<VolumeRestRep> |
getTask(java.net.URI id,
java.net.URI taskId)
Gets a single task associated with a given resource by ID.
|
Tasks<VolumeRestRep> |
getTasks(java.net.URI id)
Gets the tasks associated with a given resource by ID.
|
java.util.List<NamedRelatedResourceRep> |
listContinuousCopies(java.net.URI id)
Lists the continuous copies for the given volume.
|
java.util.List<NamedRelatedResourceRep> |
listFullCopies(java.net.URI id)
List the full copies associated with the given block volume.
|
java.util.List<NamedRelatedResourceRep> |
listMigrations(java.net.URI id)
Lists migrations for the given block volume.
|
NamedVolumesList |
listVirtualArrayChangeCandidates(java.net.URI projectId,
java.net.URI varrayId)
Lists volumes in the given project that can potentially be moved to the given virtual array.
|
java.util.List<VirtualPoolChangeRep> |
listVirtualPoolChangeCandidates(java.net.URI id)
Lists virtual pool change candidates for the given block volume.
|
Task<VolumeRestRep> |
migrate(MigrationParam input)
Deprecated.
Use the Change Virtual Pool API instead
|
Tasks<VolumeRestRep> |
pauseContinuousCopies(java.net.URI id,
CopiesParam input)
Begins pausing a number of continuous copies for a given block volume.
|
Tasks<VolumeRestRep> |
resumeContinuousCopies(java.net.URI id,
CopiesParam input)
Begins resuming a number of continuous copies for the given block volume.
|
VolumeSearchBuilder |
search()
Creates a search builder specifically for creating volume search queries.
|
Tasks<VolumeRestRep> |
startContinuousCopies(java.net.URI id,
CopiesParam input)
Begins creating a number of continuous copies for the given block volume.
|
Tasks<VolumeRestRep> |
stopContinuousCopies(java.net.URI id,
CopiesParam input)
Begins stopping a number of continuous copies for the given block volume.
|
Tasks<VolumeRestRep> |
swapContinuousCopies(java.net.URI id,
CopiesParam input)
Request to reverse the replication direction, i.e.
|
Tasks<VolumeRestRep> |
syncContinuousCopies(java.net.URI id,
CopiesParam input)
Sync continuous copies.
|
Tasks<VolumeRestRep> |
updateCopyAccessMode(java.net.URI id,
CopiesParam input)
Begins initiating access mode update for a given block volume.
|
BlockVolumes |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
BlockVolumes |
withInternal(boolean internal)
Configures the fetch operations to include internal resources.
|
getBulkExportsfindByProject, findByProject, findByProject, findByProjectgetByIds, getByRefs, listBulkIdsaddTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, updateTagsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetByIds, getByRefsaddTags, get, get, getTags, removeTags, updateTagspublic BlockVolumes(ViPRCoreClient parent, RestClient client)
public BlockVolumes withInactive(boolean inactive)
AbstractResourceswithInactive in class AbstractResources<VolumeRestRep>inactive - whether to include inactive resources.public BlockVolumes withInternal(boolean internal)
AbstractResourceswithInternal in class AbstractResources<VolumeRestRep>internal - whether to include internal resources.public Tasks<VolumeRestRep> getTasks(java.net.URI id)
TaskResourcesAPI Call: GET baseUrl/{id}/tasks
getTasks in interface TaskResources<VolumeRestRep>id - the resource ID.public Task<VolumeRestRep> getTask(java.net.URI id, java.net.URI taskId)
TaskResourcesAPI Call: GET baseUrl/{id}/tasks/{taskId}
getTask in interface TaskResources<VolumeRestRep>id - the resource ID.taskId - the task ID.public java.util.List<VolumeRestRep> findByWwn(java.lang.String wwn)
API Call: GET /block/volumes/search?wwn={wwn}
wwn - the volume WWN.public java.util.List<VolumeRestRep> findByName(java.lang.String name)
API Call: GET /block/volumes/search?name={name}
name - the volume name.public Tasks<VolumeRestRep> create(VolumeCreate create)
API Call: POST /block/volumes
create - the block volume create configuration.public Tasks<VolumeRestRep> addJournalCapacity(VolumeCreate create)
create - the block volume create configuration for journal volumes.public Task<VolumeRestRep> deactivate(java.net.URI id)
API Call: POST /block/volumes/{id}/deactivate?type=FULL
id - the ID of the block volume to deactivate.deactivate(List, VolumeDeleteTypeEnum)public Task<VolumeRestRep> deactivate(java.net.URI id, VolumeDeleteTypeEnum deletionType)
API Call: POST /block/volumes/{id}/deactivate?type={deletionType}
id - the ID of the block volume to deactivate.deletionType - FULL or VIPR_ONLYVolumeDeleteTypeEnumpublic Tasks<VolumeRestRep> deactivate(java.util.List<java.net.URI> ids)
API Call: POST /block/volumes/deactivate?type=FULL
ids - The IDs of the block volumes to deactivate.public Tasks<VolumeRestRep> deactivate(java.util.List<java.net.URI> ids, VolumeDeleteTypeEnum deletionType)
API Call: POST /block/volumes/deactivate?type={deletionType}
ids - The IDs of the block volumes to deactivate.deletionType - FULL or VIPR_ONLYVolumeDeleteTypeEnumpublic Task<VolumeRestRep> expand(java.net.URI id, VolumeExpandParam input)
API Call: POST /block/volumes/{id}/expand
id - the ID of the block volume to expand.input - the expand configuration.public java.util.List<VolumeRestRep> getByExportGroups(java.util.Collection<? extends ExportGroupRestRep> exportGroups)
exportGroups - the export groups.public java.util.List<VolumeRestRep> getByExportGroups(java.util.Collection<? extends ExportGroupRestRep> exportGroups, ResourceFilter<VolumeRestRep> filter)
exportGroups - the export groups.filter - the resource filter to apply to the results as they are returned (optional).ExportGroupRestRep.getVolumes()public java.util.List<ITLRestRep> getExports(java.net.URI id)
API Call: GET /block/volumes/{id}/exports
id - the ID of the block volume.public ITLBulkRep getExports(BulkIdParam ids)
API Call: POST /block/volumes/exports/bulk
ids - the IDs of the block volumes.public Tasks<VolumeRestRep> startContinuousCopies(java.net.URI id, CopiesParam input)
API Call: POST /block/volumes/{id}/protection/continuous-copies/start
id - the ID of the block volume.input - the configuration of the new continuous copies.public Tasks<VolumeRestRep> stopContinuousCopies(java.net.URI id, CopiesParam input)
API Call: POST /block/volumes/{id}/protection/continuous-copies/stop
id - the ID of the block volume.input - the configuration of the copies to stop.public Tasks<VolumeRestRep> pauseContinuousCopies(java.net.URI id, CopiesParam input)
API Call: POST /block/volumes/{id}/protection/continuous-copies/pause
id - the ID of the block volume.input - the copy configurations.public Tasks<VolumeRestRep> resumeContinuousCopies(java.net.URI id, CopiesParam input)
API Call: POST /block/volumes/{id}/protection/continuous-copies/resume
id - the ID of the block volume.input - the copy configurations.public Tasks<VolumeRestRep> swapContinuousCopies(java.net.URI id, CopiesParam input)
API Call: POST /block/volumes/{id}/protection/continuous-copies/swap
id - the ID of the block volume.input - the copy configurations.public java.util.List<NamedRelatedResourceRep> listContinuousCopies(java.net.URI id)
API Call: GET /block/volumes/{id}/protection/continuous-copies
id - the ID of the block volume.public BlockMirrorRestRep getContinuousCopy(java.net.URI id, java.net.URI copyId)
API Call: GET /block/volumes/{id}/protection/continuous-copies/{copyId}
id - the ID of the block volume.copyId - the ID of the continuous copy.public java.util.List<BlockMirrorRestRep> getContinuousCopies(java.net.URI id)
id - the ID of the block volume.public java.util.List<BlockMirrorRestRep> getContinuousCopies(java.net.URI id, ResourceFilter<BlockMirrorRestRep> filter)
id - the ID of the block volume.filter - the resource filter to apply to the results as they are returned (optional).public Tasks<VolumeRestRep> deactivateContinuousCopies(java.net.URI id, CopiesParam input)
API Call: POST /block/volumes/{id}/protection/continuous-copies/deactivate
id - the ID of the block volume.input - the copy configurations.public Tasks<VolumeRestRep> deactivateContinuousCopies(java.net.URI id, CopiesParam input, VolumeDeleteTypeEnum type)
API Call: POST /block/volumes/{id}/protection/continuous-copies/deactivate
id - the ID of the block volume.input - the copy configurations.type - FULL or VIPR_ONLYpublic java.util.List<NamedRelatedResourceRep> listFullCopies(java.net.URI id)
API Call: GET /block/volumes/{id}/protection/full-copies
id - the ID of the block volume.public java.util.List<VolumeRestRep> getFullCopies(java.net.URI id)
id - the ID of the block volume.listFullCopies(URI),
AbstractResources.getByRefs(Collection)public java.util.List<VolumeRestRep> getFullCopies(java.net.URI id, ResourceFilter<VolumeRestRep> filter)
id - the ID of the block volume.filter - the resource filter to apply (optional).listFullCopies(URI),
AbstractBulkResources.getByRefs(Collection, ResourceFilter)public Tasks<VolumeRestRep> createFullCopy(java.net.URI id, VolumeFullCopyCreateParam input)
API Call: POST /block/volumes/{id}/protection/full-copies
id - the ID of the block volume.input - the create configuration.@Deprecated public Task<VolumeRestRep> activateFullCopy(java.net.URI id, java.net.URI copyId)
API Call: POST /block/volumes/{id}/protection/full-copies/{copyId}/activate
id - the ID of the block volume.copyId - the ID of the full copy to activate.@Deprecated public Task<VolumeRestRep> detachFullCopy(java.net.URI id, java.net.URI copyId)
API Call: POST /block/volumes/{id}/protection/full-copies/{copyId}/detach
id - the ID of the block volume.copyId - the ID of the full copy to detach.@Deprecated public VolumeRestRep checkFullCopyProgress(java.net.URI id, java.net.URI copyId)
API Call: POST /block/volumes/{id}/protection/full-copies/{copyId}/check-progress
id - the ID of the block volume.copyId - the ID of the full copy.VolumeRestRep.FullCopyRestRep#getPercentSynced()public Tasks<VolumeRestRep> failover(java.net.URI id, CopiesParam input)
API Call: POST /block/volumes/{id}/protection/continuous-copies/failover
id - the ID of the block volume.input - the input configuration.@Deprecated public Tasks<VolumeRestRep> failoverTest(java.net.URI id, CopiesParam input)
API Call: POST /block/volumes/{id}/protection/continuous-copies/failover-test
id - the ID of the block volume.input - the input configuration.@Deprecated public Tasks<VolumeRestRep> failoverTestCancel(java.net.URI id, CopiesParam input)
API Call: POST /block/volumes/{id}/protection/continuous-copies/failover-test-cancel
id - the ID of the block volume.input - the input configuration.failoverTest(URI, CopiesParam)public Tasks<VolumeRestRep> failoverCancel(java.net.URI id, CopiesParam input)
API Call: POST /block/volumes/{id}/protection/continuous-copies/failover-cancel
id - the ID of the block volume.input - the input configuration.failoverTest(URI, CopiesParam)public Tasks<VolumeRestRep> updateCopyAccessMode(java.net.URI id, CopiesParam input)
API Call: POST /block/volumes/{id}/protection/continuous-copies/accessmode
id - the ID of the block volume.input - the input configuration.public Tasks<VolumeRestRep> syncContinuousCopies(java.net.URI id, CopiesParam input)
API Call: POST /block/volumes/{id}/protection/continuous-copies/sync
id - the ID of the block volume.input - the input configuration.public ProtectionSetRestRep getProtectionSet(java.net.URI volumeId, java.net.URI protectionSetId)
API Call: GET /block/volumes/{volumeId}/protection/protection-sets/{protectionSetId}
volumeId - the ID of the block volume.protectionSetId - the ID of the protection set.@Deprecated public Task<VolumeRestRep> migrate(MigrationParam input)
API Call: POST /block/migrations
input - the migration configuration.public java.util.List<NamedRelatedResourceRep> listMigrations(java.net.URI id)
API Call: GET /block/volumes/{id}/migrations
id - the ID of the block volume.public java.util.List<VirtualPoolChangeRep> listVirtualPoolChangeCandidates(java.net.URI id)
API Call: GET /block/volumes/{id}/vpool-change/vpool
id - the ID of the block volume.public NamedVolumesList listVirtualArrayChangeCandidates(java.net.URI projectId, java.net.URI varrayId)
projectId - the ID of the project to search for potential virtual array change volumesvarrayId - the ID of the virtual array to use as a target when searchingpublic Tasks<VolumeRestRep> changeVirtualPool(VolumeVirtualPoolChangeParam input)
API Call: POST /block/volumes/vpool-change
input - the virtual pool change configuration.@Deprecated public Task<VolumeRestRep> changeVirtualArray(java.net.URI id, VirtualArrayChangeParam input)
API Call: PUT /block/volumes/{id}/varray
id - the id of the block volume.input - the virtual array change configuration.public Tasks<VolumeRestRep> changeVirtualArrayForVolumes(VolumeVirtualArrayChangeParam input)
API Call; POST /block/volumes/change-varray
input - the VolumeVirtualArrayChangeParampublic VolumeSearchBuilder search()
search in interface Resources<VolumeRestRep>search in class ProjectResources<VolumeRestRep>