Partilhar via


ResourceHealthExtensions.GetAvailabilityStatusAsync Método

Definição

Obtém status de disponibilidade atuais para um único recurso

  • Caminho da Solicitação/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current
  • IdAvailabilityStatuses_GetByResource de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ResourceHealth.Models.ResourceHealthAvailabilityStatus>> GetAvailabilityStatusAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string filter = default, string expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAvailabilityStatusAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ResourceHealth.Models.ResourceHealthAvailabilityStatus>>
<Extension()>
Public Function GetAvailabilityStatusAsync (client As ArmClient, scope As ResourceIdentifier, Optional filter As String = Nothing, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ResourceHealthAvailabilityStatus))

Parâmetros

client
ArmClient

A ArmClient instância na qual o método será executado.

scope
ResourceIdentifier

O escopo ao qual o recurso será aplicado.

filter
String

O filtro a ser aplicado na operação. Para obter mais informações, consulte https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN.

expand
String

Definir $expand=recommendedactions na consulta url expande as recomendações na resposta.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a