Skip to main content

topic_spaces

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

Overview

Nametopic_spaces
TypeResource
Idazure.event_grid.topic_spaces

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
descriptiontextfield from the properties object
namespaceNametextfield 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
topicSpaceNametextfield from the properties object
topic_templatestextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTnamespaceName, resourceGroupName, subscriptionId, topicSpaceNameGet properties of a topic space.
list_by_namespaceSELECTnamespaceName, resourceGroupName, subscriptionIdGet all the topic spaces under a namespace.
create_or_updateINSERTnamespaceName, resourceGroupName, subscriptionId, topicSpaceNameCreate or update a topic space with the specified parameters.
deleteDELETEnamespaceName, resourceGroupName, subscriptionId, topicSpaceNameDelete an existing topic space.

SELECT examples

Get all the topic spaces under a namespace.

SELECT
id,
name,
description,
namespaceName,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
topicSpaceName,
topic_templates,
type
FROM azure.event_grid.vw_topic_spaces
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.event_grid.topic_spaces (
namespaceName,
resourceGroupName,
subscriptionId,
topicSpaceName,
properties
)
SELECT
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ topicSpaceName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified topic_spaces resource.

/*+ delete */
DELETE FROM azure.event_grid.topic_spaces
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND topicSpaceName = '{{ topicSpaceName }}';