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

CapacityReservationGroupResource.GetAsync 方法

定义

检索有关容量预留组的信息的操作。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}
  • 操作IdCapacityReservationGroups_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.CapacityReservationGroupResource>> GetAsync (Azure.ResourceManager.Compute.Models.CapacityReservationGroupInstanceViewType? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : Nullable<Azure.ResourceManager.Compute.Models.CapacityReservationGroupInstanceViewType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.CapacityReservationGroupResource>>
override this.GetAsync : Nullable<Azure.ResourceManager.Compute.Models.CapacityReservationGroupInstanceViewType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.CapacityReservationGroupResource>>
Public Overridable Function GetAsync (Optional expand As Nullable(Of CapacityReservationGroupInstanceViewType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CapacityReservationGroupResource))

参数

expand
Nullable<CapacityReservationGroupInstanceViewType>

要应用于操作的 expand 表达式。 “InstanceView”将检索容量预留组下容量预留的实例视图列表,该列表是平台管理的容量预留的运行时属性的快照,可在控制平面操作之外更改。

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于