Interface Volumes
-
Method Summary
Modifier and TypeMethodDescriptionvoid
authorizeReplication
(String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body) Authorize source volume replicationvoid
authorizeReplication
(String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body, com.azure.core.util.Context context) Authorize source volume replicationvoid
breakReplication
(String resourceGroupName, String accountName, String poolName, String volumeName) Break volume replicationvoid
breakReplication
(String resourceGroupName, String accountName, String poolName, String volumeName, BreakReplicationRequest body) Break volume replicationvoid
breakReplication
(String resourceGroupName, String accountName, String poolName, String volumeName, BreakReplicationRequest body, com.azure.core.util.Context context) Break volume replicationBegins definition for a new Volume resource.void
Delete a volumevoid
delete
(String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete) Delete a volumevoid
delete
(String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete, com.azure.core.util.Context context) Delete a volumevoid
deleteById
(String id) Delete a volumevoid
deleteByIdWithResponse
(String id, Boolean forceDelete, com.azure.core.util.Context context) Delete a volumevoid
deleteReplication
(String resourceGroupName, String accountName, String poolName, String volumeName) Delete volume replicationvoid
deleteReplication
(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Delete volume replicationvoid
finalizeRelocation
(String resourceGroupName, String accountName, String poolName, String volumeName) Finalize volume relocationvoid
finalizeRelocation
(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Finalize volume relocationDescribe a volumeDescribe a volumecom.azure.core.http.rest.Response<Volume>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Describe a volumecom.azure.core.http.rest.Response<Volume>
getWithResponse
(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Describe a volumecom.azure.core.http.rest.PagedIterable<Volume>
Describe all volumescom.azure.core.http.rest.PagedIterable<Volume>
list
(String resourceGroupName, String accountName, String poolName, com.azure.core.util.Context context) Describe all volumescom.azure.core.http.rest.PagedIterable<Replication>
listReplications
(String resourceGroupName, String accountName, String poolName, String volumeName) List replications for volumecom.azure.core.http.rest.PagedIterable<Replication>
listReplications
(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) List replications for volumevoid
poolChange
(String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body) Change pool for volumevoid
poolChange
(String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body, com.azure.core.util.Context context) Change pool for volumevoid
reestablishReplication
(String resourceGroupName, String accountName, String poolName, String volumeName, ReestablishReplicationRequest body) Re-establish volume replicationvoid
reestablishReplication
(String resourceGroupName, String accountName, String poolName, String volumeName, ReestablishReplicationRequest body, com.azure.core.util.Context context) Re-establish volume replicationvoid
reInitializeReplication
(String resourceGroupName, String accountName, String poolName, String volumeName) ReInitialize volume replicationvoid
reInitializeReplication
(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) ReInitialize volume replicationvoid
Relocate volumevoid
relocate
(String resourceGroupName, String accountName, String poolName, String volumeName, RelocateVolumeRequest body) Relocate volumevoid
relocate
(String resourceGroupName, String accountName, String poolName, String volumeName, RelocateVolumeRequest body, com.azure.core.util.Context context) Relocate volumereplicationStatus
(String resourceGroupName, String accountName, String poolName, String volumeName) Get volume replication statuscom.azure.core.http.rest.Response<ReplicationStatus>
replicationStatusWithResponse
(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Get volume replication statusvoid
resetCifsPassword
(String resourceGroupName, String accountName, String poolName, String volumeName) Reset cifs passwordvoid
resetCifsPassword
(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Reset cifs passwordvoid
resyncReplication
(String resourceGroupName, String accountName, String poolName, String volumeName) Resync volume replicationvoid
resyncReplication
(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Resync volume replicationvoid
revert
(String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body) Revert a volume to one of its snapshotsvoid
revert
(String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body, com.azure.core.util.Context context) Revert a volume to one of its snapshotsvoid
revertRelocation
(String resourceGroupName, String accountName, String poolName, String volumeName) Revert volume relocationvoid
revertRelocation
(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Revert volume relocation
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<Volume> list(String resourceGroupName, String accountName, String poolName) Describe all volumesList all volumes within the capacity pool.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.- Returns:
- list of volume resources as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<Volume> list(String resourceGroupName, String accountName, String poolName, com.azure.core.util.Context context) Describe all volumesList all volumes within the capacity pool.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.context
- The context to associate with this operation.- Returns:
- list of volume resources as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Describe a volumeGet the details of the specified volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Returns:
- the details of the specified volume.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<Volume> getWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Describe a volumeGet the details of the specified volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.context
- The context to associate with this operation.- Returns:
- the details of the specified volume along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete) Delete a volumeDelete the specified volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.forceDelete
- An option to force delete the volume. Will cleanup resources connected to the particular volume.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete a volumeDelete the specified volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete, com.azure.core.util.Context context) Delete a volumeDelete the specified volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.forceDelete
- An option to force delete the volume. Will cleanup resources connected to the particular volume.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
revert
void revert(String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body) Revert a volume to one of its snapshotsRevert a volume to the snapshot specified in the body.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.body
- Object for snapshot to revert supplied in the body of the operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
revert
void revert(String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body, com.azure.core.util.Context context) Revert a volume to one of its snapshotsRevert a volume to the snapshot specified in the body.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.body
- Object for snapshot to revert supplied in the body of the operation.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
resetCifsPassword
void resetCifsPassword(String resourceGroupName, String accountName, String poolName, String volumeName) Reset cifs passwordReset cifs password from volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
resetCifsPassword
void resetCifsPassword(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Reset cifs passwordReset cifs password from volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
breakReplication
void breakReplication(String resourceGroupName, String accountName, String poolName, String volumeName, BreakReplicationRequest body) Break volume replicationBreak the replication connection on the destination volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.body
- Optional body to force break the replication.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
breakReplication
void breakReplication(String resourceGroupName, String accountName, String poolName, String volumeName) Break volume replicationBreak the replication connection on the destination volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
breakReplication
void breakReplication(String resourceGroupName, String accountName, String poolName, String volumeName, BreakReplicationRequest body, com.azure.core.util.Context context) Break volume replicationBreak the replication connection on the destination volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.body
- Optional body to force break the replication.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
reestablishReplication
void reestablishReplication(String resourceGroupName, String accountName, String poolName, String volumeName, ReestablishReplicationRequest body) Re-establish volume replicationRe-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.body
- body for the id of the source volume.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
reestablishReplication
void reestablishReplication(String resourceGroupName, String accountName, String poolName, String volumeName, ReestablishReplicationRequest body, com.azure.core.util.Context context) Re-establish volume replicationRe-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.body
- body for the id of the source volume.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
replicationStatus
ReplicationStatus replicationStatus(String resourceGroupName, String accountName, String poolName, String volumeName) Get volume replication statusGet the status of the replication.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Returns:
- the status of the replication.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
replicationStatusWithResponse
com.azure.core.http.rest.Response<ReplicationStatus> replicationStatusWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Get volume replication statusGet the status of the replication.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.context
- The context to associate with this operation.- Returns:
- the status of the replication along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listReplications
com.azure.core.http.rest.PagedIterable<Replication> listReplications(String resourceGroupName, String accountName, String poolName, String volumeName) List replications for volumeList all replications for a specified volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Returns:
- list Replications as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listReplications
com.azure.core.http.rest.PagedIterable<Replication> listReplications(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) List replications for volumeList all replications for a specified volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.context
- The context to associate with this operation.- Returns:
- list Replications as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
resyncReplication
void resyncReplication(String resourceGroupName, String accountName, String poolName, String volumeName) Resync volume replicationResync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
resyncReplication
void resyncReplication(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Resync volume replicationResync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteReplication
void deleteReplication(String resourceGroupName, String accountName, String poolName, String volumeName) Delete volume replicationDelete the replication connection on the destination volume, and send release to the source replication.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteReplication
void deleteReplication(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Delete volume replicationDelete the replication connection on the destination volume, and send release to the source replication.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
authorizeReplication
void authorizeReplication(String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body) Authorize source volume replicationAuthorize the replication connection on the source volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.body
- Authorize request object supplied in the body of the operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
authorizeReplication
void authorizeReplication(String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body, com.azure.core.util.Context context) Authorize source volume replicationAuthorize the replication connection on the source volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.body
- Authorize request object supplied in the body of the operation.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
reInitializeReplication
void reInitializeReplication(String resourceGroupName, String accountName, String poolName, String volumeName) ReInitialize volume replicationRe-Initializes the replication connection on the destination volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
reInitializeReplication
void reInitializeReplication(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) ReInitialize volume replicationRe-Initializes the replication connection on the destination volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
poolChange
void poolChange(String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body) Change pool for volumeMoves volume to another pool.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.body
- Move volume to the pool supplied in the body of the operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
poolChange
void poolChange(String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body, com.azure.core.util.Context context) Change pool for volumeMoves volume to another pool.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.body
- Move volume to the pool supplied in the body of the operation.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
relocate
void relocate(String resourceGroupName, String accountName, String poolName, String volumeName, RelocateVolumeRequest body) Relocate volumeRelocates volume to a new stamp.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.body
- Relocate volume request.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
relocate
Relocate volumeRelocates volume to a new stamp.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
relocate
void relocate(String resourceGroupName, String accountName, String poolName, String volumeName, RelocateVolumeRequest body, com.azure.core.util.Context context) Relocate volumeRelocates volume to a new stamp.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.body
- Relocate volume request.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
finalizeRelocation
void finalizeRelocation(String resourceGroupName, String accountName, String poolName, String volumeName) Finalize volume relocationFinalizes the relocation of the volume and cleans up the old volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
finalizeRelocation
void finalizeRelocation(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Finalize volume relocationFinalizes the relocation of the volume and cleans up the old volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
revertRelocation
void revertRelocation(String resourceGroupName, String accountName, String poolName, String volumeName) Revert volume relocationReverts the volume relocation process, cleans up the new volume and starts using the former-existing volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
revertRelocation
void revertRelocation(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Revert volume relocationReverts the volume relocation process, cleans up the new volume and starts using the former-existing volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Describe a volumeGet the details of the specified volume.
- Parameters:
id
- the resource ID.- Returns:
- the details of the specified volume along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<Volume> getByIdWithResponse(String id, com.azure.core.util.Context context) Describe a volumeGet the details of the specified volume.
- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the details of the specified volume along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
Delete a volumeDelete the specified volume.
- Parameters:
id
- the resource ID.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByIdWithResponse
Delete a volumeDelete the specified volume.
- Parameters:
id
- the resource ID.forceDelete
- An option to force delete the volume. Will cleanup resources connected to the particular volume.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
define
Begins definition for a new Volume resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Volume definition.
-