Skip to main content

partner_topics

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

Overview

Namepartner_topics
TypeResource
Idazure.event_grid.partner_topics

Fields

NameDatatypeDescription
activation_statetextfield from the properties object
event_type_infotextfield from the properties object
expiration_time_if_not_activated_utctextfield from the properties object
identitytextThe identity information for the resource.
locationtextThe geo-location where the resource lives
message_for_activationtextfield from the properties object
partnerTopicNametextfield from the properties object
partner_registration_immutable_idtextfield from the properties object
partner_topic_friendly_descriptiontextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
sourcetextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTpartnerTopicName, resourceGroupName, subscriptionIdGet properties of a partner topic.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all the partner topics under a resource group.
list_by_subscriptionSELECTsubscriptionIdList all the partner topics under an Azure subscription.
create_or_updateINSERTpartnerTopicName, resourceGroupName, subscriptionIdAsynchronously creates a new partner topic with the specified parameters.
deleteDELETEpartnerTopicName, resourceGroupName, subscriptionIdDelete existing partner topic.
updateUPDATEpartnerTopicName, resourceGroupName, subscriptionIdAsynchronously updates a partner topic with the specified parameters.
activateEXECpartnerTopicName, resourceGroupName, subscriptionIdActivate a newly created partner topic.
deactivateEXECpartnerTopicName, resourceGroupName, subscriptionIdDeactivate specific partner topic.

SELECT examples

List all the partner topics under an Azure subscription.

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 }}';

INSERT example

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

/*+ create */
INSERT INTO azure.event_grid.partner_topics (
partnerTopicName,
resourceGroupName,
subscriptionId,
tags,
location,
properties,
identity
)
SELECT
'{{ partnerTopicName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}'
;

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 }}';