Skip to main content

domains

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

Overview

Namedomains
TypeResource
Idazure.event_grid.domains

Fields

NameDatatypeDescription
auto_create_topic_with_first_subscriptiontextfield from the properties object
auto_delete_topic_with_last_subscriptiontextfield from the properties object
data_residency_boundarytextfield from the properties object
disable_local_authtextfield from the properties object
domainNametextfield from the properties object
endpointtextfield from the properties object
event_type_infotextfield from the properties object
identitytextThe identity information for the resource.
inbound_ip_rulestextfield from the properties object
input_schematextfield from the properties object
input_schema_mappingtextfield from the properties object
locationtextThe geo-location where the resource lives
metric_resource_idtextfield from the properties object
minimum_tls_version_allowedtextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
skutextDescribes an EventGrid Resource Sku.
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdomainName, resourceGroupName, subscriptionIdGet properties of a domain.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all the domains under a resource group.
list_by_subscriptionSELECTsubscriptionIdList all the domains under an Azure subscription.
create_or_updateINSERTdomainName, resourceGroupName, subscriptionIdAsynchronously creates or updates a new domain with the specified parameters.
deleteDELETEdomainName, resourceGroupName, subscriptionIdDelete existing domain.
updateUPDATEdomainName, resourceGroupName, subscriptionIdAsynchronously updates a domain with the specified parameters.
regenerate_keyEXECdomainName, resourceGroupName, subscriptionId, data__keyNameRegenerate a shared access key for a domain.

SELECT examples

List all the domains under an Azure subscription.

SELECT
auto_create_topic_with_first_subscription,
auto_delete_topic_with_last_subscription,
data_residency_boundary,
disable_local_auth,
domainName,
endpoint,
event_type_info,
identity,
inbound_ip_rules,
input_schema,
input_schema_mapping,
location,
metric_resource_id,
minimum_tls_version_allowed,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
sku,
subscriptionId,
system_data,
tags
FROM azure.event_grid.vw_domains
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a domains resource.

/*+ update */
UPDATE azure.event_grid.domains
SET
tags = '{{ tags }}',
properties = '{{ properties }}',
identity = '{{ identity }}',
sku = '{{ sku }}'
WHERE
domainName = '{{ domainName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified domains resource.

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