Skip to main content

kafka_configurations

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

Overview

Namekafka_configurations
TypeResource
Idazure.purview.kafka_configurations

Fields

NameDatatypeDescription
idtextGets or sets the identifier.
nametextGets or sets the name.
accountNametextfield from the properties object
consumer_grouptextfield from the properties object
credentialstextfield from the properties object
event_hub_partition_idtextfield from the properties object
event_hub_resource_idtextfield from the properties object
event_hub_typetextfield from the properties object
event_streaming_statetextfield from the properties object
event_streaming_typetextfield from the properties object
kafkaConfigurationNametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextGets or sets the type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, kafkaConfigurationName, resourceGroupName, subscriptionIdGets the kafka configuration for the account
list_by_accountSELECTaccountName, resourceGroupName, subscriptionIdLists the Kafka configurations in the Account
create_or_updateINSERTaccountName, kafkaConfigurationName, resourceGroupName, subscriptionIdCreate or update Kafka Configuration
deleteDELETEaccountName, kafkaConfigurationName, resourceGroupName, subscriptionIdDeletes a KafkaConfiguration resource.

SELECT examples

Lists the Kafka configurations in the Account

SELECT
id,
name,
accountName,
consumer_group,
credentials,
event_hub_partition_id,
event_hub_resource_id,
event_hub_type,
event_streaming_state,
event_streaming_type,
kafkaConfigurationName,
resourceGroupName,
subscriptionId,
system_data,
type
FROM azure.purview.vw_kafka_configurations
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.purview.kafka_configurations (
accountName,
kafkaConfigurationName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ accountName }}',
'{{ kafkaConfigurationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified kafka_configurations resource.

/*+ delete */
DELETE FROM azure.purview.kafka_configurations
WHERE accountName = '{{ accountName }}'
AND kafkaConfigurationName = '{{ kafkaConfigurationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';