Partilhar via


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

grantAccess

public abstract 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

grantAccessAsync

public abstract Mono 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

revokeAccess

public abstract void revokeAccess(String resourceGroupName, String snapName)

Revoke access granted to a snapshot.

Parameters:

resourceGroupName - the resource group name
snapName - the snapshot name

revokeAccessAsync

public abstract Mono 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

Applies to