topics
Creates, updates, deletes, gets or lists a topics
resource.
Overview
Name | topics |
Type | Resource |
Id | azure.service_bus.topics |
Fields
- vw_topics
- topics
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | text | The name of the resource |
accessed_at | text | field from the properties object |
auto_delete_on_idle | text | field from the properties object |
count_details | text | field from the properties object |
created_at | text | field from the properties object |
default_message_time_to_live | text | field from the properties object |
duplicate_detection_history_time_window | text | field from the properties object |
enable_batched_operations | text | field from the properties object |
enable_express | text | field from the properties object |
enable_partitioning | text | field from the properties object |
location | text | The geo-location where the resource lives |
max_message_size_in_kilobytes | text | field from the properties object |
max_size_in_megabytes | text | field from the properties object |
namespaceName | text | field from the properties object |
requires_duplicate_detection | text | field from the properties object |
resourceGroupName | text | field from the properties object |
size_in_bytes | text | field from the properties object |
status | text | field from the properties object |
subscriptionId | text | field from the properties object |
subscription_count | text | field from the properties object |
support_ordering | text | field from the properties object |
system_data | text | field from the properties object |
topicName | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" |
updated_at | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | string | The name of the resource |
location | string | The geo-location where the resource lives |
properties | object | The Topic Properties definition. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | namespaceName, resourceGroupName, subscriptionId, topicName | Returns a description for the specified topic. |
list_by_namespace | SELECT | namespaceName, resourceGroupName, subscriptionId | Gets all the topics in a namespace. |
create_or_update | INSERT | namespaceName, resourceGroupName, subscriptionId, topicName | Creates a topic in the specified namespace. |
delete | DELETE | namespaceName, resourceGroupName, subscriptionId, topicName | Deletes a topic from the specified namespace and resource group. |
regenerate_keys | EXEC | authorizationRuleName, namespaceName, resourceGroupName, subscriptionId, topicName, data__keyType | Regenerates primary or secondary connection strings for the topic. |
SELECT
examples
Gets all the topics in a namespace.
- vw_topics
- topics
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 }}';
SELECT
id,
name,
location,
properties,
systemData,
type
FROM azure.service_bus.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.service_bus.topics (
namespaceName,
resourceGroupName,
subscriptionId,
topicName,
properties
)
SELECT
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ topicName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: sizeInBytes
value: integer
- name: createdAt
value: string
- name: updatedAt
value: string
- name: accessedAt
value: string
- name: subscriptionCount
value: integer
- name: countDetails
value:
- name: activeMessageCount
value: integer
- name: deadLetterMessageCount
value: integer
- name: scheduledMessageCount
value: integer
- name: transferMessageCount
value: integer
- name: transferDeadLetterMessageCount
value: integer
- name: defaultMessageTimeToLive
value: string
- name: maxSizeInMegabytes
value: integer
- name: maxMessageSizeInKilobytes
value: integer
- name: requiresDuplicateDetection
value: boolean
- name: duplicateDetectionHistoryTimeWindow
value: string
- name: enableBatchedOperations
value: boolean
- name: status
value: []
- name: supportOrdering
value: boolean
- name: autoDeleteOnIdle
value: string
- name: enablePartitioning
value: boolean
- name: enableExpress
value: boolean
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
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 }}';