Disks Interface
public interface Disks extends SupportsCreating<Disk.DefinitionStages.Blank>,SupportsListing,SupportsListingByResourceGroup,SupportsGettingByResourceGroup,SupportsGettingById,SupportsDeletingById,SupportsDeletingByResourceGroup,SupportsBatchCreation,SupportsBatchDeletion,HasManager,HasInner
Entry point to managed disk management API in Azure.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
grantAccess(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration)
Grants access to a disk. |
Observable<String> |
grantAccessAsync(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration)
Grants access to the disk asynchronously. |
ServiceFuture<String> |
grantAccessAsync(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration, ServiceCallback<String> callback)
Grants access to the disk asynchronously. |
void |
revokeAccess(String resourceGroupName, String diskName)
Revoke access granted to a disk. |
Completable |
revokeAccessAsync(String resourceGroupName, String diskName)
Revoke access granted to the snapshot asynchronously. |
ServiceFuture<Void> |
revokeAccessAsync(String resourceGroupName, String diskName, ServiceCallback<Void> callback)
Revoke access granted to the snapshot asynchronously. |
Inherited Members
Method Details
grantAccess
public String grantAccess(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration)
Grants access to a disk.
Parameters:
Returns:
grantAccessAsync
public Observable
Grants access to the disk asynchronously.
Parameters:
Returns:
grantAccessAsync
public ServiceFuture
Grants access to the disk asynchronously.
Parameters:
Returns:
revokeAccess
public void revokeAccess(String resourceGroupName, String diskName)
Revoke access granted to a disk.
Parameters:
revokeAccessAsync
public Completable revokeAccessAsync(String resourceGroupName, String diskName)
Revoke access granted to the snapshot asynchronously.
Parameters:
Returns:
revokeAccessAsync
public ServiceFuture
Revoke access granted to the snapshot asynchronously.
Parameters:
Returns:
Applies to
Azure SDK for Java