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

ResourceHealthEventResource.GetResourceHealthEventImpactedResource 方法

定义

按事件获取订阅中受影响的特定资源。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}
  • 操作IdImpactedResources_Get
public virtual Azure.Response<Azure.ResourceManager.ResourceHealth.ResourceHealthEventImpactedResource> GetResourceHealthEventImpactedResource (string impactedResourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetResourceHealthEventImpactedResource : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ResourceHealth.ResourceHealthEventImpactedResource>
override this.GetResourceHealthEventImpactedResource : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ResourceHealth.ResourceHealthEventImpactedResource>
Public Overridable Function GetResourceHealthEventImpactedResource (impactedResourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ResourceHealthEventImpactedResource)

参数

impactedResourceName
String

受影响资源的名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

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

impactedResourceName 为 null。

适用于