Skip to main content

keys

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

Overview

Namekeys
TypeResource
Idazure.web_pubsub.keys

Fields

The following fields are returned by SELECT queries:

Success. The response describes access keys of the resource.

NameDatatypeDescription
primaryConnectionStringstringConnection string constructed via the primaryKey
primaryKeystringThe primary access key.
secondaryConnectionStringstringConnection string constructed via the secondaryKey
secondaryKeystringThe secondary access key.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, resourceGroupName, resourceNameGet the access keys of the resource.

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 resource group. The name is case insensitive.
resourceNamestringThe name of the resource.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get the access keys of the resource.

SELECT
primaryConnectionString,
primaryKey,
secondaryConnectionString,
secondaryKey
FROM azure.web_pubsub.keys
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND resourceName = '{{ resourceName }}' -- required
;