Interface Disks

All Superinterfaces:
HasManager<ComputeManager>, SupportsBatchCreation<Disk>, SupportsBatchDeletion, SupportsCreating<Disk.DefinitionStages.Blank>, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsGettingById<Disk>, SupportsGettingByResourceGroup<Disk>, SupportsListing<Disk>, SupportsListingByResourceGroup<Disk>

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

      Mono<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
    • revokeAccess

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

      Mono<Void> 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
    • beginDeleteById

      Accepted<Void> 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

      Accepted<Void> 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