public interface Snapshots extends SupportsCreating<Snapshot.DefinitionStages.Blank>, SupportsListing<Snapshot>, SupportsListingByResourceGroup<Snapshot>, SupportsGettingByResourceGroup<Snapshot>, SupportsGettingById<Snapshot>, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsBatchCreation<Snapshot>, SupportsBatchDeletion, HasManager<com.microsoft.azure.management.compute.implementation.ComputeManager>, HasInner<com.microsoft.azure.management.compute.implementation.SnapshotsInner>
| Modifier and Type | Method and Description | 
|---|---|
| String | grantAccess(String resourceGroupName,
           String snapshotName,
           AccessLevel accessLevel,
           int accessDuration)Grants access to a snapshot. | 
| rx.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. | 
| rx.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. | 
definelist, listAsynclistByResourceGroup, listByResourceGroupAsyncgetByResourceGroup, getByResourceGroupAsync, getByResourceGroupAsyncgetById, getByIdAsync, getByIdAsyncdeleteById, deleteByIdAsync, deleteByIdAsyncdeleteByResourceGroup, deleteByResourceGroupAsync, deleteByResourceGroupAsynccreate, create, createAsync, createAsync, createAsync, createAsyncdeleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsyncmanager@Beta(value=V1_2_0) rx.Observable<String> grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
resourceGroupName - the resource group namesnapshotName - the snapshot nameaccessLevel - access levelaccessDuration - access duration@Beta(value=V1_2_0) ServiceFuture<String> grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration, ServiceCallback<String> callback)
resourceGroupName - the resource group namesnapshotName - the snapshot nameaccessLevel - access levelaccessDuration - access durationcallback - the callback to call on success or failure, on success it will pass read-only SAS URI to the snapshot in callbackString grantAccess(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
resourceGroupName - the resource group namesnapshotName - the snapshot nameaccessLevel - access levelaccessDuration - access duration@Beta(value=V1_2_0) rx.Completable revokeAccessAsync(String resourceGroupName, String snapName)
resourceGroupName - the resource group namesnapName - the snapshot name@Beta(value=V1_2_0) ServiceFuture<Void> revokeAccessAsync(String resourceGroupName, String snapName, ServiceCallback<Void> callback)
resourceGroupName - the resource group namesnapName - the snapshot namecallback - the callback to call on success or failureCopyright © 2019. All rights reserved.