partner_topics
Creates, updates, deletes, gets or lists a partner_topics
resource.
Overview
Name | partner_topics |
Type | Resource |
Id | azure.event_grid.partner_topics |
Fields
- vw_partner_topics
- partner_topics
Name | Datatype | Description |
---|---|---|
activation_state | text | field from the properties object |
event_type_info | text | field from the properties object |
expiration_time_if_not_activated_utc | text | field from the properties object |
identity | text | The identity information for the resource. |
location | text | The geo-location where the resource lives |
message_for_activation | text | field from the properties object |
partnerTopicName | text | field from the properties object |
partner_registration_immutable_id | text | field from the properties object |
partner_topic_friendly_description | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
source | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
identity | object | The identity information for the resource. |
location | string | The geo-location where the resource lives |
properties | object | Properties of the Partner Topic. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | partnerTopicName, resourceGroupName, subscriptionId | Get properties of a partner topic. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List all the partner topics under a resource group. |
list_by_subscription | SELECT | subscriptionId | List all the partner topics under an Azure subscription. |
create_or_update | INSERT | partnerTopicName, resourceGroupName, subscriptionId | Asynchronously creates a new partner topic with the specified parameters. |
delete | DELETE | partnerTopicName, resourceGroupName, subscriptionId | Delete existing partner topic. |
update | UPDATE | partnerTopicName, resourceGroupName, subscriptionId | Asynchronously updates a partner topic with the specified parameters. |
activate | EXEC | partnerTopicName, resourceGroupName, subscriptionId | Activate a newly created partner topic. |
deactivate | EXEC | partnerTopicName, resourceGroupName, subscriptionId | Deactivate specific partner topic. |
SELECT
examples
List all the partner topics under an Azure subscription.
- vw_partner_topics
- partner_topics
SELECT
activation_state,
event_type_info,
expiration_time_if_not_activated_utc,
identity,
location,
message_for_activation,
partnerTopicName,
partner_registration_immutable_id,
partner_topic_friendly_description,
provisioning_state,
resourceGroupName,
source,
subscriptionId,
system_data,
tags
FROM azure.event_grid.vw_partner_topics
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
identity,
location,
properties,
systemData,
tags
FROM azure.event_grid.partner_topics
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new partner_topics
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.event_grid.partner_topics (
partnerTopicName,
resourceGroupName,
subscriptionId,
tags,
location,
properties,
identity
)
SELECT
'{{ partnerTopicName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: partnerRegistrationImmutableId
value: string
- name: source
value: string
- name: eventTypeInfo
value:
- name: kind
value: string
- name: inlineEventTypes
value: object
- name: expirationTimeIfNotActivatedUtc
value: string
- name: provisioningState
value: string
- name: activationState
value: string
- name: partnerTopicFriendlyDescription
value: string
- name: messageForActivation
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: identity
value:
- name: type
value: string
- name: principalId
value: string
- name: tenantId
value: string
- name: userAssignedIdentities
value: object
UPDATE
example
Updates a partner_topics
resource.
/*+ update */
UPDATE azure.event_grid.partner_topics
SET
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
partnerTopicName = '{{ partnerTopicName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified partner_topics
resource.
/*+ delete */
DELETE FROM azure.event_grid.partner_topics
WHERE partnerTopicName = '{{ partnerTopicName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';