Skip to main content

bots

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

Overview

Namebots
TypeResource
Idazure.bot_service.bots

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 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, subscriptionIdReturns a BotService specified by the parameters.
list_by_resource_groupselectresourceGroupName, subscriptionIdReturns all the resources of a particular type belonging to a resource group
listselectsubscriptionIdReturns all the resources of a particular type belonging to a subscription.
createinsertresourceGroupName, resourceName, subscriptionIdCreates a Bot Service. Bot Service is a resource group wide resource type.
updateupdateresourceGroupName, resourceName, subscriptionIdUpdates a Bot Service
deletedeleteresourceGroupName, resourceName, subscriptionIdDeletes a Bot Service from the resource group.

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
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 specified by the parameters.

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

INSERT examples

Creates a Bot Service. Bot Service is a resource group wide resource type.

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

UPDATE examples

Updates a Bot Service

UPDATE azure.bot_service.bots
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 subscriptionId = '{{ subscriptionId }}' --required
RETURNING
id,
name,
etag,
kind,
location,
properties,
sku,
tags,
type,
zones;

DELETE examples

Deletes a Bot Service from the resource group.

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