Share via


Web Apps - Create Or Update Host Name Binding

Uygulama için konak adı bağlaması oluşturur açıklaması.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings/{hostName}?api-version=2023-12-01

URI Parametreleri

Name İçinde Gerekli Tür Description
hostName
path True

string

Konak adı bağlamasında ana bilgisayar adı.

name
path True

string

Uygulamanın adı.

resourceGroupName
path True

string

Kaynağın ait olduğu kaynak grubunun adı.

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

subscriptionId
path True

string

Azure abonelik kimliğiniz. Bu GUID biçimli bir dizedir (örn. 000000000-0000-0000-0000-000000000000).

api-version
query True

string

API Sürümü

İstek Gövdesi

Name Tür Description
kind

string

Kaynak türü.

properties.azureResourceName

string

Azure kaynak adı.

properties.azureResourceType

AzureResourceType

Azure kaynak türü.

properties.customHostNameDnsRecordType

CustomHostNameDnsRecordType

Özel DNS kayıt türü.

properties.domainId

string

Tam ARM etki alanı kaynak URI'si.

properties.hostNameType

HostNameType

Ana bilgisayar adı türü.

properties.siteName

string

Uygulama adını App Service.

properties.sslState

SslState

SSL türü

properties.thumbprint

string

SSL sertifikası parmak izi

Yanıtlar

Name Tür Description
200 OK

HostNameBinding

Tamam

Other Status Codes

DefaultErrorResponse

hata yanıtı App Service.

Güvenlik

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 kullanıcı hesabınızın kimliğine bürünme

Tanımlar

Name Description
AzureResourceType

Azure kaynak türü.

CustomHostNameDnsRecordType

Özel DNS kayıt türü.

DefaultErrorResponse

hata yanıtı App Service.

Details
Error

Hata modeli.

HostNameBinding

Ana bilgisayar adı bağlama nesnesi.

HostNameType

Ana bilgisayar adı türü.

SslState

SSL türü

AzureResourceType

Azure kaynak türü.

Name Tür Description
TrafficManager

string

Website

string

CustomHostNameDnsRecordType

Özel DNS kayıt türü.

Name Tür Description
A

string

CName

string

DefaultErrorResponse

hata yanıtı App Service.

Name Tür Description
error

Error

Hata modeli.

Details

Name Tür Description
code

string

Hatayı program aracılığıyla tanımlamak için standartlaştırılmış dize.

message

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.

target

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.

Error

Hata modeli.

Name Tür Description
code

string

Hatayı program aracılığıyla tanımlamak için standartlaştırılmış dize.

details

Details[]

Ayrıntılı hatalar.

innererror

string

Hata ayıklamak için daha fazla bilgi.

message

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.

target

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.

HostNameBinding

Ana bilgisayar adı bağlama nesnesi.

Name Tür Description
id

string

Kaynak Kimliği.

kind

string

Kaynak türü.

name

string

Kaynak Adı.

properties.azureResourceName

string

Azure kaynak adı.

properties.azureResourceType

AzureResourceType

Azure kaynak türü.

properties.customHostNameDnsRecordType

CustomHostNameDnsRecordType

Özel DNS kayıt türü.

properties.domainId

string

Tam ARM etki alanı kaynak URI'si.

properties.hostNameType

HostNameType

Ana bilgisayar adı türü.

properties.siteName

string

Uygulama adını App Service.

properties.sslState

SslState

SSL türü

properties.thumbprint

string

SSL sertifikası parmak izi

properties.virtualIP

string

IP tabanlı SSL etkinse konak adına atanan sanal IP adresi.

type

string

Kaynak türü.

HostNameType

Ana bilgisayar adı türü.

Name Tür Description
Managed

string

Verified

string

SslState

SSL türü

Name Tür Description
Disabled

string

IpBasedEnabled

string

SniEnabled

string