Skip to main content

topics

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

Overview

Nametopics
TypeResource
Idazure.event_grid.topics

Fields

NameDatatypeDescription
data_residency_boundarytextfield from the properties object
disable_local_authtextfield from the properties object
endpointtextfield from the properties object
event_type_infotextfield from the properties object
extended_locationtextfield from the properties object
identitytextThe identity information for the resource.
inbound_ip_rulestextfield from the properties object
input_schematextfield from the properties object
input_schema_mappingtextfield from the properties object
kindtextKind of the resource.
locationtextThe geo-location where the resource lives
metric_resource_idtextfield from the properties object
minimum_tls_version_allowedtextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
skutextDescribes an EventGrid Resource Sku.
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
topicNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, topicNameGet properties of a topic.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all the topics under a resource group.
list_by_subscriptionSELECTsubscriptionIdList all the topics under an Azure subscription.
create_or_updateINSERTresourceGroupName, subscriptionId, topicNameAsynchronously creates a new topic with the specified parameters.
deleteDELETEresourceGroupName, subscriptionId, topicNameDelete existing topic.
updateUPDATEresourceGroupName, subscriptionId, topicNameAsynchronously updates a topic with the specified parameters.
regenerate_keyEXECresourceGroupName, subscriptionId, topicName, data__keyNameRegenerate a shared access key for a topic.

SELECT examples

List all the topics under an Azure subscription.

SELECT
data_residency_boundary,
disable_local_auth,
endpoint,
event_type_info,
extended_location,
identity,
inbound_ip_rules,
input_schema,
input_schema_mapping,
kind,
location,
metric_resource_id,
minimum_tls_version_allowed,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
sku,
subscriptionId,
system_data,
tags,
topicName
FROM azure.event_grid.vw_topics
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.event_grid.topics (
resourceGroupName,
subscriptionId,
topicName,
tags,
location,
properties,
sku,
identity,
kind,
extendedLocation
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ topicName }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ sku }}',
'{{ identity }}',
'{{ kind }}',
'{{ extendedLocation }}'
;

UPDATE example

Updates a topics resource.

/*+ update */
UPDATE azure.event_grid.topics
SET
tags = '{{ tags }}',
identity = '{{ identity }}',
properties = '{{ properties }}',
sku = '{{ sku }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND topicName = '{{ topicName }}';

DELETE example

Deletes the specified topics resource.

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