iot_dps_resource_keys_for_key_names
Creates, updates, deletes, gets or lists a iot_dps_resource_keys_for_key_names
resource.
Overview
Name | iot_dps_resource_keys_for_key_names |
Type | Resource |
Id | azure.iot_hub_device_provisioning.iot_dps_resource_keys_for_key_names |
Fields
Name | Datatype | Description |
---|---|---|
keyName | string | Name of the key. |
primaryKey | string | Primary SAS key value. |
rights | string | Rights that this key has. |
secondaryKey | string | Secondary SAS key value. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT | keyName, provisioningServiceName, resourceGroupName, subscriptionId | List 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 }}';