Delen via


Web Apps - Analyze Custom Hostname Slot

Beschrijving voor Een aangepaste hostnaam analyseren.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/analyzeCustomHostname?api-version=2023-12-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/analyzeCustomHostname?hostName={hostName}&api-version=2023-12-01

URI-parameters

Name In Vereist Type Description
name
path True

string

Naam van web-app.

resourceGroupName
path True

string

Naam van de resourcegroep waartoe de resource behoort.

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

slot
path True

string

Naam van web-app-site. Als dit niet is opgegeven, wordt standaard de productiesite gebruikt.

subscriptionId
path True

string

Uw Azure-abonnements-id. Dit is een tekenreeks met GUID-indeling (bijvoorbeeld 00000000-0000-0000-0000-000000000000).

api-version
query True

string

API-versie

hostName
query

string

Aangepaste hostnaam.

Antwoorden

Name Type Description
200 OK

CustomHostnameAnalysisResult

OK

Other Status Codes

DefaultErrorResponse

App Service foutreactie.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

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

Bereiken

Name Description
user_impersonation uw gebruikersaccount imiteren

Voorbeelden

Analyze custom hostname for slot

Voorbeeldaanvraag

GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/staging/analyzeCustomHostname?api-version=2023-12-01

Voorbeeldrespons

{
  "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/staging",
  "name": "sitef6141/staging",
  "type": "Microsoft.Web/sites/stagings",
  "properties": {
    "isHostnameAlreadyVerified": true,
    "customDomainVerificationTest": "Passed",
    "customDomainVerificationFailureInfo": {
      "code": "07198",
      "message": "Custom domain verification failed on conflicting CNAMEs."
    },
    "hasConflictOnScaleUnit": false,
    "hasConflictAcrossSubscription": true,
    "conflictingAppResourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/siteog/slots/qa",
    "cNameRecords": [
      "siteog.azurewebsites.net"
    ]
  }
}

Definities

Name Description
CustomHostnameAnalysisResult

Analyse van aangepaste domeinen.

DefaultErrorResponse

App Service foutreactie.

Details
DnsVerificationTestResult

Testresultaat voor DNS-verificatie.

Error

Foutmodel.

ErrorEntity

Hoofdtekst van het foutbericht dat is geretourneerd door de API.

CustomHostnameAnalysisResult

Analyse van aangepaste domeinen.

Name Type Description
id

string

Resource-id.

kind

string

Soort resource.

name

string

Resourcenaam.

properties.aRecords

string[]

Een recordcontroller kan deze hostnaam zien.

properties.alternateCNameRecords

string[]

Alternatieve CName-recordcontroller kan zien voor deze hostnaam.

properties.alternateTxtRecords

string[]

Alternatieve TXT-recordcontroller kan zien voor deze hostnaam.

properties.cNameRecords

string[]

CName-recordcontroller kan zien voor deze hostnaam.

properties.conflictingAppResourceId

string

Naam van de conflicterende app op schaaleenheid als deze zich binnen hetzelfde abonnement bevindt.

properties.customDomainVerificationFailureInfo

ErrorEntity

Onbewerkte foutinformatie als DNS-verificatie mislukt.

properties.customDomainVerificationTest

DnsVerificationTestResult

Testresultaat voor DNS-verificatie.

properties.hasConflictAcrossSubscription

boolean

true als er een conflict is tussen abonnementen; anders, false.

properties.hasConflictOnScaleUnit

boolean

true als er een conflict is op een schaaleenheid; anders, false.

properties.isHostnameAlreadyVerified

boolean

true als hostnaam al is geverifieerd; anders, false.

properties.txtRecords

string[]

De TXT-recordcontroller kan deze hostnaam zien.

type

string

Resourcetype.

DefaultErrorResponse

App Service foutreactie.

Name Type Description
error

Error

Foutmodel.

Details

Name Type Description
code

string

Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren.

message

string

Gedetailleerde foutbeschrijving en foutopsporingsinformatie.

target

string

Gedetailleerde foutbeschrijving en foutopsporingsinformatie.

DnsVerificationTestResult

Testresultaat voor DNS-verificatie.

Name Type Description
Failed

string

Passed

string

Skipped

string

Error

Foutmodel.

Name Type Description
code

string

Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren.

details

Details[]

Gedetailleerde fouten.

innererror

string

Meer informatie over foutopsporing.

message

string

Gedetailleerde foutbeschrijving en foutopsporingsinformatie.

target

string

Gedetailleerde foutbeschrijving en foutopsporingsinformatie.

ErrorEntity

Hoofdtekst van het foutbericht dat is geretourneerd door de API.

Name Type Description
code

string

Basisfoutcode.

details

ErrorEntity[]

Foutdetails.

extendedCode

string

Type fout.

innerErrors

ErrorEntity[]

Interne fouten.

message

string

Eventuele details van de fout.

messageTemplate

string

Berichtsjabloon.

parameters

string[]

Parameters voor de sjabloon.

target

string

Het foutdoel.