다음을 통해 공유


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 beginDeleteById(String id)

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

public abstract Accepted beginDeleteByResourceGroup(String resourceGroupName, String name)

Begins deleting a disk from Azure, identifying it by its name and its resource group.

Parameters:

resourceGroupName - the resource group the resource is part of
name - the disk name

Returns:

the accepted deleting operation

grantAccess

public abstract String grantAccess(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration)

Grants access to a disk.

Parameters:

resourceGroupName - a resource group name
diskName - a disk name
accessLevel - access level
accessDuration - access duration

Returns:

the read-only SAS URI to the disk

grantAccessAsync

public abstract Mono grantAccessAsync(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration)

Grants access to the disk asynchronously.

Parameters:

resourceGroupName - the resource group name
diskName - the disk name
accessLevel - access level
accessDuration - access duration

Returns:

a representation of the deferred computation of this call returning a read-only SAS URI to the disk

revokeAccess

public abstract void revokeAccess(String resourceGroupName, String diskName)

Revoke access granted to a disk.

Parameters:

resourceGroupName - the resource group name
diskName - the disk name

revokeAccessAsync

public abstract Mono revokeAccessAsync(String resourceGroupName, String diskName)

Revoke access granted to the snapshot asynchronously.

Parameters:

resourceGroupName - the resource group name
diskName - the disk name

Returns:

a representation of the deferred computation of this call

Applies to