Skip to main content

partner_destinations

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

Overview

Namepartner_destinations
TypeResource
Idazure.event_grid.partner_destinations

Fields

NameDatatypeDescription
activation_statetextfield from the properties object
endpoint_base_urltextfield from the properties object
endpoint_service_contexttextfield from the properties object
expiration_time_if_not_activated_utctextfield from the properties object
locationtextThe geo-location where the resource lives
message_for_activationtextfield from the properties object
partnerDestinationNametextfield from the properties object
partner_registration_immutable_idtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTpartnerDestinationName, resourceGroupName, subscriptionIdGet properties of a partner destination.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all the partner destinations under a resource group.
list_by_subscriptionSELECTsubscriptionIdList all the partner destinations under an Azure subscription.
create_or_updateINSERTpartnerDestinationName, resourceGroupName, subscriptionIdAsynchronously creates a new partner destination with the specified parameters.
deleteDELETEpartnerDestinationName, resourceGroupName, subscriptionIdDelete existing partner destination.
updateUPDATEpartnerDestinationName, resourceGroupName, subscriptionIdAsynchronously updates a partner destination with the specified parameters.
activateEXECpartnerDestinationName, resourceGroupName, subscriptionIdActivate a newly created partner destination.

SELECT examples

List all the partner destinations under an Azure subscription.

SELECT
activation_state,
endpoint_base_url,
endpoint_service_context,
expiration_time_if_not_activated_utc,
location,
message_for_activation,
partnerDestinationName,
partner_registration_immutable_id,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags
FROM azure.event_grid.vw_partner_destinations
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a partner_destinations resource.

/*+ update */
UPDATE azure.event_grid.partner_destinations
SET
tags = '{{ tags }}'
WHERE
partnerDestinationName = '{{ partnerDestinationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified partner_destinations resource.

/*+ delete */
DELETE FROM azure.event_grid.partner_destinations
WHERE partnerDestinationName = '{{ partnerDestinationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';