Delen via


AFD Profiles - Validate Secret

Valideer een geheim in het profiel.

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

URI-parameters

Name In Vereist Type Description
profileName
path True

string

minLength: 1
maxLength: 260
pattern: ^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$

De naam van de Azure Front Door Standard of Azure Front Door Premium die uniek is binnen de resourcegroep.

resourceGroupName
path True

string

minLength: 1
maxLength: 90
pattern: ^[-\w\._\(\)]+$

Naam van de resourcegroep binnen het Azure-abonnement.

subscriptionId
path True

string

Azure-abonnements-id.

api-version
query True

string

Versie van de API die moet worden gebruikt met de clientaanvraag. De huidige versie is 2025-04-15.

Aanvraagbody

Name Vereist 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

Geheime versie, als de klant een specifieke versie gebruikt.

Antwoorden

Name Type Description
200 OK

ValidateSecretOutput

OK

Other Status Codes

AfdErrorResponse

Azure Front Door-foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

Validate_Secret

Voorbeeldaanvraag

POST https://management.azure.com/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/validateSecret?api-version=2025-04-15

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

Voorbeeldrespons

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

Definities

Name Description
AfdErrorResponse

Foutreactie

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ResourceReference

Verwijzing naar een andere resource.

SecretType

The type of the secret resource.

status

De validatiestatus.

ValidateSecretInput

Invoer van het geheim dat moet worden gevalideerd.

ValidateSecretOutput

Uitvoer van het gevalideerde geheim.

AfdErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het extra informatietype.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ResourceReference

Verwijzing naar een andere resource.

Name Type Description
id

string

Resource ID.

SecretType

The type of the secret resource.

Waarde Description
AzureFirstPartyManagedCertificate
CustomerCertificate
ManagedCertificate
UrlSigningKey

status

De validatiestatus.

Waarde Description
AccessDenied
CertificateExpired
Invalid
Valid

ValidateSecretInput

Invoer van het geheim dat moet worden gevalideerd.

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

Geheime versie, als de klant een specifieke versie gebruikt.

ValidateSecretOutput

Uitvoer van het gevalideerde geheim.

Name Type Description
message

string

Gedetailleerd foutbericht

status

status

De validatiestatus.