Skip to main content

namespaces

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

Overview

Namenamespaces
TypeResource
Idazure.event_grid.namespaces

Fields

NameDatatypeDescription
identitytextThe identity information for the resource.
inbound_ip_rulestextfield from the properties object
is_zone_redundanttextfield from the properties object
locationtextThe geo-location where the resource lives
minimum_tls_version_allowedtextfield from the properties object
namespaceNametextfield 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
skutextRepresents available Sku pricing tiers.
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
topic_spaces_configurationtextfield from the properties object
topics_configurationtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTnamespaceName, resourceGroupName, subscriptionIdGet properties of a namespace.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all the namespaces under a resource group.
list_by_subscriptionSELECTsubscriptionIdList all the namespaces under an Azure subscription.
create_or_updateINSERTnamespaceName, resourceGroupName, subscriptionIdAsynchronously creates or updates a new namespace with the specified parameters.
deleteDELETEnamespaceName, resourceGroupName, subscriptionIdDelete existing namespace.
updateUPDATEnamespaceName, resourceGroupName, subscriptionIdAsynchronously updates a namespace with the specified parameters.
regenerate_keyEXECnamespaceName, resourceGroupName, subscriptionId, data__keyNameRegenerate a shared access key for a namespace.
validate_custom_domain_ownershipEXECnamespaceName, resourceGroupName, subscriptionIdPerforms ownership validation via checking TXT records for all custom domains in a namespace.

SELECT examples

List all the namespaces under an Azure subscription.

SELECT
identity,
inbound_ip_rules,
is_zone_redundant,
location,
minimum_tls_version_allowed,
namespaceName,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
sku,
subscriptionId,
system_data,
tags,
topic_spaces_configuration,
topics_configuration
FROM azure.event_grid.vw_namespaces
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a namespaces resource.

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

DELETE example

Deletes the specified namespaces resource.

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