Skip to main content

channels

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

Overview

Namechannels
TypeResource
Idazure.event_grid.channels

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
channelNametextfield from the properties object
channel_typetextfield from the properties object
expiration_time_if_not_activated_utctextfield from the properties object
message_for_activationtextfield from the properties object
partnerNamespaceNametextfield from the properties object
partner_destination_infotextfield from the properties object
partner_topic_infotextfield from the properties object
provisioning_statetextfield from the properties object
readiness_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTchannelName, partnerNamespaceName, resourceGroupName, subscriptionIdGet properties of a channel.
list_by_partner_namespaceSELECTpartnerNamespaceName, resourceGroupName, subscriptionIdList all the channels in a partner namespace.
create_or_updateINSERTchannelName, partnerNamespaceName, resourceGroupName, subscriptionIdSynchronously creates or updates a new channel with the specified parameters.
deleteDELETEchannelName, partnerNamespaceName, resourceGroupName, subscriptionIdDelete an existing channel.
updateUPDATEchannelName, partnerNamespaceName, resourceGroupName, subscriptionIdSynchronously updates a channel with the specified parameters.

SELECT examples

List all the channels in a partner namespace.

SELECT
id,
name,
channelName,
channel_type,
expiration_time_if_not_activated_utc,
message_for_activation,
partnerNamespaceName,
partner_destination_info,
partner_topic_info,
provisioning_state,
readiness_state,
resourceGroupName,
subscriptionId,
system_data,
type
FROM azure.event_grid.vw_channels
WHERE partnerNamespaceName = '{{ partnerNamespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.event_grid.channels (
channelName,
partnerNamespaceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ channelName }}',
'{{ partnerNamespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a channels resource.

/*+ update */
UPDATE azure.event_grid.channels
SET
properties = '{{ properties }}'
WHERE
channelName = '{{ channelName }}'
AND partnerNamespaceName = '{{ partnerNamespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified channels resource.

/*+ delete */
DELETE FROM azure.event_grid.channels
WHERE channelName = '{{ channelName }}'
AND partnerNamespaceName = '{{ partnerNamespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';