Skip to main content

partner_registrations

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

Overview

Namepartner_registrations
TypeResource
Idazure.event_grid.partner_registrations

Fields

NameDatatypeDescription
locationtextThe geo-location where the resource lives
partnerRegistrationNametextfield 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
getSELECTpartnerRegistrationName, resourceGroupName, subscriptionIdGets a partner registration with the specified parameters.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all the partner registrations under a resource group.
list_by_subscriptionSELECTsubscriptionIdList all the partner registrations under an Azure subscription.
create_or_updateINSERTpartnerRegistrationName, resourceGroupName, subscriptionIdCreates a new partner registration with the specified parameters.
deleteDELETEpartnerRegistrationName, resourceGroupName, subscriptionIdDeletes a partner registration with the specified parameters.
updateUPDATEpartnerRegistrationName, resourceGroupName, subscriptionIdUpdates a partner registration with the specified parameters.

SELECT examples

List all the partner registrations under an Azure subscription.

SELECT
location,
partnerRegistrationName,
partner_registration_immutable_id,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags
FROM azure.event_grid.vw_partner_registrations
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a partner_registrations resource.

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

DELETE example

Deletes the specified partner_registrations resource.

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