Snapshots Interface
public interface Snapshots extends SupportsCreating<Snapshot.DefinitionStages.Blank>,SupportsListing,SupportsListingByResourceGroup,SupportsGettingByResourceGroup,SupportsGettingById,SupportsDeletingById,SupportsDeletingByResourceGroup,SupportsBatchCreation,SupportsBatchDeletion,HasManager,HasInner
Entry point to managed snapshot management API in Azure.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
grantAccess(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
Grants access to a snapshot. |
Observable<String> |
grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
Grants access to the snapshot asynchronously. |
ServiceFuture<String> |
grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration, ServiceCallback<String> callback)
Grants access to the snapshot asynchronously. |
void |
revokeAccess(String resourceGroupName, String snapName)
Revoke access granted to a snapshot. |
Completable |
revokeAccessAsync(String resourceGroupName, String snapName)
Revoke access granted to the snapshot asynchronously. |
ServiceFuture<Void> |
revokeAccessAsync(String resourceGroupName, String snapName, ServiceCallback<Void> callback)
Revoke access granted to the snapshot asynchronously. |
Inherited Members
Method Details
grantAccess
public String grantAccess(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
Grants access to a snapshot.
Parameters:
Returns:
grantAccessAsync
public Observable
Grants access to the snapshot asynchronously.
Parameters:
Returns:
grantAccessAsync
public ServiceFuture
Grants access to the snapshot asynchronously.
Parameters:
Returns:
revokeAccess
public void revokeAccess(String resourceGroupName, String snapName)
Revoke access granted to a snapshot.
Parameters:
revokeAccessAsync
public Completable revokeAccessAsync(String resourceGroupName, String snapName)
Revoke access granted to the snapshot asynchronously.
Parameters:
Returns:
revokeAccessAsync
public ServiceFuture
Revoke access granted to the snapshot asynchronously.
Parameters:
Returns:
Applies to
Azure SDK for Java