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 Details

    • grantAccess

      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

      rx.Observable<String> 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
    • 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 name
      diskName - the disk name
      accessLevel - access level
      accessDuration - access duration
      callback - 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

      void revokeAccess(String resourceGroupName, String diskName)
      Revoke access granted to a disk.
      Parameters:
      resourceGroupName - the resource group name
      diskName - the disk name
    • revokeAccessAsync

      rx.Completable 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
    • 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 name
      diskName - the disk name
      callback - the callback to call on success or failure
      Returns:
      a handle to cancel the request