Skip to main content

gateway_hostname_configuration

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

Overview

Namegateway_hostname_configuration
TypeResource
Idazure.api_management.gateway_hostname_configuration

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
certificateIdstringIdentifier of Certificate entity that will be used for TLS connection establishment.
hostnamestringHostname value. Supports valid domain name, partial or full wildcard.
http2EnabledbooleanSpecifies if HTTP/2.0 is supported.
negotiateClientCertificatebooleanDetermines whether gateway requests client certificate.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tls10EnabledbooleanSpecifies if TLS 1.0 is supported.
tls11EnabledbooleanSpecifies if TLS 1.1 is supported.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, service_name, gateway_id, hc_id, subscription_idGet details of a hostname configuration.
list_by_serviceselectresource_group_name, service_name, gateway_id, subscription_id$filter, $top, $skipLists the collection of hostname configurations for the specified gateway.
create_or_updateinsertresource_group_name, service_name, gateway_id, hc_id, subscription_idCreates of updates hostname configuration for a Gateway.
create_or_updatereplaceresource_group_name, service_name, gateway_id, hc_id, subscription_idCreates of updates hostname configuration for a Gateway.
deletedeleteresource_group_name, service_name, gateway_id, hc_id, subscription_idDeletes the specified hostname configuration from the specified Gateway.
get_entity_tagexecresource_group_name, service_name, gateway_id, hc_id, subscription_idChecks that hostname configuration entity specified by identifier exists for specified Gateway entity.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
gateway_idstringGateway entity identifier. Must be unique in the current API Management service instance. Must not have value 'managed'. Required.
hc_idstringGateway hostname configuration identifier. Must be unique in the scope of parent Gateway entity. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
service_namestringThe name of the API Management service. Required.
subscription_idstring
$filterstring| Field | Usage | Supported operators | Supported functions ||-------------|-------------|-------------|-------------|| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith || hostname | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |. Default value is None.
$skipintegerNumber of records to skip. Default value is None.
$topintegerNumber of records to return. Default value is None.

SELECT examples

Get details of a hostname configuration.

SELECT
id,
name,
certificateId,
hostname,
http2Enabled,
negotiateClientCertificate,
systemData,
tls10Enabled,
tls11Enabled,
type
FROM azure.api_management.gateway_hostname_configuration
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND gateway_id = '{{ gateway_id }}' -- required
AND hc_id = '{{ hc_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates of updates hostname configuration for a Gateway.

INSERT INTO azure.api_management.gateway_hostname_configuration (
properties,
resource_group_name,
service_name,
gateway_id,
hc_id,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ gateway_id }}',
'{{ hc_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Creates of updates hostname configuration for a Gateway.

REPLACE azure.api_management.gateway_hostname_configuration
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND gateway_id = '{{ gateway_id }}' --required
AND hc_id = '{{ hc_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes the specified hostname configuration from the specified Gateway.

DELETE FROM azure.api_management.gateway_hostname_configuration
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND gateway_id = '{{ gateway_id }}' --required
AND hc_id = '{{ hc_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Checks that hostname configuration entity specified by identifier exists for specified Gateway entity.

EXEC azure.api_management.gateway_hostname_configuration.get_entity_tag 
@resource_group_name='{{ resource_group_name }}' --required,
@service_name='{{ service_name }}' --required,
@gateway_id='{{ gateway_id }}' --required,
@hc_id='{{ hc_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
;