Partager via


ComputeExtensions.GetDiskAccesses Method

Definition

Overloads

GetDiskAccesses(ResourceGroupResource)

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

GetDiskAccesses(SubscriptionResource, CancellationToken)

Lists all the disk access resources under a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses
  • Operation Id: DiskAccesses_List
  • Default Api Version: 2024-03-02
  • Resource: DiskAccessResource

GetDiskAccesses(ResourceGroupResource)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DiskAccessResources and their operations over a DiskAccessResource.

Exceptions

resourceGroupResource is null.

Applies to

GetDiskAccesses(SubscriptionResource, CancellationToken)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.cs

Lists all the disk access resources under a subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to