Validate Probe - Validate Probe

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.

POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateProbe?api-version=2024-02-01

URI Parameters

Name In Required Type Description
subscriptionId
path True

string

Azure Subscription ID.

api-version
query True

string

Version of the API to be used with the client request. Current version is 2024-02-01.

Request Body

Name Required Type Description
probeURL True

string

The probe URL to validate.

Responses

Name Type Description
200 OK

ValidateProbeOutput

OK. The request has succeeded.

Other Status Codes

ErrorResponse

CDN error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

ValidateProbe

Sample Request

POST https://management.azure.com/subscriptions/subid/providers/Microsoft.Cdn/validateProbe?api-version=2024-02-01

{
  "probeURL": "https://www.bing.com/image"
}

Sample Response

{
  "isValid": true,
  "errorCode": "None",
  "message": null
}

Definitions

Name Description
ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

ValidateProbeInput

Input of the validate probe API.

ValidateProbeOutput

Output of the validate probe API.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

ValidateProbeInput

Input of the validate probe API.

Name Type Description
probeURL

string

The probe URL to validate.

ValidateProbeOutput

Output of the validate probe API.

Name Type Description
errorCode

string

Specifies the error code when the probe url is not accepted.

isValid

boolean

Indicates whether the probe URL is accepted or not.

message

string

The detailed error message describing why the probe URL is not accepted.