共用方式為


ComputeExtensions.GetDiskImages Method

Definition

Overloads

GetDiskImages(SubscriptionResource, CancellationToken)

Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/images
  • Operation Id: Images_List
  • Default Api Version: 2024-07-01
  • Resource: DiskImageResource
GetDiskImages(ResourceGroupResource)

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

GetDiskImages(SubscriptionResource, CancellationToken)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.cs

Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

GetDiskImages(ResourceGroupResource)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DiskImageResources and their operations over a DiskImageResource.

Exceptions

resourceGroupResource is null.

Applies to