Skip to main content

host_name_bindings

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

Overview

Namehost_name_bindings
TypeResource
Idazure.app_service.host_name_bindings

Fields

NameDatatypeDescription
idstringResource Id.
namestringResource Name.
kindstringKind of resource.
propertiesobjectHostNameBinding resource specific properties
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECThostName, name, resourceGroupName, subscriptionIdDescription for Get the named hostname binding for an app (or deployment slot, if specified).
listSELECTname, resourceGroupName, subscriptionIdDescription for Get hostname bindings for an app or a deployment slot.
create_or_updateINSERThostName, name, resourceGroupName, subscriptionIdDescription for Creates a hostname binding for an app.
deleteDELETEhostName, name, resourceGroupName, subscriptionIdDescription for Deletes a hostname binding for an app.

SELECT examples

Description for Get hostname bindings for an app or a deployment slot.

SELECT
id,
name,
kind,
properties,
type
FROM azure.app_service.host_name_bindings
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.app_service.host_name_bindings (
hostName,
name,
resourceGroupName,
subscriptionId,
kind,
properties
)
SELECT
'{{ hostName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ properties }}'
;

DELETE example

Deletes the specified host_name_bindings resource.

/*+ delete */
DELETE FROM azure.app_service.host_name_bindings
WHERE hostName = '{{ hostName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';