Skip to main content

iot_dps_resource_keys

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

Overview

Nameiot_dps_resource_keys
TypeResource
Idazure.iot_hub_device_provisioning.iot_dps_resource_keys

Fields

The following fields are returned by SELECT queries:

This is a synchronous operation. The body contains a JSON-serialized array of shared access policies, including keys, that you can use to access the 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, subscriptionId, resourceGroupNameapi-versionList the primary and secondary keys for a provisioning service.

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
provisioningServiceNamestringThe provisioning service name to get the shared access keys for.
resourceGroupNamestringresource group name
subscriptionIdstringThe subscription identifier.
api-versionstringThe version of the API.

SELECT examples

List the primary and secondary keys for a provisioning service.

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