Interface Disk

    • Method Detail

      • creationMethod

        DiskCreateOption creationMethod()
        Returns:
        the disk creation method
      • isAttachedToVirtualMachine

        boolean isAttachedToVirtualMachine()
        Returns:
        true if the disk is attached to a virtual machine, otherwise false
      • virtualMachineId

        String virtualMachineId()
        Returns:
        the resource ID of the virtual machine this disk is attached to, or null if the disk is in a detached state
      • sizeInGB

        int sizeInGB()
        Returns:
        disk size in GB
      • sizeInByte

        long sizeInByte()
        Returns:
        disk size in byte
      • source

        CreationSource source()
        Returns:
        the details of the source from which the disk is created
      • availabilityZones

        Set<AvailabilityZoneId> availabilityZones()
        Returns:
        the availability zones assigned to the disk
      • encryption

        Encryption encryption()
        Returns:
        the disk encryption
      • grantAccess

        String grantAccess​(int accessDurationInSeconds)
        Grants access to the disk.
        Parameters:
        accessDurationInSeconds - the access duration in seconds
        Returns:
        the read-only SAS URI to the disk
      • grantAccessAsync

        Mono<String> grantAccessAsync​(int accessDurationInSeconds)
        Grants access to the disk asynchronously.
        Parameters:
        accessDurationInSeconds - the access duration in seconds
        Returns:
        a representation of the deferred computation of this call returning a read-only SAS URI to the disk
      • revokeAccess

        void revokeAccess()
        Revokes access granted to the disk.
      • revokeAccessAsync

        Mono<Void> revokeAccessAsync()
        Revokes access granted to the disk asynchronously.
        Returns:
        a representation of the deferred computation of this call