Compartilhar via


TenantResourceHealthEventImpactedResourceCollection.GetIfExists Método

Definição

Tenta obter detalhes desse recurso do serviço.

  • Caminho da Solicitação/provedores/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}
  • IdImpactedResources_GetByTenantId de operação
public virtual Azure.NullableResponse<Azure.ResourceManager.ResourceHealth.TenantResourceHealthEventImpactedResource> GetIfExists (string impactedResourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ResourceHealth.TenantResourceHealthEventImpactedResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ResourceHealth.TenantResourceHealthEventImpactedResource>
Public Overridable Function GetIfExists (impactedResourceName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of TenantResourceHealthEventImpactedResource)

Parâmetros

impactedResourceName
String

Nome do recurso afetado.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

impactedResourceName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

impactedResourceName é nulo.

Aplica-se a