Interface Snapshots
- All Superinterfaces:
HasInner<com.microsoft.azure.management.compute.implementation.SnapshotsInner>
,HasManager<com.microsoft.azure.management.compute.implementation.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<com.microsoft.azure.management.compute.implementation.ComputeManager>, HasInner<com.microsoft.azure.management.compute.implementation.SnapshotsInner>
Entry point to managed snapshot management API in Azure.
-
Method Summary
Modifier and TypeMethodDescriptiongrantAccess
(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.com.microsoft.rest.ServiceFuture<String>
grantAccessAsync
(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration, com.microsoft.rest.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.com.microsoft.rest.ServiceFuture<Void>
revokeAccessAsync
(String resourceGroupName, String snapName, com.microsoft.rest.ServiceCallback<Void> callback) Revoke access granted to the snapshot asynchronously.Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.HasInner
inner
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager
manager
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.collection.SupportsBatchCreation
create, create, createAsync, createAsync, createAsync, createAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsBatchDeletion
deleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating
define
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.collection.SupportsDeletingById
deleteById, deleteByIdAsync, deleteByIdAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup
deleteByResourceGroup, deleteByResourceGroupAsync, deleteByResourceGroupAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingById
getById, getByIdAsync, getByIdAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup
getByResourceGroup, getByResourceGroupAsync, getByResourceGroupAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing
list, listAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsListingByResourceGroup
listByResourceGroup, listByResourceGroupAsync
-
Method Details
-
grantAccessAsync
rx.Observable<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
-
grantAccessAsync
com.microsoft.rest.ServiceFuture<String> grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration, com.microsoft.rest.ServiceCallback<String> callback) Grants access to the snapshot asynchronously.- Parameters:
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 callback- Returns:
- a handle to cancel the request
-
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
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
-
revokeAccessAsync
com.microsoft.rest.ServiceFuture<Void> revokeAccessAsync(String resourceGroupName, String snapName, com.microsoft.rest.ServiceCallback<Void> callback) Revoke access granted to the snapshot asynchronously.- Parameters:
resourceGroupName
- the resource group namesnapName
- the snapshot namecallback
- the callback to call on success or failure- Returns:
- a handle to cancel the request
-
revokeAccess
Revoke access granted to a snapshot.- Parameters:
resourceGroupName
- the resource group namesnapName
- the snapshot name
-