Skip to main content

gateway_hostname_configurations

Creates, updates, deletes, gets or lists a gateway_hostname_configurations resource.

Overview

Namegateway_hostname_configurations
TypeResource
Idazure.api_management.gateway_hostname_configurations

Fields

NameDatatypeDescription
certificate_idtextfield from the properties object
gatewayIdtextfield from the properties object
hcIdtextfield from the properties object
hostnametextfield from the properties object
http2_enabledtextfield from the properties object
negotiate_client_certificatetextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
tls10_enabledtextfield from the properties object
tls11_enabledtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTgatewayId, hcId, resourceGroupName, serviceName, subscriptionIdGet details of a hostname configuration
list_by_serviceSELECTgatewayId, resourceGroupName, serviceName, subscriptionIdLists the collection of hostname configurations for the specified gateway.
create_or_updateINSERTgatewayId, hcId, resourceGroupName, serviceName, subscriptionIdCreates of updates hostname configuration for a Gateway.
deleteDELETEIf-Match, gatewayId, hcId, resourceGroupName, serviceName, subscriptionIdDeletes the specified hostname configuration from the specified Gateway.

SELECT examples

Lists the collection of hostname configurations for the specified gateway.

SELECT
certificate_id,
gatewayId,
hcId,
hostname,
http2_enabled,
negotiate_client_certificate,
resourceGroupName,
serviceName,
subscriptionId,
tls10_enabled,
tls11_enabled
FROM azure.api_management.vw_gateway_hostname_configurations
WHERE gatewayId = '{{ gatewayId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new gateway_hostname_configurations resource.

/*+ create */
INSERT INTO azure.api_management.gateway_hostname_configurations (
gatewayId,
hcId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ gatewayId }}',
'{{ hcId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified gateway_hostname_configurations resource.

/*+ delete */
DELETE FROM azure.api_management.gateway_hostname_configurations
WHERE If-Match = '{{ If-Match }}'
AND gatewayId = '{{ gatewayId }}'
AND hcId = '{{ hcId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';