namespace_topics
Creates, updates, deletes, gets or lists a namespace_topics
resource.
Overview
Name | namespace_topics |
Type | Resource |
Id | azure.event_grid.namespace_topics |
Fields
- vw_namespace_topics
- namespace_topics
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | text | The name of the resource |
event_retention_in_days | text | field from the properties object |
input_schema | text | field from the properties object |
namespaceName | text | field from the properties object |
provisioning_state | text | field from the properties object |
publisher_type | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
topicName | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
properties | object | Properties of the namespace topic. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | namespaceName, resourceGroupName, subscriptionId, topicName | Get properties of a namespace topic. |
list_by_namespace | SELECT | namespaceName, resourceGroupName, subscriptionId | List all the namespace topics under a namespace. |
create_or_update | INSERT | namespaceName, resourceGroupName, subscriptionId, topicName | Asynchronously creates a new namespace topic with the specified parameters. |
delete | DELETE | namespaceName, resourceGroupName, subscriptionId, topicName | Delete existing namespace topic. |
update | UPDATE | namespaceName, resourceGroupName, subscriptionId, topicName | Asynchronously updates a namespace topic with the specified parameters. |
regenerate_key | EXEC | namespaceName, resourceGroupName, subscriptionId, topicName, data__keyName | Regenerate a shared access key for a namespace topic. |
SELECT
examples
List all the namespace topics under a namespace.
- vw_namespace_topics
- namespace_topics
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 }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.event_grid.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.event_grid.namespace_topics (
namespaceName,
resourceGroupName,
subscriptionId,
topicName,
properties
)
SELECT
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ topicName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: properties
value:
- name: provisioningState
value: string
- name: publisherType
value: string
- name: inputSchema
value: string
- name: eventRetentionInDays
value: integer
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 }}';