resource_keys_for_key_names
Creates, updates, deletes, gets or lists a resource_keys_for_key_names
resource.
Overview
Name | resource_keys_for_key_names |
Type | Resource |
Id | azure.iot_hub.resource_keys_for_key_names |
Fields
Name | Datatype | Description |
---|---|---|
keyName | string | The name of the shared access policy. |
primaryKey | string | The primary key. |
rights | string | The permissions assigned to the shared access policy. |
secondaryKey | string | The secondary key. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | keyName, resourceGroupName, resourceName, subscriptionId | Get a shared access policy by name from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. |
SELECT
examples
Get a shared access policy by name from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
SELECT
keyName,
primaryKey,
rights,
secondaryKey
FROM azure.iot_hub.resource_keys_for_key_names
WHERE keyName = '{{ keyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';