resource_keys
Creates, updates, deletes, gets or lists a resource_keys
resource.
Overview
Name | resource_keys |
Type | Resource |
Id | azure.iot_hub.resource_keys |
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 |
---|---|---|---|
list | SELECT | resourceGroupName, resourceName, subscriptionId | Get the security metadata for an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. |
SELECT
examples
Get the security metadata for 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
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';