public class BlockSnapshotSessions extends ProjectResources<BlockSnapshotSessionRestRep> implements TaskResources<BlockSnapshotSessionRestRep>
Base URL: /block/snapshot-sessions
| Constructor and Description |
|---|
BlockSnapshotSessions(ViPRCoreClient parent,
RestClient client) |
| Modifier and Type | Method and Description |
|---|---|
Tasks<BlockSnapshotSessionRestRep> |
createForVolume(java.net.URI volumeId,
SnapshotSessionCreateParam param)
Begins creating a snapshot session (or snapshot sessions) of a given block volume by ID.
|
Tasks<BlockSnapshotSessionRestRep> |
deactivate(java.net.URI id,
VolumeDeleteTypeEnum type)
Begins deactivating a given block snapshot session by ID.
|
java.util.List<BlockSnapshotSessionRestRep> |
getByConsistencyGroup(java.net.URI consistencyGroupId)
Gets the block snapshot sessions for a consistency group by ID.
|
java.util.List<BlockSnapshotSessionRestRep> |
getByConsistencyGroup(java.net.URI consistencyGroupId,
ResourceFilter<BlockSnapshotSessionRestRep> filter)
Gets the block snapshot sessions for a consistency group by ID, optionally filtering the results.
|
java.util.List<BlockSnapshotSessionRestRep> |
getByVolume(java.net.URI volumeId)
Gets the block snapshot sessions for a given block volume.
|
java.util.List<BlockSnapshotSessionRestRep> |
getByVolume(java.net.URI volumeId,
ResourceFilter<BlockSnapshotSessionRestRep> filter)
Gets the block snapshot sessions for a given block volume, optionally filtering the results.
|
Task<BlockSnapshotSessionRestRep> |
getTask(java.net.URI id,
java.net.URI taskId)
Gets a single task associated with a given resource by ID.
|
Tasks<BlockSnapshotSessionRestRep> |
getTasks(java.net.URI id)
Gets the tasks associated with a given resource by ID.
|
Tasks<BlockSnapshotSessionRestRep> |
linkTargets(java.net.URI snapshotSessionId,
SnapshotSessionLinkTargetsParam linkTargetsParam)
Create and link new targets to an existing BlockSnapshotSession instance.
|
java.util.List<NamedRelatedResourceRep> |
listByConsistencyGroup(java.net.URI consistencyGroupId)
Lists the block snapshot sessions for a consistency group by ID.
|
java.util.List<NamedRelatedResourceRep> |
listByVolume(java.net.URI volumeId)
Lists the block snapshot sessions for a given block volume.
|
Tasks<BlockSnapshotSessionRestRep> |
relinkTargets(java.net.URI snapshotSessionId,
SnapshotSessionRelinkTargetsParam relinkTargetsParam)
Re-link a target to either its current snapshot session or to a different
snapshot session of the same source.
|
Task<BlockSnapshotSessionRestRep> |
restore(java.net.URI id)
Restores the data on the array snapshot point-in-time copy represented by the
BlockSnapshotSession instance with the passed id, to the snapshot session source
object.
|
Task<BlockSnapshotSessionRestRep> |
unlinkTargets(java.net.URI snapshotSessionId,
SnapshotSessionUnlinkTargetsParam unlinkTargetsParam)
Unlink target volumes from an existing BlockSnapshotSession instance and
optionally delete those target volumes.
|
BlockSnapshotSessions |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
BlockSnapshotSessions |
withInternal(boolean internal)
Configures the fetch operations to include internal resources.
|
findByProject, findByProject, findByProject, findByProject, searchgetByIds, 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 BlockSnapshotSessions(ViPRCoreClient parent, RestClient client)
public BlockSnapshotSessions withInactive(boolean inactive)
AbstractResourceswithInactive in class AbstractResources<BlockSnapshotSessionRestRep>inactive - whether to include inactive resources.public BlockSnapshotSessions withInternal(boolean internal)
AbstractResourceswithInternal in class AbstractResources<BlockSnapshotSessionRestRep>internal - whether to include internal resources.public Tasks<BlockSnapshotSessionRestRep> getTasks(java.net.URI id)
TaskResourcesAPI Call: GET baseUrl/{id}/tasks
getTasks in interface TaskResources<BlockSnapshotSessionRestRep>id - the resource ID.public Task<BlockSnapshotSessionRestRep> getTask(java.net.URI id, java.net.URI taskId)
TaskResourcesAPI Call: GET baseUrl/{id}/tasks/{taskId}
getTask in interface TaskResources<BlockSnapshotSessionRestRep>id - the resource ID.taskId - the task ID.public Tasks<BlockSnapshotSessionRestRep> createForVolume(java.net.URI volumeId, SnapshotSessionCreateParam param)
API Call: POST /block/volumes/{volumeId}/protection/snapshot-sessions
volumeId - the ID of the block volume to create a snapshot session.param - the snapshot session configuration.public java.util.List<NamedRelatedResourceRep> listByVolume(java.net.URI volumeId)
API Call: GET /block/volumes/{volumeId}/protection/snapshot-sessions
volumeId - the ID of the block volume.public java.util.List<BlockSnapshotSessionRestRep> getByVolume(java.net.URI volumeId)
volumeId - the ID of the block volume.listByVolume(URI),
AbstractResources.getByRefs(java.util.Collection)public java.util.List<BlockSnapshotSessionRestRep> getByVolume(java.net.URI volumeId, ResourceFilter<BlockSnapshotSessionRestRep> filter)
volumeId - the ID of the block volume.filter - the filter to apply (may be null, for no filtering).listByVolume(URI),
AbstractBulkResources.getByRefs(java.util.Collection, ResourceFilter)public Tasks<BlockSnapshotSessionRestRep> linkTargets(java.net.URI snapshotSessionId, SnapshotSessionLinkTargetsParam linkTargetsParam)
API Call: POST /block/snapshot-sessions/{id}/link-targets
snapshotSessionId - The URI of the BlockSnapshotSession instance to which the
new targets will be linked.linkTargetsParam - The new linked target information.public Tasks<BlockSnapshotSessionRestRep> relinkTargets(java.net.URI snapshotSessionId, SnapshotSessionRelinkTargetsParam relinkTargetsParam)
API Call: POST /block/snapshot-sessions/{id}/relink-targets
snapshotSessionId - The URI of the BlockSnapshotSession instance to which the
the targets will be relinked.relinkTargetsParam - The existing linked target information.public Task<BlockSnapshotSessionRestRep> unlinkTargets(java.net.URI snapshotSessionId, SnapshotSessionUnlinkTargetsParam unlinkTargetsParam)
API Call: POST /block/snapshot-sessions/{id}/unlink-targets
snapshotSessionId - The URI of the BlockSnapshotSession instance to which the
new targets are currently linked.unlinkTargetsParam - The linked target information for the snapshots to unlink.public Task<BlockSnapshotSessionRestRep> restore(java.net.URI id)
API Call: POST /block/snapshot-sessions/{id}/restore
id - the ID of the snapshot session to restore.public Tasks<BlockSnapshotSessionRestRep> deactivate(java.net.URI id, VolumeDeleteTypeEnum type)
API Call: POST /block/snapshot-sessions/{id}/deactivate
id - the ID of the snapshot session to deactivate.type - FULL or VIPR_ONLYpublic java.util.List<NamedRelatedResourceRep> listByConsistencyGroup(java.net.URI consistencyGroupId)
consistencyGroupId - the ID of the consistency group.public java.util.List<BlockSnapshotSessionRestRep> getByConsistencyGroup(java.net.URI consistencyGroupId)
consistencyGroupId - the ID of the consistency group.listByConsistencyGroup(URI),
AbstractResources.getByRefs(java.util.Collection)public java.util.List<BlockSnapshotSessionRestRep> getByConsistencyGroup(java.net.URI consistencyGroupId, ResourceFilter<BlockSnapshotSessionRestRep> filter)
consistencyGroupId - the ID of the consistency group.filter - the filter to apply (may be null, for no filtering).listByConsistencyGroup(URI),
AbstractBulkResources.getByRefs(java.util.Collection, ResourceFilter)