AFD Profiles - Validate Secret

Validate a Secret in the profile.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/validateSecret?api-version=2023-05-01

URI Parameters

Name In Required Type Description
profileName
path True

string

Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group.

Regex pattern: ^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$

resourceGroupName
path True

string

Name of the Resource group within the Azure subscription.

Regex pattern: ^[-\w\._\(\)]+$

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 2023-05-01.

Request Body

Name Required Type Description
secretSource True

ResourceReference

Resource reference to the Azure Key Vault secret. Expected to be in format of /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{secretName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

secretType True

SecretType

The secret type.

secretVersion

string

Secret version, if customer is using a specific version.

Responses

Name Type Description
200 OK

ValidateSecretOutput

OK

Other Status Codes

AfdErrorResponse

Azure Front Door 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

Validate_Secret

Sample Request

POST https://management.azure.com/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/validateSecret?api-version=2023-05-01

{
  "secretSource": {
    "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.KeyVault/vault/kvName/certificate/certName"
  },
  "secretType": "CustomerCertificate"
}

Sample Response

{
  "status": "Valid",
  "message": null
}

Definitions

Name Description
AfdErrorResponse

Error response

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ResourceReference

Reference to another resource.

SecretType

The type of the secret resource.

status

The validation status.

ValidateSecretInput

Input of the secret to be validated.

ValidateSecretOutput

Output of the validated secret.

AfdErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

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.

ResourceReference

Reference to another resource.

Name Type Description
id

string

Resource ID.

SecretType

The type of the secret resource.

Name Type Description
AzureFirstPartyManagedCertificate

string

CustomerCertificate

string

ManagedCertificate

string

UrlSigningKey

string

status

The validation status.

Name Type Description
AccessDenied

string

CertificateExpired

string

Invalid

string

Valid

string

ValidateSecretInput

Input of the secret to be validated.

Name Type Description
secretSource

ResourceReference

Resource reference to the Azure Key Vault secret. Expected to be in format of /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{secretName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

secretType

SecretType

The secret type.

secretVersion

string

Secret version, if customer is using a specific version.

ValidateSecretOutput

Output of the validated secret.

Name Type Description
message

string

Detailed error message

status

status

The validation status.