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

ApplicationInsightsComponentResource.GetPurgeStatusAsync Method

Definition

Get status for an ongoing purge operation.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}
  • Operation Id: Components_GetPurgeStatus
  • Default Api Version: 2020-02-02
  • Resource: ApplicationInsightsComponentResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ComponentPurgeStatusResult>> GetPurgeStatusAsync (string purgeId, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ComponentPurgeStatusResponse>> GetPurgeStatusAsync (string purgeId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPurgeStatusAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ComponentPurgeStatusResult>>
override this.GetPurgeStatusAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ComponentPurgeStatusResult>>
abstract member GetPurgeStatusAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ComponentPurgeStatusResponse>>
override this.GetPurgeStatusAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ComponentPurgeStatusResponse>>
Public Overridable Function GetPurgeStatusAsync (purgeId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ComponentPurgeStatusResult))
Public Overridable Function GetPurgeStatusAsync (purgeId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ComponentPurgeStatusResponse))

Parameters

purgeId
String

In a purge status request, this is the Id of the operation the status of which is returned.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

purgeId is an empty string, and was expected to be non-empty.

purgeId is null.

Applies to