Interface Snapshots
-
- All Superinterfaces:
HasManager<ComputeManager>,SupportsBatchCreation<Snapshot>,SupportsBatchDeletion,SupportsCreating<Snapshot.DefinitionStages.Blank>,SupportsDeletingById,SupportsDeletingByResourceGroup,SupportsGettingById<Snapshot>,SupportsGettingByResourceGroup<Snapshot>,SupportsListing<Snapshot>,SupportsListingByResourceGroup<Snapshot>
public interface Snapshots extends SupportsCreating<Snapshot.DefinitionStages.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgrantAccess(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.voidrevokeAccess(String resourceGroupName, String snapName)Revoke access granted to a snapshot.Mono<Void>revokeAccessAsync(String resourceGroupName, String snapName)Revoke access granted to the snapshot asynchronously.-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager
manager
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsBatchCreation
create, create, createAsync, createAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsBatchDeletion
deleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating
define
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById
deleteById, deleteByIdAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup
deleteByResourceGroup, deleteByResourceGroupAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById
getById, getByIdAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup
getByResourceGroup, getByResourceGroupAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListing
list, listAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsListingByResourceGroup
listByResourceGroup, listByResourceGroupAsync
-
-
-
-
Method Detail
-
grantAccessAsync
Mono<String> grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
Grants access to the snapshot asynchronously.- Parameters:
resourceGroupName- the resource group namesnapshotName- the snapshot nameaccessLevel- access levelaccessDuration- access duration- Returns:
- a representation of the deferred computation of this call returning a read-only SAS URI to the snapshot
-
grantAccess
String grantAccess(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
Grants access to a snapshot.- Parameters:
resourceGroupName- the resource group namesnapshotName- the snapshot nameaccessLevel- access levelaccessDuration- access duration- Returns:
- the read-only SAS URI to the snapshot
-
revokeAccessAsync
Mono<Void> revokeAccessAsync(String resourceGroupName, String snapName)
Revoke access granted to the snapshot asynchronously.- Parameters:
resourceGroupName- the resource group namesnapName- the snapshot name- Returns:
- a representation of the deferred computation of this call
-
-