Skip to main content

namespaces

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

Overview

Namenamespaces
TypeResource
Idazure.relay.namespaces

Fields

NameDatatypeDescription
created_attextfield from the properties object
locationtextResource location.
metric_idtextfield 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
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

Methods

NameAccessible byRequired ParamsDescription
getSELECTnamespaceName, resourceGroupName, subscriptionIdReturns the description for the specified namespace.
listSELECTsubscriptionIdLists all the available namespaces within the subscription regardless of the resourceGroups.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all the available namespaces within the ResourceGroup.
create_or_updateINSERTnamespaceName, resourceGroupName, subscriptionIdCreate Azure Relay namespace.
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 specified namespace name availability.
regenerate_keysEXECauthorizationRuleName, namespaceName, resourceGroupName, subscriptionId, data__keyTypeRegenerates the primary or secondary connection strings to the namespace.

SELECT examples

Lists all the available namespaces within the subscription regardless of the resourceGroups.

SELECT
created_at,
location,
metric_id,
namespaceName,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
service_bus_endpoint,
sku,
status,
subscriptionId,
system_data,
tags,
updated_at
FROM azure.relay.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.relay.namespaces (
namespaceName,
resourceGroupName,
subscriptionId,
sku,
properties,
location,
tags
)
SELECT
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ sku }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a namespaces resource.

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

DELETE example

Deletes the specified namespaces resource.

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