domain_topics
Creates, updates, deletes, gets or lists a domain_topics
resource.
Overview
Name | domain_topics |
Type | Resource |
Id | azure.event_grid.domain_topics |
Fields
- vw_domain_topics
- domain_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 |
domainName | text | field from the properties object |
domainTopicName | 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 |
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 Domain 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 | domainName, domainTopicName, resourceGroupName, subscriptionId | Get properties of a domain topic. |
list_by_domain | SELECT | domainName, resourceGroupName, subscriptionId | List all the topics in a domain. |
create_or_update | INSERT | domainName, domainTopicName, resourceGroupName, subscriptionId | Asynchronously creates or updates a new domain topic with the specified parameters. |
delete | DELETE | domainName, domainTopicName, resourceGroupName, subscriptionId | Delete existing domain topic. |
SELECT
examples
List all the topics in a domain.
- vw_domain_topics
- domain_topics
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 }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.event_grid.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.event_grid.domain_topics (
domainName,
domainTopicName,
resourceGroupName,
subscriptionId
)
SELECT
'{{ domainName }}',
'{{ domainTopicName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}'
;
- name: your_resource_model_name
props: []
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 }}';