Skip to main content

domain_topics

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

Overview

Namedomain_topics
TypeResource
Idazure.event_grid.domain_topics

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
domainNametextfield from the properties object
domainTopicNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTdomainName, domainTopicName, resourceGroupName, subscriptionIdGet properties of a domain topic.
list_by_domainSELECTdomainName, resourceGroupName, subscriptionIdList all the topics in a domain.
create_or_updateINSERTdomainName, domainTopicName, resourceGroupName, subscriptionIdAsynchronously creates or updates a new domain topic with the specified parameters.
deleteDELETEdomainName, domainTopicName, resourceGroupName, subscriptionIdDelete existing domain topic.

SELECT examples

List all the topics in a domain.

SELECT
id,
name,
domainName,
domainTopicName,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
type
FROM azure.event_grid.vw_domain_topics
WHERE domainName = '{{ domainName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.event_grid.domain_topics (
domainName,
domainTopicName,
resourceGroupName,
subscriptionId
)
SELECT
'{{ domainName }}',
'{{ domainTopicName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}'
;

DELETE example

Deletes the specified domain_topics resource.

/*+ delete */
DELETE FROM azure.event_grid.domain_topics
WHERE domainName = '{{ domainName }}'
AND domainTopicName = '{{ domainTopicName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';