Compartilhar via


ResourceGraphExtensions.GetResourceHistoryAsync Método

Definição

Liste todos os instantâneos de um recurso para um determinado intervalo de tempo.

  • Caminho/provedores de solicitação/Microsoft.ResourceGraph/resourcesHistory
  • Operação IdResourcesHistory
public static System.Threading.Tasks.Task<Azure.Response<BinaryData>> GetResourceHistoryAsync (this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.ResourceGraph.Models.ResourcesHistoryContent content, System.Threading.CancellationToken cancellationToken = default);
static member GetResourceHistoryAsync : Azure.ResourceManager.Resources.TenantResource * Azure.ResourceManager.ResourceGraph.Models.ResourcesHistoryContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<BinaryData>>
<Extension()>
Public Function GetResourceHistoryAsync (tenantResource As TenantResource, content As ResourcesHistoryContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BinaryData))

Parâmetros

tenantResource
TenantResource

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

content
ResourcesHistoryContent

Solicitação especificando a consulta e suas opções.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a