Share via


DeletedSiteCollection.GetIfExistsAsync(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}
  • Operation Id: Global_GetDeletedWebApp
  • Default Api Version: 2023-12-01
  • Resource: DeletedSiteResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.AppService.DeletedSiteResource>> GetIfExistsAsync (string deletedSiteId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.AppService.DeletedSiteResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.AppService.DeletedSiteResource>>
Public Overridable Function GetIfExistsAsync (deletedSiteId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of DeletedSiteResource))

Parameters

deletedSiteId
String

The numeric ID of the deleted app, e.g. 12345.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

deletedSiteId is null.

Applies to