Interface Snapshots
- All Superinterfaces:
HasManager<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<ComputeManager>
Entry point to managed snapshot management API in Azure.
-
Method Summary
Modifier and TypeMethodDescriptionBegins deleting a snapshot from Azure, identifying it by its resource ID.beginDeleteById(String id, com.azure.core.util.Context context) Begins deleting a snapshot from Azure, identifying it by its resource ID.beginDeleteByResourceGroup(String resourceGroupName, String name) Begins deleting a snapshot from Azure, identifying it by its name and its resource group.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.grantAccess(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration) Grants access to a snapshot.grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration) Grants access to the snapshot asynchronously.voidrevokeAccess(String resourceGroupName, String snapName) Revoke access granted to a snapshot.revokeAccessAsync(String resourceGroupName, String snapName) Revoke access granted to the snapshot asynchronously.Methods inherited from interface HasManager
managerMethods inherited from interface SupportsBatchCreation
create, create, createAsync, createAsyncMethods inherited from interface SupportsBatchDeletion
deleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsyncMethods inherited from interface SupportsCreating
defineMethods inherited from interface SupportsDeletingById
deleteById, deleteByIdAsyncMethods inherited from interface SupportsDeletingByResourceGroup
deleteByResourceGroup, deleteByResourceGroupAsyncMethods inherited from interface SupportsGettingById
getById, getByIdAsyncMethods inherited from interface SupportsGettingByResourceGroup
getByResourceGroup, getByResourceGroupAsyncMethods inherited from interface SupportsListing
list, listAsyncMethods inherited from interface SupportsListingByResourceGroup
listByResourceGroup, listByResourceGroupAsync
-
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 namesnapshotName- the snapshot nameaccessLevel- access levelaccessDuration- 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 namesnapshotName- the snapshot nameaccessLevel- access levelaccessDuration- access duration- Returns:
- the read-only SAS URI to the snapshot
-
revokeAccessAsync
-
revokeAccess
-
beginDeleteById
-
beginDeleteById
-
beginDeleteByResourceGroup
Begins deleting a snapshot from Azure, identifying it by its name and its resource group.- Parameters:
resourceGroupName- the resource group the resource is part ofname- 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 ofname- the snapshot namecontext- theContextof the request- Returns:
- the accepted deleting operation
-