Skip to main content

kafka_connector_topic_maps

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

Overview

Namekafka_connector_topic_maps
TypeResource
Idazure.iot_mq.kafka_connector_topic_maps

Fields

NameDatatypeDescription
batchingtextfield from the properties object
compressiontextfield from the properties object
copy_mqtt_propertiestextfield from the properties object
extended_locationtextfield from the properties object
kafkaConnectorNametextfield from the properties object
kafka_connector_reftextfield from the properties object
locationtextThe geo-location where the resource lives
mqNametextfield from the properties object
partition_key_propertytextfield from the properties object
partition_strategytextfield 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
getSELECTkafkaConnectorName, mqName, resourceGroupName, subscriptionId, topicMapNameGet a KafkaTopicMapResource
list_by_kafka_connector_resourceSELECTkafkaConnectorName, mqName, resourceGroupName, subscriptionIdList KafkaTopicMapResource resources by KafkaConnectorResource
create_or_updateINSERTkafkaConnectorName, mqName, resourceGroupName, subscriptionId, topicMapName, data__extendedLocationCreate a KafkaTopicMapResource
deleteDELETEkafkaConnectorName, mqName, resourceGroupName, subscriptionId, topicMapNameDelete a KafkaTopicMapResource
updateUPDATEkafkaConnectorName, mqName, resourceGroupName, subscriptionId, topicMapNameUpdate a KafkaTopicMapResource

SELECT examples

List KafkaTopicMapResource resources by KafkaConnectorResource

SELECT
batching,
compression,
copy_mqtt_properties,
extended_location,
kafkaConnectorName,
kafka_connector_ref,
location,
mqName,
partition_key_property,
partition_strategy,
provisioning_state,
resourceGroupName,
routes,
subscriptionId,
tags,
topicMapName
FROM azure.iot_mq.vw_kafka_connector_topic_maps
WHERE kafkaConnectorName = '{{ kafkaConnectorName }}'
AND mqName = '{{ mqName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a kafka_connector_topic_maps resource.

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

DELETE example

Deletes the specified kafka_connector_topic_maps resource.

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