Snapshots Interface
Implements
public interface Snapshots
extends SupportsCreating<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 Type | Method and Description |
---|---|
default Accepted<Void> |
beginDeleteById(String id)
Begins deleting a snapshot from Azure, identifying it by its resource ID. |
default Accepted<Void> |
beginDeleteById(String id, Context context)
Begins deleting a snapshot from Azure, identifying it by its resource ID. |
default Accepted<Void> |
beginDeleteByResourceGroup(String resourceGroupName, String name)
Begins deleting a snapshot from Azure, identifying it by its name and its resource group. |
default Accepted<Void> |
beginDeleteByResourceGroup(String resourceGroupName, String name, Context context)
Begins deleting a snapshot from Azure, identifying it by its name and its resource group. |
abstract String |
grantAccess(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
Grants access to a snapshot. |
abstract Mono<String> |
grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
Grants access to the snapshot asynchronously. |
abstract void |
revokeAccess(String resourceGroupName, String snapName)
Revoke access granted to a snapshot. |
abstract Mono<Void> |
revokeAccessAsync(String resourceGroupName, String snapName)
Revoke access granted to the snapshot asynchronously. |
Method Details
beginDeleteById
public default Accepted<Void> beginDeleteById(String id)
Begins deleting a snapshot from Azure, identifying it by its resource ID.
Parameters:
Returns:
beginDeleteById
public default Accepted<Void> beginDeleteById(String id, Context context)
Begins deleting a snapshot from Azure, identifying it by its resource ID.
Parameters:
Returns:
beginDeleteByResourceGroup
public default Accepted<Void> beginDeleteByResourceGroup(String resourceGroupName, String name)
Begins deleting a snapshot from Azure, identifying it by its name and its resource group.
Parameters:
Returns:
beginDeleteByResourceGroup
public default Accepted<Void> beginDeleteByResourceGroup(String resourceGroupName, String name, Context context)
Begins deleting a snapshot from Azure, identifying it by its name and its resource group.
Parameters:
Returns:
grantAccess
public abstract String grantAccess(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
Grants access to a snapshot.
Parameters:
Returns:
grantAccessAsync
public abstract Mono<String> grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
Grants access to the snapshot asynchronously.
Parameters:
Returns:
revokeAccess
public abstract void revokeAccess(String resourceGroupName, String snapName)
Revoke access granted to a snapshot.
Parameters:
revokeAccessAsync
public abstract Mono<Void> revokeAccessAsync(String resourceGroupName, String snapName)
Revoke access granted to the snapshot asynchronously.
Parameters:
Returns: