Skip to main content

bots

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

Overview

Namebots
TypeResource
Idazure_extras.health_bot.bots

Fields

The following fields are returned by SELECT queries:

If resource is got successfully, the service should return 200.

NameDatatypeDescription
identityobjectThe identity of the Azure Health Bot.
locationstringThe geo-location where the resource lives
propertiesobjectThe set of properties specific to Azure Health Bot resource. (title: HealthBotProperties)
skuobjectSKU of the Azure Health Bot.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, botNameGet a HealthBot.
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.
createinsertsubscriptionId, resourceGroupName, botName, data__skuCreate a new Azure Health Bot.
updateupdatesubscriptionId, resourceGroupName, botNamePatch a HealthBot.
deletedeletesubscriptionId, resourceGroupName, botNameDelete a HealthBot.
regenerate_api_jwt_secretexecsubscriptionId, resourceGroupName, botNameRegenerate the API JWT Secret of a HealthBot.

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

SELECT examples

Get a HealthBot.

SELECT
identity,
location,
properties,
sku,
tags
FROM azure_extras.health_bot.bots
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND botName = '{{ botName }}' -- required
;

INSERT examples

Create a new Azure Health Bot.

INSERT INTO azure_extras.health_bot.bots (
data__tags,
data__location,
data__sku,
data__identity,
data__properties,
subscriptionId,
resourceGroupName,
botName
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ sku }}' /* required */,
'{{ identity }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ botName }}'
RETURNING
identity,
location,
properties,
sku,
tags
;

UPDATE examples

Patch a HealthBot.

UPDATE azure_extras.health_bot.bots
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}',
data__sku = '{{ sku }}',
data__identity = '{{ identity }}',
data__location = '{{ location }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND botName = '{{ botName }}' --required
RETURNING
identity,
location,
properties,
sku,
tags;

DELETE examples

Delete a HealthBot.

DELETE FROM azure_extras.health_bot.bots
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND botName = '{{ botName }}' --required
;

Lifecycle Methods

Regenerate the API JWT Secret of a HealthBot.

EXEC azure_extras.health_bot.bots.regenerate_api_jwt_secret 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@botName='{{ botName }}' --required
;