Skip to main content

namespace_topics

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

Overview

Namenamespace_topics
TypeResource
Idazure.event_grid.namespace_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
event_retention_in_daystextfield from the properties object
input_schematextfield from the properties object
namespaceNametextfield from the properties object
provisioning_statetextfield from the properties object
publisher_typetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
topicNametextfield 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, topicNameGet properties of a namespace topic.
list_by_namespaceSELECTnamespaceName, resourceGroupName, subscriptionIdList all the namespace topics under a namespace.
create_or_updateINSERTnamespaceName, resourceGroupName, subscriptionId, topicNameAsynchronously creates a new namespace topic with the specified parameters.
deleteDELETEnamespaceName, resourceGroupName, subscriptionId, topicNameDelete existing namespace topic.
updateUPDATEnamespaceName, resourceGroupName, subscriptionId, topicNameAsynchronously updates a namespace topic with the specified parameters.
regenerate_keyEXECnamespaceName, resourceGroupName, subscriptionId, topicName, data__keyNameRegenerate a shared access key for a namespace topic.

SELECT examples

List all the namespace topics under a namespace.

SELECT
id,
name,
event_retention_in_days,
input_schema,
namespaceName,
provisioning_state,
publisher_type,
resourceGroupName,
subscriptionId,
system_data,
topicName,
type
FROM azure.event_grid.vw_namespace_topics
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a namespace_topics resource.

/*+ update */
UPDATE azure.event_grid.namespace_topics
SET
properties = '{{ properties }}'
WHERE
namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND topicName = '{{ topicName }}';

DELETE example

Deletes the specified namespace_topics resource.

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