IDisk IDisk IDisk Interface

Definition

An immutable client-side representation of an Azure managed disk.

public interface IDisk : Microsoft.Azure.Management.Compute.Fluent.IDiskBeta, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IBeta, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IGroupableResource<Microsoft.Azure.Management.Compute.Fluent.IComputeManager,Microsoft.Azure.Management.Compute.Fluent.Models.DiskInner>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IHasInner<Microsoft.Azure.Management.Compute.Fluent.Models.DiskInner>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IHasManager<Microsoft.Azure.Management.Compute.Fluent.IComputeManager>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.IRefreshable<Microsoft.Azure.Management.Compute.Fluent.IDisk>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.IUpdatable<Microsoft.Azure.Management.Compute.Fluent.Disk.Update.IUpdate>
type IDisk = interface
    interface IGroupableResource<IComputeManager, DiskInner>
    interface IResource
    interface IIndexable
    interface IHasId
    interface IHasName
    interface IHasResourceGroup
    interface IHasManager<IComputeManager>
    interface IHasInner<DiskInner>
    interface IRefreshable<IDisk>
    interface IUpdatable<IUpdate>
    interface IDiskBeta
    interface IBeta
Public Interface IDisk
Implements IBeta, IDiskBeta, IGroupableResource(Of IComputeManager, DiskInner), IHasInner(Of DiskInner), IHasManager(Of IComputeManager), IRefreshable(Of IDisk), IUpdatable(Of IUpdate)
Implements

Properties

CreationMethod CreationMethod CreationMethod

Gets the disk creation method.

IsAttachedToVirtualMachine IsAttachedToVirtualMachine IsAttachedToVirtualMachine

Gets true if the disk is attached to a virtual machine, otherwise false.

OSType OSType OSType

Gets the type of the operating system on the disk.

SizeInGB SizeInGB SizeInGB

Gets disk size in GB.

Sku Sku Sku

Gets the disk SKU.

Source Source Source

Gets the details of the source from which the disk is created.

VirtualMachineId VirtualMachineId VirtualMachineId

Gets the resource ID of the virtual machine this disk is attached to, or null if the disk is in a detached state.

Methods

GrantAccess(Int32) GrantAccess(Int32) GrantAccess(Int32)

Grants access to the disk.

GrantAccessAsync(Int32, CancellationToken) GrantAccessAsync(Int32, CancellationToken) GrantAccessAsync(Int32, CancellationToken)
RevokeAccess() RevokeAccess() RevokeAccess()

Revokes access granted to the disk.

RevokeAccessAsync(CancellationToken) RevokeAccessAsync(CancellationToken) RevokeAccessAsync(CancellationToken)

Applies to