topic_spaces
Creates, updates, deletes, gets or lists a topic_spaces
resource.
Overview
Name | topic_spaces |
Type | Resource |
Id | azure.event_grid.topic_spaces |
Fields
- vw_topic_spaces
- topic_spaces
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 |
description | text | field from the properties object |
namespaceName | text | field from the properties object |
provisioning_state | 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 |
topicSpaceName | text | field from the properties object |
topic_templates | 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 | The properties of topic space. |
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, topicSpaceName | Get properties of a topic space. |
list_by_namespace | SELECT | namespaceName, resourceGroupName, subscriptionId | Get all the topic spaces under a namespace. |
create_or_update | INSERT | namespaceName, resourceGroupName, subscriptionId, topicSpaceName | Create or update a topic space with the specified parameters. |
delete | DELETE | namespaceName, resourceGroupName, subscriptionId, topicSpaceName | Delete an existing topic space. |
SELECT
examples
Get all the topic spaces under a namespace.
- vw_topic_spaces
- topic_spaces
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 }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.event_grid.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.event_grid.topic_spaces (
namespaceName,
resourceGroupName,
subscriptionId,
topicSpaceName,
properties
)
SELECT
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ topicSpaceName }}',
'{{ 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: description
value: string
- name: topicTemplates
value:
- string
- name: provisioningState
value: string
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 }}';