Skip to main content

namespaces

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

Overview

Namenamespaces
TypeResource
Idazure.event_hubs.namespaces

Fields

NameDatatypeDescription
identityobjectProperties to configure Identity for Bring your Own Keys
locationstringResource location.
properties``Namespace properties supplied for create namespace operation.
skuobjectSKU parameters supplied to the create namespace operation
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTnamespaceName, resourceGroupName, subscriptionIdGets the description of the specified namespace.
listSELECTsubscriptionIdLists all the available Namespaces within a subscription, irrespective of the resource groups.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists the available Namespaces within a resource group.
create_or_updateINSERTnamespaceName, resourceGroupName, subscriptionIdCreates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.
deleteDELETEnamespaceName, resourceGroupName, subscriptionIdDeletes an existing namespace. This operation also removes all associated resources under the namespace.
updateUPDATEnamespaceName, resourceGroupName, subscriptionIdCreates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.
check_name_availabilityEXECsubscriptionId, data__nameCheck the give Namespace name availability.
regenerate_keysEXECauthorizationRuleName, namespaceName, resourceGroupName, subscriptionId, data__keyTypeRegenerates the primary or secondary connection strings for the specified Namespace.

SELECT examples

Lists all the available Namespaces within a subscription, irrespective of the resource groups.

SELECT
identity,
location,
properties,
sku,
systemData,
tags
FROM azure.event_hubs.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_hubs.namespaces (
namespaceName,
resourceGroupName,
subscriptionId,
sku,
identity,
properties,
location,
tags
)
SELECT
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ sku }}',
'{{ identity }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a namespaces resource.

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

DELETE example

Deletes the specified namespaces resource.

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