Interface Snapshots

All Superinterfaces:
HasManager<ComputeManager>, SupportsBatchCreation<Snapshot>, SupportsBatchDeletion, SupportsCreating<Snapshot.DefinitionStages.Blank>, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsGettingById<Snapshot>, SupportsGettingByResourceGroup<Snapshot>, SupportsListing<Snapshot>, SupportsListingByResourceGroup<Snapshot>

Entry point to managed snapshot management API in Azure.
  • Method Details

    • grantAccessAsync

      Mono<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
    • 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

      Mono<Void> 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
    • revokeAccess

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

      default Accepted<Void> beginDeleteById(String id)
      Begins deleting a snapshot from Azure, identifying it by its resource ID.
      Parameters:
      id - the resource ID of the snapshot to delete
      Returns:
      the accepted deleting operation
    • beginDeleteById

      default Accepted<Void> beginDeleteById(String id, com.azure.core.util.Context context)
      Begins deleting a snapshot from Azure, identifying it by its resource ID.
      Parameters:
      id - the resource ID of the snapshot to delete
      context - the Context of the request
      Returns:
      the accepted deleting operation
    • beginDeleteByResourceGroup

      default Accepted<Void> beginDeleteByResourceGroup(String resourceGroupName, String name)
      Begins deleting a snapshot from Azure, identifying it by its name and its resource group.
      Parameters:
      resourceGroupName - the resource group the resource is part of
      name - the snapshot name
      Returns:
      the accepted deleting operation
    • beginDeleteByResourceGroup

      default Accepted<Void> beginDeleteByResourceGroup(String resourceGroupName, String name, com.azure.core.util.Context context)
      Begins deleting a snapshot from Azure, identifying it by its name and its resource group.
      Parameters:
      resourceGroupName - the resource group the resource is part of
      name - the snapshot name
      context - the Context of the request
      Returns:
      the accepted deleting operation