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 |
---|---|---|---|---|
profile
|
path | True |
string |
Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. Regex pattern: |
resource
|
path | True |
string |
Name of the Resource group within the Azure subscription. Regex pattern: |
subscription
|
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 |
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 |
The secret type. |
|
secretVersion |
string |
Secret version, if customer is using a specific version. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
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 |
---|---|
Afd |
Error response |
Error |
The resource management error additional info. |
Error |
The error detail. |
Resource |
Reference to another resource. |
Secret |
The type of the secret resource. |
status |
The validation status. |
Validate |
Input of the secret to be validated. |
Validate |
Output of the validated secret. |
AfdErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
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 |
The error additional info. |
|
code |
string |
The error code. |
details |
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 |
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 |
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 |
The validation status. |