你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ComputeExtensions.GetDiskImage Method

Definition

Gets an image.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}
  • Operation Id: Images_Get
  • Default Api Version: 2024-07-01
  • Resource: DiskImageResource
public static Azure.Response<Azure.ResourceManager.Compute.DiskImageResource> GetDiskImage (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string imageName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetDiskImage : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.DiskImageResource>
<Extension()>
Public Function GetDiskImage (resourceGroupResource As ResourceGroupResource, imageName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DiskImageResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

imageName
String

The name of the image.

expand
String

The expand expression to apply on the operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource or imageName is null.

imageName is an empty string, and was expected to be non-empty.

Applies to