Skip to main content

topics

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

Overview

Nametopics
TypeResource
Idazure_isv.confluent.topics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
configsobjectConfig Specification of the topic.
inputConfigsarrayInput Config Specification of the topic.
kindstringType of topic.
metadataobjectMetadata of the record.
partitionsobjectPartition Specification of the topic.
partitionsCountstringPartition count of the topic.
partitionsReassignmentsobjectPartition Reassignment Specification of the topic.
replicationFactorstringReplication factor of the topic.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
topicIdstringTopic Id returned by Confluent.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, organization_name, environment_id, cluster_id, topic_name, subscription_idGet confluent topic by Name.
listselectresource_group_name, organization_name, environment_id, cluster_id, subscription_idpageSize, pageTokenLists of all the topics in a clusters.
createinsertresource_group_name, organization_name, environment_id, cluster_id, topic_name, subscription_idCreate confluent topics by Name.
deletedeleteresource_group_name, organization_name, environment_id, cluster_id, topic_name, subscription_idDelete confluent topic by name.

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
cluster_idstringConfluent kafka or schema registry cluster id. Required.
environment_idstringConfluent environment id. Required.
organization_namestringOrganization resource name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
topic_namestringConfluent kafka or schema registry topic name. Required.
pageSizeintegerPagination size. Default value is None.
pageTokenstringAn opaque pagination token to fetch the next set of records. Default value is None.

SELECT examples

Get confluent topic by Name.

SELECT
id,
name,
configs,
inputConfigs,
kind,
metadata,
partitions,
partitionsCount,
partitionsReassignments,
replicationFactor,
systemData,
topicId,
type
FROM azure_isv.confluent.topics
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND organization_name = '{{ organization_name }}' -- required
AND environment_id = '{{ environment_id }}' -- required
AND cluster_id = '{{ cluster_id }}' -- required
AND topic_name = '{{ topic_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create confluent topics by Name.

INSERT INTO azure_isv.confluent.topics (
properties,
resource_group_name,
organization_name,
environment_id,
cluster_id,
topic_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ organization_name }}',
'{{ environment_id }}',
'{{ cluster_id }}',
'{{ topic_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Delete confluent topic by name.

DELETE FROM azure_isv.confluent.topics
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND organization_name = '{{ organization_name }}' --required
AND environment_id = '{{ environment_id }}' --required
AND cluster_id = '{{ cluster_id }}' --required
AND topic_name = '{{ topic_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;