Interface VolumeSnapshotsClient


public interface VolumeSnapshotsClient
An instance of this class provides access to all the operations defined in VolumeSnapshotsClient.
  • Method Details

    • listByVolumeGroup

      com.azure.core.http.rest.PagedIterable<SnapshotInner> listByVolumeGroup(String resourceGroupName, String elasticSanName, String volumeGroupName)
      List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      elasticSanName - The name of the ElasticSan.
      volumeGroupName - The name of the VolumeGroup.
      Returns:
      list of Snapshots 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.
    • listByVolumeGroup

      com.azure.core.http.rest.PagedIterable<SnapshotInner> listByVolumeGroup(String resourceGroupName, String elasticSanName, String volumeGroupName, String filter, com.azure.core.util.Context context)
      List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      elasticSanName - The name of the ElasticSan.
      volumeGroupName - The name of the VolumeGroup.
      filter - Specify $filter='volumeName eq <volume name>' to filter on volume.
      context - The context to associate with this operation.
      Returns:
      list of Snapshots 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.
    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SnapshotInner>,SnapshotInner> beginCreate(String resourceGroupName, String elasticSanName, String volumeGroupName, String snapshotName, SnapshotInner parameters)
      Create a Volume Snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      elasticSanName - The name of the ElasticSan.
      volumeGroupName - The name of the VolumeGroup.
      snapshotName - The name of the volume snapshot within the given volume group.
      parameters - Snapshot object.
      Returns:
      the SyncPoller for polling of response for Volume Snapshot 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.
    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SnapshotInner>,SnapshotInner> beginCreate(String resourceGroupName, String elasticSanName, String volumeGroupName, String snapshotName, SnapshotInner parameters, com.azure.core.util.Context context)
      Create a Volume Snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      elasticSanName - The name of the ElasticSan.
      volumeGroupName - The name of the VolumeGroup.
      snapshotName - The name of the volume snapshot within the given volume group.
      parameters - Snapshot object.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of response for Volume Snapshot 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.
    • create

      SnapshotInner create(String resourceGroupName, String elasticSanName, String volumeGroupName, String snapshotName, SnapshotInner parameters)
      Create a Volume Snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      elasticSanName - The name of the ElasticSan.
      volumeGroupName - The name of the VolumeGroup.
      snapshotName - The name of the volume snapshot within the given volume group.
      parameters - Snapshot object.
      Returns:
      response for Volume Snapshot 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.
    • create

      SnapshotInner create(String resourceGroupName, String elasticSanName, String volumeGroupName, String snapshotName, SnapshotInner parameters, com.azure.core.util.Context context)
      Create a Volume Snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      elasticSanName - The name of the ElasticSan.
      volumeGroupName - The name of the VolumeGroup.
      snapshotName - The name of the volume snapshot within the given volume group.
      parameters - Snapshot object.
      context - The context to associate with this operation.
      Returns:
      response for Volume Snapshot 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String elasticSanName, String volumeGroupName, String snapshotName)
      Delete a Volume Snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      elasticSanName - The name of the ElasticSan.
      volumeGroupName - The name of the VolumeGroup.
      snapshotName - The name of the volume snapshot within the given volume group.
      Returns:
      the SyncPoller for polling of long-running 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String elasticSanName, String volumeGroupName, String snapshotName, com.azure.core.util.Context context)
      Delete a Volume Snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      elasticSanName - The name of the ElasticSan.
      volumeGroupName - The name of the VolumeGroup.
      snapshotName - The name of the volume snapshot within the given volume group.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running 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.
    • delete

      void delete(String resourceGroupName, String elasticSanName, String volumeGroupName, String snapshotName)
      Delete a Volume Snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      elasticSanName - The name of the ElasticSan.
      volumeGroupName - The name of the VolumeGroup.
      snapshotName - The name of the volume snapshot within the given volume group.
      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 elasticSanName, String volumeGroupName, String snapshotName, com.azure.core.util.Context context)
      Delete a Volume Snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      elasticSanName - The name of the ElasticSan.
      volumeGroupName - The name of the VolumeGroup.
      snapshotName - The name of the volume snapshot within the given volume group.
      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.
    • getWithResponse

      com.azure.core.http.rest.Response<SnapshotInner> getWithResponse(String resourceGroupName, String elasticSanName, String volumeGroupName, String snapshotName, com.azure.core.util.Context context)
      Get a Volume Snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      elasticSanName - The name of the ElasticSan.
      volumeGroupName - The name of the VolumeGroup.
      snapshotName - The name of the volume snapshot within the given volume group.
      context - The context to associate with this operation.
      Returns:
      a Volume Snapshot 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.
    • get

      SnapshotInner get(String resourceGroupName, String elasticSanName, String volumeGroupName, String snapshotName)
      Get a Volume Snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      elasticSanName - The name of the ElasticSan.
      volumeGroupName - The name of the VolumeGroup.
      snapshotName - The name of the volume snapshot within the given volume group.
      Returns:
      a Volume Snapshot.
      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.