Gateway Hostname Configuration - Create Or Update
Hiermee wordt de hostnaamconfiguratie voor een gateway bijgewerkt.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}?api-version=2024-05-01
URI-parameters
| Name | In | Vereist | Type | Description |
|---|---|---|---|---|
|
gateway
|
path | True |
string minLength: 1maxLength: 80 |
Gateway-entiteits-id. Moet uniek zijn in het huidige EXEMPLAAR van de API Management-service. Mag geen waarde 'beheerd' hebben |
|
hc
|
path | True |
string minLength: 1maxLength: 80 |
Configuratie-id van gatewayhostnaam. Moet uniek zijn in het bereik van de bovenliggende gateway-entiteit. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
De naam van de resourcegroep. De naam is niet hoofdlettergevoelig. |
|
service
|
path | True |
string minLength: 1maxLength: 50 pattern: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$ |
De naam van de API Management-service. |
|
subscription
|
path | True |
string (uuid) |
De id van het doelabonnement. De waarde moet een UUID zijn. |
|
api-version
|
query | True |
string minLength: 1 |
De API-versie die voor deze bewerking moet worden gebruikt. |
Aanvraagkoptekst
| Name | Vereist | Type | Description |
|---|---|---|---|
| If-Match |
string |
ETag van de entiteit. Niet vereist bij het maken van een entiteit, maar vereist bij het bijwerken van een entiteit. |
Aanvraagbody
| Name | Type | Description |
|---|---|---|
| properties.certificateId |
string |
Id van certificaatentiteit die wordt gebruikt voor het tot stand maken van TLS-verbindingen |
| properties.hostname |
string |
Hostnaamwaarde. Ondersteunt geldige domeinnaam, gedeeltelijk of volledig jokerteken |
| properties.http2Enabled |
boolean |
Hiermee geeft u op of HTTP/2.0 wordt ondersteund |
| properties.negotiateClientCertificate |
boolean |
Bepaalt of clientcertificaat voor gatewayaanvragen wordt aangevraagd |
| properties.tls10Enabled |
boolean |
Hiermee geeft u op of TLS 1.0 wordt ondersteund |
| properties.tls11Enabled |
boolean |
Hiermee geeft u op of TLS 1.1 wordt ondersteund |
Antwoorden
| Name | Type | Description |
|---|---|---|
| 200 OK |
De configuratiedetails van de hostnaam van de gateway zijn bijgewerkt. Kopteksten ETag: string |
|
| 201 Created |
De nieuwe configuratie van de gatewayhostnaam is gemaakt. Kopteksten ETag: string |
|
| Other Status Codes |
Foutreactie waarin wordt beschreven waarom de bewerking is mislukt. |
Beveiliging
azure_auth
OAuth2-stroom voor Azure Active Directory.
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
| Name | Description |
|---|---|
| user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
ApiManagementCreateGatewayHostnameConfiguration
Voorbeeldaanvraag
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/gateways/gw1/hostnameConfigurations/default?api-version=2024-05-01
{
"properties": {
"hostname": "*",
"certificateId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/certificates/cert1",
"negotiateClientCertificate": false,
"tls10Enabled": false,
"tls11Enabled": false,
"http2Enabled": true
}
}
Voorbeeldrespons
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/gateways/gw1/hostnameConfigurations/default",
"type": "Microsoft.ApiManagement/service/gateways/hostnameConfigurations",
"name": "default",
"properties": {
"hostname": "*",
"certificateId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/certificates/cert1",
"negotiateClientCertificate": false,
"tls10Enabled": false,
"tls11Enabled": false,
"http2Enabled": true
}
}
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/gateways/gw1/hostnameConfigurations/default",
"type": "Microsoft.ApiManagement/service/gateways/hostnameConfigurations",
"name": "default",
"properties": {
"hostname": "*",
"certificateId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/certificates/cert1",
"negotiateClientCertificate": false,
"tls10Enabled": false,
"tls11Enabled": false,
"http2Enabled": true
}
}
Definities
| Name | Description |
|---|---|
|
Error |
Aanvullende informatie over de resourcebeheerfout. |
|
Error |
De foutdetails. |
|
Error |
Foutreactie |
|
Gateway |
Configuratiedetails van gatewayhostnaam. |
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 |
De fout bevat aanvullende informatie. |
|
| code |
string |
De foutcode. |
| details |
De foutdetails. |
|
| message |
string |
Het foutbericht. |
| target |
string |
Het foutdoel. |
ErrorResponse
Foutreactie
| Name | Type | Description |
|---|---|---|
| error |
Het foutobject. |
GatewayHostnameConfigurationContract
Configuratiedetails van gatewayhostnaam.
| Name | Type | Description |
|---|---|---|
| id |
string |
Volledig gekwalificeerde resource-id voor de resource. Vb.: - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| name |
string |
De naam van de resource |
| properties.certificateId |
string |
Id van certificaatentiteit die wordt gebruikt voor het tot stand maken van TLS-verbindingen |
| properties.hostname |
string |
Hostnaamwaarde. Ondersteunt geldige domeinnaam, gedeeltelijk of volledig jokerteken |
| properties.http2Enabled |
boolean |
Hiermee geeft u op of HTTP/2.0 wordt ondersteund |
| properties.negotiateClientCertificate |
boolean |
Bepaalt of clientcertificaat voor gatewayaanvragen wordt aangevraagd |
| properties.tls10Enabled |
boolean |
Hiermee geeft u op of TLS 1.0 wordt ondersteund |
| properties.tls11Enabled |
boolean |
Hiermee geeft u op of TLS 1.1 wordt ondersteund |
| type |
string |
Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |