你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Disks Interface
Implements
public interface Disks
extends SupportsCreating<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 Type | Method and Description |
---|---|
abstract Accepted<Void> |
beginDeleteById(String id)
Begins deleting a disk from Azure, identifying it by its resource ID. |
abstract Accepted<Void> |
beginDeleteByResourceGroup(String resourceGroupName, String name)
Begins deleting a disk from Azure, identifying it by its name and its resource group. |
abstract String |
grantAccess(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration)
Grants access to a disk. |
abstract Mono<String> |
grantAccessAsync(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration)
Grants access to the disk asynchronously. |
abstract void |
revokeAccess(String resourceGroupName, String diskName)
Revoke access granted to a disk. |
abstract Mono<Void> |
revokeAccessAsync(String resourceGroupName, String diskName)
Revoke access granted to the snapshot asynchronously. |
Method Details
beginDeleteById
public abstract Accepted
Begins deleting a disk from Azure, identifying it by its resource ID.
Parameters:
Returns:
beginDeleteByResourceGroup
public abstract Accepted
Begins deleting a disk from Azure, identifying it by its name and its resource group.
Parameters:
Returns:
grantAccess
public abstract String grantAccess(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration)
Grants access to a disk.
Parameters:
Returns:
grantAccessAsync
public abstract Mono
Grants access to the disk asynchronously.
Parameters:
Returns:
revokeAccess
public abstract void revokeAccess(String resourceGroupName, String diskName)
Revoke access granted to a disk.
Parameters:
revokeAccessAsync
public abstract Mono
Revoke access granted to the snapshot asynchronously.
Parameters:
Returns: