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.
|
define
list, listAsync
listByResourceGroup, listByResourceGroupAsync
getByResourceGroup, getByResourceGroupAsync
getById, getByIdAsync
deleteById, deleteByIdAsync
deleteByResourceGroup, deleteByResourceGroupAsync
create, create, createAsync, createAsync
deleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsync
manager
Mono<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.