共用方式為


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

AvailabilityZones

Gets the availability zones assigned to the disk.

(Inherited from IDiskBeta)
CreationMethod

Gets the disk creation method.

EncryptionSettings

Gets the the disk encryption settings.

(Inherited from IDiskBeta)
HyperVGeneration

Gets the hypervisor generation of the managed disk.

Id

Gets the resource id string

(Inherited from IHasId)
Inner (Inherited from IHasInner<T>)
IsAttachedToVirtualMachine

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

Key (Inherited from IIndexable)
Manager

Gets the manager client type of this resource type.

(Inherited from IHasManager<ManagerT>)
Name

Gets the name of the resource

(Inherited from IHasName)
OSType

Gets the type of the operating system on the disk.

Region (Inherited from IResource)
RegionName (Inherited from IResource)
ResourceGroupName (Inherited from IHasResourceGroup)
SizeInByte

Gets the size of the disk in bytes.

SizeInGB

Gets disk size in GB.

Sku

Gets the disk SKU.

Source

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

Tags (Inherited from IResource)
Type (Inherited from IResource)
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)

Grants access to the disk.

GrantAccessAsync(Int32, CancellationToken)

Grants access to the disk asynchronously.

Refresh()

Refreshes the resource to sync with Azure.

(Inherited from IRefreshable<T>)
RefreshAsync(CancellationToken)

Refreshes the resource to sync with Azure.

(Inherited from IRefreshable<T>)
RevokeAccess()

Revokes access granted to the disk.

RevokeAccessAsync(CancellationToken)

Revokes access granted to the disk asynchronously.

Update() (Inherited from IUpdatable<T>)

Applies to