DeletedSiteCollection.GetIfExists(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 Azure.NullableResponse<Azure.ResourceManager.AppService.DeletedSiteResource> GetIfExists (string deletedSiteId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.AppService.DeletedSiteResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.AppService.DeletedSiteResource>
Public Overridable Function GetIfExists (deletedSiteId As String, Optional cancellationToken As CancellationToken = Nothing) As 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