Bagikan melalui


ComputeExtensions.GetManagedDisks Method

Definition

Overloads

GetManagedDisks(ResourceGroupResource)

Gets a collection of ManagedDiskResources in the ResourceGroupResource. MockingTo mock this method, please mock GetManagedDisks() instead.

GetManagedDisks(SubscriptionResource, CancellationToken)

Lists all the disks under a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/disks
  • Operation Id: Disks_List
  • Default Api Version: 2024-03-02
  • Resource: ManagedDiskResource

GetManagedDisks(ResourceGroupResource)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.cs

Gets a collection of ManagedDiskResources in the ResourceGroupResource. MockingTo mock this method, please mock GetManagedDisks() instead.

public static Azure.ResourceManager.Compute.ManagedDiskCollection GetManagedDisks (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetManagedDisks : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Compute.ManagedDiskCollection
<Extension()>
Public Function GetManagedDisks (resourceGroupResource As ResourceGroupResource) As ManagedDiskCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ManagedDiskResources and their operations over a ManagedDiskResource.

Exceptions

resourceGroupResource is null.

Applies to

GetManagedDisks(SubscriptionResource, CancellationToken)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.cs

Lists all the disks under a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/disks
  • Operation Id: Disks_List
  • Default Api Version: 2024-03-02
  • Resource: ManagedDiskResource
public static Azure.Pageable<Azure.ResourceManager.Compute.ManagedDiskResource> GetManagedDisks (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetManagedDisks : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.ManagedDiskResource>
<Extension()>
Public Function GetManagedDisks (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ManagedDiskResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ManagedDiskResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to