Bagikan melalui


Container Apps - List Custom Host Name Analysis

Menganalisis nama host kustom untuk Aplikasi Kontainer

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listCustomHostNameAnalysis?api-version=2023-08-01-preview
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listCustomHostNameAnalysis?customHostname={customHostname}&api-version=2023-08-01-preview

Parameter URI

Nama Dalam Diperlukan Jenis Deskripsi
containerAppName
path True

string

Nama Aplikasi Kontainer.

resourceGroupName
path True

string

Nama grup sumber daya. Nama tidak peka huruf besar/kecil.

subscriptionId
path True

string

ID langganan target.

api-version
query True

string

Versi API yang digunakan untuk operasi ini.

customHostname
query

string

Nama host kustom.

Respons

Nama Jenis Deskripsi
200 OK

CustomHostnameAnalysisResult

OK

Other Status Codes

DefaultErrorResponse

Respons kesalahan umum.

Keamanan

azure_auth

Alur OAuth2 Azure Active Directory

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

Scopes

Nama Deskripsi
user_impersonation meniru akun pengguna Anda

Contoh

Analyze Custom Hostname

Sample Request

POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerapp0/listCustomHostNameAnalysis?customHostname=my.name.corp&api-version=2023-08-01-preview

Sample Response

{
  "hostName": "my.name.corp",
  "isHostnameAlreadyVerified": true,
  "customDomainVerificationTest": "Passed",
  "customDomainVerificationFailureInfo": {},
  "hasConflictOnManagedEnvironment": false,
  "conflictingContainerAppResourceId": "",
  "cNameRecords": [
    "cNameRecord1",
    "cNameRecord2"
  ],
  "txtRecords": [
    "txtRecord1",
    "txtRecord2"
  ],
  "aRecords": [
    "aRecord1",
    "aRecord2"
  ],
  "alternateCNameRecords": [
    "cNameRecord1",
    "cNameRecord2"
  ],
  "alternateTxtRecords": [
    "txtRecord1",
    "txtRecord2"
  ]
}

Definisi

Nama Deskripsi
CustomDomainVerificationFailureInfo

Informasi kegagalan mentah jika verifikasi DNS gagal.

CustomHostnameAnalysisResult

Analisis domain kustom.

DefaultErrorResponse

App Service respons kesalahan.

Details

Detail atau kesalahan

DnsVerificationTestResult

Hasil pengujian verifikasi DNS.

Error

Model kesalahan.

CustomDomainVerificationFailureInfo

Informasi kegagalan mentah jika verifikasi DNS gagal.

Nama Jenis Deskripsi
code

string

String standar untuk mengidentifikasi kesalahan secara terprogram.

details

Details[]

Detail atau kesalahan

message

string

Deskripsi kesalahan terperinci dan informasi penelusuran kesalahan.

target

string

Deskripsi kesalahan terperinci dan informasi penelusuran kesalahan.

CustomHostnameAnalysisResult

Analisis domain kustom.

Nama Jenis Deskripsi
aRecords

string[]

Rekaman yang terlihat untuk nama host ini.

alternateCNameRecords

string[]

Rekaman CName alternatif terlihat untuk nama host ini.

alternateTxtRecords

string[]

Rekaman TXT alternatif terlihat untuk nama host ini.

cNameRecords

string[]

Rekaman CName terlihat untuk nama host ini.

conflictWithEnvironmentCustomDomain

boolean

true jika ada konflik pada domain kustom tingkat lingkungan terkelola Aplikasi Kontainer; jika tidak, false.

conflictingContainerAppResourceId

string

Nama Aplikasi Kontainer yang berkonflik di Lingkungan Terkelola jika berada dalam langganan yang sama.

customDomainVerificationFailureInfo

CustomDomainVerificationFailureInfo

Informasi kegagalan mentah jika verifikasi DNS gagal.

customDomainVerificationTest

DnsVerificationTestResult

Hasil pengujian verifikasi DNS.

hasConflictOnManagedEnvironment

boolean

true jika ada konflik pada lingkungan terkelola Aplikasi Kontainer; jika tidak, false.

hostName

string

Nama host yang dianalisis

isHostnameAlreadyVerified

boolean

true jika nama host sudah diverifikasi; jika tidak, false.

txtRecords

string[]

Catatan TXT terlihat untuk nama host ini.

DefaultErrorResponse

App Service respons kesalahan.

Nama Jenis Deskripsi
error

Error

Model kesalahan.

Details

Detail atau kesalahan

Nama Jenis Deskripsi
code

string

String standar untuk mengidentifikasi kesalahan secara terprogram.

message

string

Deskripsi kesalahan terperinci dan informasi penelusuran kesalahan.

target

string

Deskripsi kesalahan terperinci dan informasi penelusuran kesalahan.

DnsVerificationTestResult

Hasil pengujian verifikasi DNS.

Nama Jenis Deskripsi
Failed

string

Passed

string

Skipped

string

Error

Model kesalahan.

Nama Jenis Deskripsi
code

string

String standar untuk mengidentifikasi kesalahan secara terprogram.

details

Details[]

Detail atau kesalahan

innererror

string

Informasi selengkapnya untuk men-debug kesalahan.

message

string

Deskripsi kesalahan terperinci dan informasi penelusuran kesalahan.

target

string

Deskripsi kesalahan terperinci dan informasi penelusuran kesalahan.