Use this data source to access information about an existing IotHub Device Provisioning Service.
data "azurerm_iothub_dps" "example" {
name = "iot_hub_dps_test"
resource_group_name = "iothub_dps_rg"
}
The following arguments are supported:
name
- Specifies the name of the Iot Device Provisioning Service resource.
resource_group_name
- The name of the resource group under which the Iot Device Provisioning Service is located in.
The following attributes are exported:
id
- The ID of the IoT Device Provisioning Service.
location
- Specifies the supported Azure location where the IoT Device Provisioning Service exists.
allocation_policy
- The allocation policy of the IoT Device Provisioning Service.
device_provisioning_host_name
- The device endpoint of the IoT Device Provisioning Service.
id_scope
- The unique identifier of the IoT Device Provisioning Service.
service_operations_host_name
- The service endpoint of the IoT Device Provisioning Service.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the IoT Hub Device Provisioning Service.