Skip to main content

channels

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

Overview

Namechannels
TypeResource
Idazure.bot_service.channels

Fields

NameDatatypeDescription
idtextSpecifies the resource ID.
nametextSpecifies the name of the resource.
channelNametextfield from the properties object
channel_nametextfield from the properties object
etagtextEntity Tag.
kindtextIndicates the type of bot service
locationtextSpecifies the location of the resource.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
skutextThe SKU of the cognitive services account.
subscriptionIdtextfield from the properties object
tagstextContains resource tags defined as key/value pairs.
typetextSpecifies the type of the resource.
zonestextEntity zones

Methods

NameAccessible byRequired ParamsDescription
getSELECTchannelName, resourceGroupName, resourceName, subscriptionIdReturns a BotService Channel registration specified by the parameters.
list_by_resource_groupSELECTresourceGroupName, resourceName, subscriptionIdReturns all the Channel registrations of a particular BotService resource
list_with_keysSELECTchannelName, resourceGroupName, resourceName, subscriptionIdLists a Channel registration for a Bot Service including secrets
createINSERTchannelName, resourceGroupName, resourceName, subscriptionIdCreates a Channel registration for a Bot Service
deleteDELETEchannelName, resourceGroupName, resourceName, subscriptionIdDeletes a Channel registration from a Bot Service
updateUPDATEchannelName, resourceGroupName, resourceName, subscriptionIdUpdates a Channel registration for a Bot Service

SELECT examples

Returns all the Channel registrations of a particular BotService resource

SELECT
id,
name,
channelName,
channel_name,
etag,
kind,
location,
provisioning_state,
resourceGroupName,
resourceName,
sku,
subscriptionId,
tags,
type,
zones
FROM azure.bot_service.vw_channels
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.bot_service.channels (
channelName,
resourceGroupName,
resourceName,
subscriptionId,
location,
tags,
sku,
kind,
etag,
properties
)
SELECT
'{{ channelName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ sku }}',
'{{ kind }}',
'{{ etag }}',
'{{ properties }}'
;

UPDATE example

Updates a channels resource.

/*+ update */
UPDATE azure.bot_service.channels
SET
location = '{{ location }}',
tags = '{{ tags }}',
sku = '{{ sku }}',
kind = '{{ kind }}',
etag = '{{ etag }}',
properties = '{{ properties }}'
WHERE
channelName = '{{ channelName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified channels resource.

/*+ delete */
DELETE FROM azure.bot_service.channels
WHERE channelName = '{{ channelName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';