public interface Snapshots extends com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating<Snapshot.DefinitionStages.Blank>, com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing<Snapshot>, com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsListingByResourceGroup<Snapshot>, com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup<Snapshot>, com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingById<Snapshot>, com.microsoft.azure.management.resources.fluentcore.collection.SupportsDeletingById, com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup, com.microsoft.azure.management.resources.fluentcore.collection.SupportsBatchCreation<Snapshot>, com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsBatchDeletion, com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager<com.microsoft.azure.management.compute.implementation.ComputeManager>, com.microsoft.azure.management.resources.fluentcore.model.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.
|
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.
|
definelist, listAsynclistByResourceGroup, listByResourceGroupAsyncgetByResourceGroup, getByResourceGroupAsync, getByResourceGroupAsyncgetById, getByIdAsync, getByIdAsyncdeleteById, deleteByIdAsync, deleteByIdAsyncdeleteByResourceGroup, deleteByResourceGroupAsync, deleteByResourceGroupAsynccreate, create, createAsync, createAsync, createAsync, createAsyncdeleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsync@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) com.microsoft.rest.ServiceFuture<String> grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration, com.microsoft.rest.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) com.microsoft.rest.ServiceFuture<Void> revokeAccessAsync(String resourceGroupName, String snapName, com.microsoft.rest.ServiceCallback<Void> callback)
resourceGroupName - the resource group namesnapName - the snapshot namecallback - the callback to call on success or failure/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/