Skip to main content

private_link_resources

Creates, updates, deletes, gets or lists a private_link_resources resource.

Overview

Nameprivate_link_resources
TypeResource
Idazure.iot_hub.private_link_resources

Fields

The following fields are returned by SELECT queries:

The body contains the specified of private link resource

NameDatatypeDescription
idstringThe resource identifier.
namestringThe resource name.
propertiesobjectThe properties for a group information object
typestringThe resource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, resourceName, groupIdapi-versionGet the specified private link resource for the given IotHub
listselectsubscriptionId, resourceGroupName, resourceNameapi-versionList private link resources for the given IotHub

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
groupIdstringThe name of the private link resource
resourceGroupNamestringThe name of the resource group that contains the IoT hub.
resourceNamestringThe name of the IoT hub.
subscriptionIdstringThe subscription identifier.
api-versionstringThe version of the API.

SELECT examples

Get the specified private link resource for the given IotHub

SELECT
id,
name,
properties,
type
FROM azure.iot_hub.private_link_resources
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND resourceName = '{{ resourceName }}' -- required
AND groupId = '{{ groupId }}' -- required
AND api-version = '{{ api-version }}'
;