Skip to main content

iot_dps_resource_keys_for_key_names

Creates, updates, deletes, gets or lists a 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

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

Methods

NameAccessible byRequired ParamsDescription
listSELECTkeyName, provisioningServiceName, resourceGroupName, subscriptionIdList primary and secondary keys for a specific key name

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 keyName = '{{ keyName }}'
AND provisioningServiceName = '{{ provisioningServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';