host_name_binding_slots
Creates, updates, deletes, gets or lists a host_name_binding_slots
resource.
Overview
Name | host_name_binding_slots |
Type | Resource |
Id | azure.app_service.host_name_binding_slots |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Resource Id. |
name | string | Resource Name. |
kind | string | Kind of resource. |
properties | object | HostNameBinding resource specific properties |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | hostName, name, resourceGroupName, slot, subscriptionId | Description for Get the named hostname binding for an app (or deployment slot, if specified). |
list | SELECT | name, resourceGroupName, slot, subscriptionId | Description for Get hostname bindings for an app or a deployment slot. |
create_or_update | INSERT | hostName, name, resourceGroupName, slot, subscriptionId | Description for Creates a hostname binding for an app. |
delete | DELETE | hostName, name, resourceGroupName, slot, subscriptionId | Description 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_binding_slots
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND slot = '{{ slot }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new host_name_binding_slots
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.app_service.host_name_binding_slots (
hostName,
name,
resourceGroupName,
slot,
subscriptionId,
kind,
properties
)
SELECT
'{{ hostName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ slot }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: kind
value: string
- name: type
value: string
- name: properties
value:
- name: siteName
value: string
- name: domainId
value: string
- name: azureResourceName
value: string
- name: azureResourceType
value: string
- name: customHostNameDnsRecordType
value: string
- name: hostNameType
value: string
- name: sslState
value: string
- name: thumbprint
value: string
- name: virtualIP
value: string
DELETE
example
Deletes the specified host_name_binding_slots
resource.
/*+ delete */
DELETE FROM azure.app_service.host_name_binding_slots
WHERE hostName = '{{ hostName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND slot = '{{ slot }}'
AND subscriptionId = '{{ subscriptionId }}';