Skip to main content

channels

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

Overview

Namechannels
TypeResource
Idazure.bot_service.channels

Fields

The following fields are returned by SELECT queries:

The resource provider should return 200 (OK) to indicate that the operation completed successfully.

NameDatatypeDescription
idstringSpecifies the resource ID.
namestringSpecifies the name of the resource.
etagstringEntity Tag.
kindstringRequired. Gets or sets the Kind of the resource.
locationstringSpecifies the location of the resource.
propertiesobjectThe set of properties specific to bot channel resource
skuobjectThe SKU of the cognitive services account.
tagsobjectContains resource tags defined as key/value pairs.
typestringSpecifies the type of the resource.
zonesarrayEntity zones

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, resourceName, channelName, subscriptionIdReturns a BotService Channel registration specified by the parameters.
list_with_keysselectresourceGroupName, resourceName, channelName, subscriptionIdLists a Channel registration for a Bot Service including secrets
list_by_resource_groupselectresourceGroupName, resourceName, subscriptionIdReturns all the Channel registrations of a particular BotService resource
createinsertresourceGroupName, resourceName, channelName, subscriptionIdCreates a Channel registration for a Bot Service
updateupdateresourceGroupName, resourceName, channelName, subscriptionIdUpdates a Channel registration for a Bot Service
deletedeleteresourceGroupName, resourceName, channelName, subscriptionIdDeletes a Channel registration from a Bot Service

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
channelNamestringThe name of the Bot resource.
resourceGroupNamestringThe name of the Bot resource group in the user subscription.
resourceNamestringThe name of the Bot resource.
subscriptionIdstringAzure Subscription ID.

SELECT examples

Returns a BotService Channel registration specified by the parameters.

SELECT
id,
name,
etag,
kind,
location,
properties,
sku,
tags,
type,
zones
FROM azure.bot_service.channels
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND resourceName = '{{ resourceName }}' -- required
AND channelName = '{{ channelName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates a Channel registration for a Bot Service

INSERT INTO azure.bot_service.channels (
data__location,
data__tags,
data__sku,
data__kind,
data__etag,
data__properties,
resourceGroupName,
resourceName,
channelName,
subscriptionId
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ sku }}',
'{{ kind }}',
'{{ etag }}',
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ channelName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
kind,
location,
properties,
sku,
tags,
type,
zones
;

UPDATE examples

Updates a Channel registration for a Bot Service

UPDATE azure.bot_service.channels
SET
data__location = '{{ location }}',
data__tags = '{{ tags }}',
data__sku = '{{ sku }}',
data__kind = '{{ kind }}',
data__etag = '{{ etag }}',
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND resourceName = '{{ resourceName }}' --required
AND channelName = '{{ channelName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
id,
name,
etag,
kind,
location,
properties,
sku,
tags,
type,
zones;

DELETE examples

Deletes a Channel registration from a Bot Service

DELETE FROM azure.bot_service.channels
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND resourceName = '{{ resourceName }}' --required
AND channelName = '{{ channelName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;