Interface Snapshots

All Superinterfaces:
HasInner<com.microsoft.azure.management.compute.implementation.SnapshotsInner>, HasManager<com.microsoft.azure.management.compute.implementation.ComputeManager>, SupportsBatchCreation<Snapshot>, SupportsBatchDeletion, SupportsCreating<Snapshot.DefinitionStages.Blank>, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsGettingById<Snapshot>, SupportsGettingByResourceGroup<Snapshot>, SupportsListing<Snapshot>, SupportsListingByResourceGroup<Snapshot>

public interface Snapshots extends SupportsCreating<Snapshot.DefinitionStages.Blank>, SupportsListing<Snapshot>, SupportsListingByResourceGroup<Snapshot>, SupportsGettingByResourceGroup<Snapshot>, SupportsGettingById<Snapshot>, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsBatchCreation<Snapshot>, SupportsBatchDeletion, HasManager<com.microsoft.azure.management.compute.implementation.ComputeManager>, HasInner<com.microsoft.azure.management.compute.implementation.SnapshotsInner>
Entry point to managed snapshot management API in Azure.
  • Method Details

    • grantAccessAsync

      rx.Observable<String> grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
      Grants access to the snapshot asynchronously.
      Parameters:
      resourceGroupName - the resource group name
      snapshotName - the snapshot name
      accessLevel - access level
      accessDuration - access duration
      Returns:
      a representation of the deferred computation of this call returning a read-only SAS URI to the snapshot
    • grantAccessAsync

      com.microsoft.rest.ServiceFuture<String> grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration, com.microsoft.rest.ServiceCallback<String> callback)
      Grants access to the snapshot asynchronously.
      Parameters:
      resourceGroupName - the resource group name
      snapshotName - the snapshot name
      accessLevel - access level
      accessDuration - access duration
      callback - the callback to call on success or failure, on success it will pass read-only SAS URI to the snapshot in callback
      Returns:
      a handle to cancel the request
    • grantAccess

      String grantAccess(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
      Grants access to a snapshot.
      Parameters:
      resourceGroupName - the resource group name
      snapshotName - the snapshot name
      accessLevel - access level
      accessDuration - access duration
      Returns:
      the read-only SAS URI to the snapshot
    • revokeAccessAsync

      rx.Completable revokeAccessAsync(String resourceGroupName, String snapName)
      Revoke access granted to the snapshot asynchronously.
      Parameters:
      resourceGroupName - the resource group name
      snapName - the snapshot name
      Returns:
      a representation of the deferred computation of this call
    • revokeAccessAsync

      com.microsoft.rest.ServiceFuture<Void> revokeAccessAsync(String resourceGroupName, String snapName, com.microsoft.rest.ServiceCallback<Void> callback)
      Revoke access granted to the snapshot asynchronously.
      Parameters:
      resourceGroupName - the resource group name
      snapName - the snapshot name
      callback - the callback to call on success or failure
      Returns:
      a handle to cancel the request
    • revokeAccess

      void revokeAccess(String resourceGroupName, String snapName)
      Revoke access granted to a snapshot.
      Parameters:
      resourceGroupName - the resource group name
      snapName - the snapshot name