Delen via


Web Apps - Create Or Update Host Name Binding

Beschrijving voor Maakt een hostnaambinding voor een app.

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

URI-parameters

Name In Vereist Type Description
hostName
path True

string

Hostnaam in de hostnaambinding.

name
path True

string

Naam van de app.

resourceGroupName
path True

string

Naam van de resourcegroep waartoe de resource behoort.

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

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

Aanvraagbody

Name Type Description
kind

string

Soort resource.

properties.azureResourceName

string

Azure-resourcenaam.

properties.azureResourceType

AzureResourceType

Azure-resourcetype.

properties.customHostNameDnsRecordType

CustomHostNameDnsRecordType

Aangepast DNS-recordtype.

properties.domainId

string

Volledig gekwalificeerde ARM-domeinresource-URI.

properties.hostNameType

HostNameType

Type hostnaam.

properties.siteName

string

App Service app-naam.

properties.sslState

SslState

SSL-type

properties.thumbprint

string

Vingerafdruk van SSL-certificaat

Antwoorden

Name Type Description
200 OK

HostNameBinding

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

Definities

Name Description
AzureResourceType

Azure-resourcetype.

CustomHostNameDnsRecordType

Aangepast DNS-recordtype.

DefaultErrorResponse

App Service foutreactie.

Details
Error

Foutmodel.

HostNameBinding

Een hostnaambindingsobject.

HostNameType

Type hostnaam.

SslState

SSL-type

AzureResourceType

Azure-resourcetype.

Name Type Description
TrafficManager

string

Website

string

CustomHostNameDnsRecordType

Aangepast DNS-recordtype.

Name Type Description
A

string

CName

string

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.

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.

HostNameBinding

Een hostnaambindingsobject.

Name Type Description
id

string

Resource-id.

kind

string

Soort resource.

name

string

Resourcenaam.

properties.azureResourceName

string

Azure-resourcenaam.

properties.azureResourceType

AzureResourceType

Azure-resourcetype.

properties.customHostNameDnsRecordType

CustomHostNameDnsRecordType

Aangepast DNS-recordtype.

properties.domainId

string

Volledig gekwalificeerde ARM-domeinresource-URI.

properties.hostNameType

HostNameType

Type hostnaam.

properties.siteName

string

App Service app-naam.

properties.sslState

SslState

SSL-type

properties.thumbprint

string

Vingerafdruk van SSL-certificaat

properties.virtualIP

string

Virtueel IP-adres dat is toegewezen aan de hostnaam als SSL op basis van IP is ingeschakeld.

type

string

Resourcetype.

HostNameType

Type hostnaam.

Name Type Description
Managed

string

Verified

string

SslState

SSL-type

Name Type Description
Disabled

string

IpBasedEnabled

string

SniEnabled

string