public interface Snapshots extends SupportsCreating<Snapshot.DefinitionStages.Blank>, SupportsListing<Snapshot>, SupportsListingByResourceGroup<Snapshot>, SupportsGettingByResourceGroup<Snapshot>, SupportsGettingById<Snapshot>, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsBatchCreation<Snapshot>, SupportsBatchDeletion, HasManager<ComputeManager>
| Modifier and Type | Method and Description |
|---|---|
String |
grantAccess(String resourceGroupName,
String snapshotName,
AccessLevel accessLevel,
int accessDuration)
Grants access to a snapshot.
|
Mono<String> |
grantAccessAsync(String resourceGroupName,
String snapshotName,
AccessLevel accessLevel,
int accessDuration)
Grants access to the snapshot asynchronously.
|
void |
revokeAccess(String resourceGroupName,
String snapName)
Revoke access granted to a snapshot.
|
Mono<Void> |
revokeAccessAsync(String resourceGroupName,
String snapName)
Revoke access granted to the snapshot asynchronously.
|
definelist, listAsynclistByResourceGroup, listByResourceGroupAsyncgetByResourceGroup, getByResourceGroupAsyncgetById, getByIdAsyncdeleteById, deleteByIdAsyncdeleteByResourceGroup, deleteByResourceGroupAsynccreate, create, createAsync, createAsyncdeleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsyncmanagerMono<String> grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
resourceGroupName - the resource group namesnapshotName - the snapshot nameaccessLevel - access levelaccessDuration - access durationString grantAccess(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
resourceGroupName - the resource group namesnapshotName - the snapshot nameaccessLevel - access levelaccessDuration - access durationMono<Void> revokeAccessAsync(String resourceGroupName, String snapName)
resourceGroupName - the resource group namesnapName - the snapshot nameCopyright © 2020 Microsoft Corporation. All rights reserved.