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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringGets or sets the identifier.
namestringGets or sets the name.
propertiesobjectThe kafka configuration properties of the event streaming service attached to the Purview account for kafka notifications.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringGets or sets the type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountName, kafkaConfigurationNameapi-versionGets the kafka configuration for the account
list_by_accountselectsubscriptionId, resourceGroupName, accountNameapi-version, $skipTokenLists the Kafka configurations in the Account
create_or_updateinsertsubscriptionId, resourceGroupName, accountName, kafkaConfigurationNameapi-versionCreate or update Kafka Configuration
deletedeletesubscriptionId, resourceGroupName, accountName, kafkaConfigurationNameapi-versionDeletes a KafkaConfiguration resource.

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
accountNamestringThe name of the account.
kafkaConfigurationNamestringName of kafka configuration.
resourceGroupNamestringThe resource group name.
subscriptionIdstringThe subscription identifier
$skipTokenstringThe skip token.
api-versionstringThe api version to use.

SELECT examples

Gets the kafka configuration for the account

SELECT
id,
name,
properties,
systemData,
type
FROM azure.purview.kafka_configurations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND kafkaConfigurationName = '{{ kafkaConfigurationName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

Create or update Kafka Configuration

INSERT INTO azure.purview.kafka_configurations (
data__properties,
subscriptionId,
resourceGroupName,
accountName,
kafkaConfigurationName,
api-version
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ accountName }}',
'{{ kafkaConfigurationName }}',
'{{ api-version }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Deletes a KafkaConfiguration resource.

DELETE FROM azure.purview.kafka_configurations
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND kafkaConfigurationName = '{{ kafkaConfigurationName }}' --required
AND api-version = '{{ api-version }}'
;