Skip to main content

namespaces

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

Overview

Namenamespaces
TypeResource
Idazure.service_bus.namespaces

Fields

NameDatatypeDescription
alternate_nametextfield from the properties object
created_attextfield from the properties object
disable_local_authtextfield from the properties object
encryptiontextfield from the properties object
identitytextProperties to configure User Assigned Identities for Bring your Own Keys
locationtextThe Geo-location where the resource lives
metric_idtextfield from the properties object
minimum_tls_versiontextfield from the properties object
namespaceNametextfield from the properties object
premium_messaging_partitionstextfield 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
service_bus_endpointtextfield from the properties object
skutextSKU of the namespace.
statustextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags
updated_attextfield from the properties object
zone_redundanttextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTnamespaceName, resourceGroupName, subscriptionIdGets a description for the specified namespace.
listSELECTsubscriptionIdGets all the available namespaces within the subscription, irrespective of the resource groups.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets the available namespaces within a resource group.
create_or_updateINSERTnamespaceName, resourceGroupName, subscriptionIdCreates or updates a service 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, subscriptionIdUpdates a service 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 namespace.

SELECT examples

Gets all the available namespaces within the subscription, irrespective of the resource groups.

SELECT
alternate_name,
created_at,
disable_local_auth,
encryption,
identity,
location,
metric_id,
minimum_tls_version,
namespaceName,
premium_messaging_partitions,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
service_bus_endpoint,
sku,
status,
subscriptionId,
system_data,
tags,
updated_at,
zone_redundant
FROM azure.service_bus.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.service_bus.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.service_bus.namespaces
SET
sku = '{{ sku }}',
properties = '{{ properties }}',
identity = '{{ identity }}',
location = '{{ location }}',
tags = '{{ tags }}'
WHERE
namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified namespaces resource.

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