Skip to main content

mqtt_bridge_topic_maps

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

Overview

Namemqtt_bridge_topic_maps
TypeResource
Idazure.iot_mq.mqtt_bridge_topic_maps

Fields

NameDatatypeDescription
extended_locationtextfield from the properties object
locationtextThe geo-location where the resource lives
mqNametextfield from the properties object
mqttBridgeConnectorNametextfield from the properties object
mqtt_bridge_connector_reftextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
routestextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
topicMapNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmqName, mqttBridgeConnectorName, resourceGroupName, subscriptionId, topicMapNameGet a MqttBridgeTopicMapResource
list_by_mqtt_bridge_connector_resourceSELECTmqName, mqttBridgeConnectorName, resourceGroupName, subscriptionIdList MqttBridgeTopicMapResource resources by MqttBridgeConnectorResource
create_or_updateINSERTmqName, mqttBridgeConnectorName, resourceGroupName, subscriptionId, topicMapName, data__extendedLocationCreate a MqttBridgeTopicMapResource
deleteDELETEmqName, mqttBridgeConnectorName, resourceGroupName, subscriptionId, topicMapNameDelete a MqttBridgeTopicMapResource
updateUPDATEmqName, mqttBridgeConnectorName, resourceGroupName, subscriptionId, topicMapNameUpdate a MqttBridgeTopicMapResource

SELECT examples

List MqttBridgeTopicMapResource resources by MqttBridgeConnectorResource

SELECT
extended_location,
location,
mqName,
mqttBridgeConnectorName,
mqtt_bridge_connector_ref,
provisioning_state,
resourceGroupName,
routes,
subscriptionId,
tags,
topicMapName
FROM azure.iot_mq.vw_mqtt_bridge_topic_maps
WHERE mqName = '{{ mqName }}'
AND mqttBridgeConnectorName = '{{ mqttBridgeConnectorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new mqtt_bridge_topic_maps resource.

/*+ create */
INSERT INTO azure.iot_mq.mqtt_bridge_topic_maps (
mqName,
mqttBridgeConnectorName,
resourceGroupName,
subscriptionId,
topicMapName,
data__extendedLocation,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ mqName }}',
'{{ mqttBridgeConnectorName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ topicMapName }}',
'{{ data__extendedLocation }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a mqtt_bridge_topic_maps resource.

/*+ update */
UPDATE azure.iot_mq.mqtt_bridge_topic_maps
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
mqName = '{{ mqName }}'
AND mqttBridgeConnectorName = '{{ mqttBridgeConnectorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND topicMapName = '{{ topicMapName }}';

DELETE example

Deletes the specified mqtt_bridge_topic_maps resource.

/*+ delete */
DELETE FROM azure.iot_mq.mqtt_bridge_topic_maps
WHERE mqName = '{{ mqName }}'
AND mqttBridgeConnectorName = '{{ mqttBridgeConnectorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND topicMapName = '{{ topicMapName }}';