Skip to main content

kafka_connectors

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

Overview

Namekafka_connectors
TypeResource
Idazure.iot_mq.kafka_connectors

Fields

NameDatatypeDescription
client_id_prefixtextfield from the properties object
extended_locationtextfield from the properties object
imagetextfield from the properties object
instancestextfield from the properties object
kafkaConnectorNametextfield from the properties object
kafka_connectiontextfield from the properties object
local_broker_connectiontextfield from the properties object
locationtextThe geo-location where the resource lives
log_leveltextfield from the properties object
mqNametextfield from the properties object
node_tolerationstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTkafkaConnectorName, mqName, resourceGroupName, subscriptionIdGet a KafkaConnectorResource
list_by_mq_resourceSELECTmqName, resourceGroupName, subscriptionIdList KafkaConnectorResource resources by MqResource
create_or_updateINSERTkafkaConnectorName, mqName, resourceGroupName, subscriptionId, data__extendedLocationCreate a KafkaConnectorResource
deleteDELETEkafkaConnectorName, mqName, resourceGroupName, subscriptionIdDelete a KafkaConnectorResource
updateUPDATEkafkaConnectorName, mqName, resourceGroupName, subscriptionIdUpdate a KafkaConnectorResource

SELECT examples

List KafkaConnectorResource resources by MqResource

SELECT
client_id_prefix,
extended_location,
image,
instances,
kafkaConnectorName,
kafka_connection,
local_broker_connection,
location,
log_level,
mqName,
node_tolerations,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.iot_mq.vw_kafka_connectors
WHERE mqName = '{{ mqName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a kafka_connectors resource.

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

DELETE example

Deletes the specified kafka_connectors resource.

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