Skip to main content

topics

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

Overview

Nametopics
TypeResource
Idazure.service_bus.topics

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
accessed_attextfield from the properties object
auto_delete_on_idletextfield from the properties object
count_detailstextfield from the properties object
created_attextfield from the properties object
default_message_time_to_livetextfield from the properties object
duplicate_detection_history_time_windowtextfield from the properties object
enable_batched_operationstextfield from the properties object
enable_expresstextfield from the properties object
enable_partitioningtextfield from the properties object
locationtextThe geo-location where the resource lives
max_message_size_in_kilobytestextfield from the properties object
max_size_in_megabytestextfield from the properties object
namespaceNametextfield from the properties object
requires_duplicate_detectiontextfield from the properties object
resourceGroupNametextfield from the properties object
size_in_bytestextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
subscription_counttextfield from the properties object
support_orderingtextfield from the properties object
system_datatextfield from the properties object
topicNametextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
updated_attextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTnamespaceName, resourceGroupName, subscriptionId, topicNameReturns a description for the specified topic.
list_by_namespaceSELECTnamespaceName, resourceGroupName, subscriptionIdGets all the topics in a namespace.
create_or_updateINSERTnamespaceName, resourceGroupName, subscriptionId, topicNameCreates a topic in the specified namespace.
deleteDELETEnamespaceName, resourceGroupName, subscriptionId, topicNameDeletes a topic from the specified namespace and resource group.
regenerate_keysEXECauthorizationRuleName, namespaceName, resourceGroupName, subscriptionId, topicName, data__keyTypeRegenerates primary or secondary connection strings for the topic.

SELECT examples

Gets all the topics in a namespace.

SELECT
id,
name,
accessed_at,
auto_delete_on_idle,
count_details,
created_at,
default_message_time_to_live,
duplicate_detection_history_time_window,
enable_batched_operations,
enable_express,
enable_partitioning,
location,
max_message_size_in_kilobytes,
max_size_in_megabytes,
namespaceName,
requires_duplicate_detection,
resourceGroupName,
size_in_bytes,
status,
subscriptionId,
subscription_count,
support_ordering,
system_data,
topicName,
type,
updated_at
FROM azure.service_bus.vw_topics
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.service_bus.topics (
namespaceName,
resourceGroupName,
subscriptionId,
topicName,
properties
)
SELECT
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ topicName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified topics resource.

/*+ delete */
DELETE FROM azure.service_bus.topics
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND topicName = '{{ topicName }}';