Skip to main content

iot_dps_resource_keys_for_key_names

Creates, updates, deletes, gets or lists an iot_dps_resource_keys_for_key_names resource.

Overview

Nameiot_dps_resource_keys_for_key_names
TypeResource
Idazure.iot_hub_device_provisioning.iot_dps_resource_keys_for_key_names

Fields

The following fields are returned by SELECT queries:

This is a synchronous operation. The body contains a JSON-serialized shared access policy, including keys, that you can use to access one or more provisioning service endpoints.

NameDatatypeDescription
keyNamestringName of the key.
primaryKeystringPrimary SAS key value.
rightsstringRights that this key has.
secondaryKeystringSecondary SAS key value.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectprovisioningServiceName, keyName, subscriptionId, resourceGroupNameapi-versionList primary and secondary keys for a specific key name

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
keyNamestringLogical key name to get key-values for.
provisioningServiceNamestringName of the provisioning service.
resourceGroupNamestringThe name of the resource group that contains the provisioning service.
subscriptionIdstringThe subscription identifier.
api-versionstringThe version of the API.

SELECT examples

List primary and secondary keys for a specific key name

SELECT
keyName,
primaryKey,
rights,
secondaryKey
FROM azure.iot_hub_device_provisioning.iot_dps_resource_keys_for_key_names
WHERE provisioningServiceName = '{{ provisioningServiceName }}' -- required
AND keyName = '{{ keyName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND api-version = '{{ api-version }}'
;