Interface Disks
- All Superinterfaces:
HasManager<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<ComputeManager>
Entry point to managed disk management API in Azure.
-
Method Summary
Modifier and TypeMethodDescriptionBegins deleting a disk from Azure, identifying it by its resource ID.beginDeleteByResourceGroup(String resourceGroupName, String name) Begins deleting a disk from Azure, identifying it by its name and its resource group.grantAccess(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration) Grants access to a disk.grantAccessAsync(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration) Grants access to the disk asynchronously.voidrevokeAccess(String resourceGroupName, String diskName) Revoke access granted to a disk.revokeAccessAsync(String resourceGroupName, String diskName) Revoke access granted to the snapshot asynchronously.Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager
managerMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsBatchCreation
create, create, createAsync, createAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsBatchDeletion
deleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating
defineMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById
deleteById, deleteByIdAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup
deleteByResourceGroup, deleteByResourceGroupAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById
getById, getByIdAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup
getByResourceGroup, getByResourceGroupAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListing
list, listAsyncMethods inherited from interface com.azure.resourcemanager.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
Mono<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
-
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
-
beginDeleteById
Begins deleting a disk from Azure, identifying it by its resource ID.- Parameters:
id- the resource ID of the disk to delete- Returns:
- the accepted deleting operation
-
beginDeleteByResourceGroup
Begins deleting a disk from Azure, identifying it by its name and its resource group.- Parameters:
resourceGroupName- the resource group the resource is part ofname- the disk name- Returns:
- the accepted deleting operation
-