Interface Disks
- All Superinterfaces:
HasInner<com.microsoft.azure.management.compute.implementation.DisksInner>
,HasManager<com.microsoft.azure.management.compute.implementation.ComputeManager>
,SupportsBatchCreation<Disk>
,SupportsBatchDeletion
,SupportsCreating<Disk.DefinitionStages.Blank>
,SupportsDeletingById
,SupportsDeletingByResourceGroup
,SupportsGettingById<Disk>
,SupportsGettingByResourceGroup<Disk>
,SupportsListing<Disk>
,SupportsListingByResourceGroup<Disk>
public interface Disks
extends SupportsCreating<Disk.DefinitionStages.Blank>, SupportsListing<Disk>, SupportsListingByResourceGroup<Disk>, SupportsGettingByResourceGroup<Disk>, SupportsGettingById<Disk>, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsBatchCreation<Disk>, SupportsBatchDeletion, HasManager<com.microsoft.azure.management.compute.implementation.ComputeManager>, HasInner<com.microsoft.azure.management.compute.implementation.DisksInner>
Entry point to managed disk management API in Azure.
-
Method Summary
Modifier and TypeMethodDescriptiongrantAccess
(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration) Grants access to a disk.rx.Observable<String>
grantAccessAsync
(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration) Grants access to the disk asynchronously.com.microsoft.rest.ServiceFuture<String>
grantAccessAsync
(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration, com.microsoft.rest.ServiceCallback<String> callback) Grants access to the disk asynchronously.void
revokeAccess
(String resourceGroupName, String diskName) Revoke access granted to a disk.rx.Completable
revokeAccessAsync
(String resourceGroupName, String diskName) Revoke access granted to the snapshot asynchronously.com.microsoft.rest.ServiceFuture<Void>
revokeAccessAsync
(String resourceGroupName, String diskName, 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
-
grantAccess
String grantAccess(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration) Grants access to a disk.- Parameters:
resourceGroupName
- a resource group namediskName
- a disk nameaccessLevel
- access levelaccessDuration
- access duration- Returns:
- the read-only SAS URI to the disk
-
grantAccessAsync
rx.Observable<String> grantAccessAsync(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration) Grants access to the disk asynchronously.- Parameters:
resourceGroupName
- the resource group namediskName
- the disk nameaccessLevel
- access levelaccessDuration
- access duration- Returns:
- a representation of the deferred computation of this call returning a read-only SAS URI to the disk
-
grantAccessAsync
com.microsoft.rest.ServiceFuture<String> grantAccessAsync(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration, com.microsoft.rest.ServiceCallback<String> callback) Grants access to the disk asynchronously.- Parameters:
resourceGroupName
- the resource group namediskName
- the disk nameaccessLevel
- access levelaccessDuration
- access durationcallback
- the callback to call on success or failure, on success it will pass read-only SAS URI to the disk in callback- Returns:
- a handle to cancel the request
-
revokeAccess
Revoke access granted to a disk.- Parameters:
resourceGroupName
- the resource group namediskName
- the disk name
-
revokeAccessAsync
Revoke access granted to the snapshot asynchronously.- Parameters:
resourceGroupName
- the resource group namediskName
- the disk name- Returns:
- a representation of the deferred computation of this call
-
revokeAccessAsync
com.microsoft.rest.ServiceFuture<Void> revokeAccessAsync(String resourceGroupName, String diskName, com.microsoft.rest.ServiceCallback<Void> callback) Revoke access granted to the snapshot asynchronously.- Parameters:
resourceGroupName
- the resource group namediskName
- the disk namecallback
- the callback to call on success or failure- Returns:
- a handle to cancel the request
-