Skip to main content

namespaces

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

Overview

Namenamespaces
TypeResource
Idazure.notification_hubs.namespaces

Fields

NameDatatypeDescription
nametextfield from the properties object
created_attextfield from the properties object
criticaltextfield from the properties object
data_centertextfield from the properties object
enabledtextfield from the properties object
locationtextThe geo-location where the resource lives
metric_idtextfield from the properties object
namespaceNametextfield from the properties object
namespace_typetextfield from the properties object
network_aclstextfield from the properties object
pns_credentialstextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
regiontextfield from the properties object
replication_regiontextfield from the properties object
resourceGroupNametextfield from the properties object
scale_unittextfield from the properties object
service_bus_endpointtextfield from the properties object
skutextThe resource model definition representing SKU
statustextfield from the properties object
subscriptionIdtextfield from the properties object
subscription_idtextfield from the properties object
tagstextResource tags.
updated_attextfield from the properties object
zone_redundancytextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTnamespaceName, resourceGroupName, subscriptionId
listSELECTresourceGroupName, subscriptionId
list_allSELECTsubscriptionId
create_or_updateINSERTnamespaceName, resourceGroupName, subscriptionId, data__location, data__sku
deleteDELETEnamespaceName, resourceGroupName, subscriptionId
updateUPDATEnamespaceName, resourceGroupName, subscriptionId
check_availabilityEXECsubscriptionId, data__name
regenerate_keysEXECauthorizationRuleName, namespaceName, resourceGroupName, subscriptionId, data__policyKey

SELECT examples

SELECT
name,
created_at,
critical,
data_center,
enabled,
location,
metric_id,
namespaceName,
namespace_type,
network_acls,
pns_credentials,
private_endpoint_connections,
provisioning_state,
public_network_access,
region,
replication_region,
resourceGroupName,
scale_unit,
service_bus_endpoint,
sku,
status,
subscriptionId,
subscription_id,
tags,
updated_at,
zone_redundancy
FROM azure.notification_hubs.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.notification_hubs.namespaces (
namespaceName,
resourceGroupName,
subscriptionId,
data__location,
data__sku,
tags,
location,
sku,
properties
)
SELECT
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ data__sku }}',
'{{ tags }}',
'{{ location }}',
'{{ sku }}',
'{{ properties }}'
;

UPDATE example

Updates a namespaces resource.

/*+ update */
UPDATE azure.notification_hubs.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.notification_hubs.namespaces
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';