CdnExtensions.ValidateProbeAsync Method

Definition

Check if the probe path is a valid path and the file can be accessed. Probe path is the path to a file hosted on the origin server to help accelerate the delivery of dynamic content via the CDN endpoint. This path is relative to the origin path specified in the endpoint configuration. <item> Mocking. To mock this method, please mock ValidateProbeAsync(ValidateProbeContent, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.Models.ValidateProbeResult>> ValidateProbeAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Cdn.Models.ValidateProbeContent content, System.Threading.CancellationToken cancellationToken = default);
static member ValidateProbeAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Cdn.Models.ValidateProbeContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.Models.ValidateProbeResult>>
<Extension()>
Public Function ValidateProbeAsync (subscriptionResource As SubscriptionResource, content As ValidateProbeContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ValidateProbeResult))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

content
ValidateProbeContent

The request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource is null.

Applies to