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

PublisherResource.GetOfferAsync(String, String, CancellationToken) 方法

定义

获取 HCI 群集发布者中的产品/服务资源详细信息。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/publishers/{publisherName}/offers/{offerName}
  • 操作IdOffers_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Hci.OfferResource>> GetOfferAsync (string offerName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetOfferAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Hci.OfferResource>>
override this.GetOfferAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Hci.OfferResource>>
Public Overridable Function GetOfferAsync (offerName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of OfferResource))

参数

offerName
String

HCI 群集中可用的产品/服务的名称。

expand
String

指定 $expand=content,contentVersion 以填充与市场产品/服务相关的其他字段。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

offerName 是一个空字符串,预期为非空。

offerName 为 null。

适用于