Skip to main content

system_topics

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

Overview

Namesystem_topics
TypeResource
Idazure.event_grid.system_topics

Fields

NameDatatypeDescription
identitytextThe identity information for the resource.
locationtextThe geo-location where the resource lives
metric_resource_idtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
sourcetextfield from the properties object
subscriptionIdtextfield from the properties object
systemTopicNametextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
topic_typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, systemTopicNameGet properties of a system topic.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all the system topics under a resource group.
list_by_subscriptionSELECTsubscriptionIdList all the system topics under an Azure subscription.
create_or_updateINSERTresourceGroupName, subscriptionId, systemTopicNameAsynchronously creates a new system topic with the specified parameters.
deleteDELETEresourceGroupName, subscriptionId, systemTopicNameDelete existing system topic.
updateUPDATEresourceGroupName, subscriptionId, systemTopicNameAsynchronously updates a system topic with the specified parameters.

SELECT examples

List all the system topics under an Azure subscription.

SELECT
identity,
location,
metric_resource_id,
provisioning_state,
resourceGroupName,
source,
subscriptionId,
systemTopicName,
system_data,
tags,
topic_type
FROM azure.event_grid.vw_system_topics
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.event_grid.system_topics (
resourceGroupName,
subscriptionId,
systemTopicName,
tags,
location,
properties,
identity
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ systemTopicName }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}'
;

UPDATE example

Updates a system_topics resource.

/*+ update */
UPDATE azure.event_grid.system_topics
SET
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND systemTopicName = '{{ systemTopicName }}';

DELETE example

Deletes the specified system_topics resource.

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