namespaces
Creates, updates, deletes, gets or lists a namespaces
resource.
Overview
Name | namespaces |
Type | Resource |
Id | azure.notification_hubs.namespaces |
Fields
- vw_namespaces
- namespaces
Name | Datatype | Description |
---|---|---|
name | text | field from the properties object |
created_at | text | field from the properties object |
critical | text | field from the properties object |
data_center | text | field from the properties object |
enabled | text | field from the properties object |
location | text | The geo-location where the resource lives |
metric_id | text | field from the properties object |
namespaceName | text | field from the properties object |
namespace_type | text | field from the properties object |
network_acls | text | field from the properties object |
pns_credentials | text | field from the properties object |
private_endpoint_connections | text | field from the properties object |
provisioning_state | text | field from the properties object |
public_network_access | text | field from the properties object |
region | text | field from the properties object |
replication_region | text | field from the properties object |
resourceGroupName | text | field from the properties object |
scale_unit | text | field from the properties object |
service_bus_endpoint | text | field from the properties object |
sku | text | The resource model definition representing SKU |
status | text | field from the properties object |
subscriptionId | text | field from the properties object |
subscription_id | text | field from the properties object |
tags | text | Resource tags. |
updated_at | text | field from the properties object |
zone_redundancy | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Represents namespace properties. |
sku | object | The resource model definition representing SKU |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | namespaceName, resourceGroupName, subscriptionId | |
list | SELECT | resourceGroupName, subscriptionId | |
list_all | SELECT | subscriptionId | |
create_or_update | INSERT | namespaceName, resourceGroupName, subscriptionId, data__location, data__sku | |
delete | DELETE | namespaceName, resourceGroupName, subscriptionId | |
update | UPDATE | namespaceName, resourceGroupName, subscriptionId | |
check_availability | EXEC | subscriptionId, data__name | |
regenerate_keys | EXEC | authorizationRuleName, namespaceName, resourceGroupName, subscriptionId, data__policyKey |
SELECT
examples
- vw_namespaces
- namespaces
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 }}';
SELECT
location,
properties,
sku,
tags
FROM azure.notification_hubs.namespaces
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new namespaces
resource.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: sku
value:
- name: name
value: string
- name: tier
value: []
- name: size
value: string
- name: family
value: string
- name: capacity
value: integer
- name: properties
value:
- name: name
value: string
- name: provisioningState
value: []
- name: status
value: []
- name: enabled
value: boolean
- name: critical
value: boolean
- name: subscriptionId
value: string
- name: region
value: string
- name: metricId
value: string
- name: createdAt
value: string
- name: updatedAt
value: string
- name: namespaceType
value: []
- name: replicationRegion
value: []
- name: zoneRedundancy
value: []
- name: networkAcls
value:
- name: ipRules
value:
- - name: ipMask
value: string
- name: rights
value:
- []
- name: publicNetworkRule
value:
- name: rights
value:
- []
- name: pnsCredentials
value:
- name: admCredential
value:
- name: properties
value:
- name: clientId
value: string
- name: clientSecret
value: string
- name: authTokenUrl
value: string
- name: apnsCredential
value:
- name: properties
value:
- name: apnsCertificate
value: string
- name: certificateKey
value: string
- name: endpoint
value: string
- name: thumbprint
value: string
- name: keyId
value: string
- name: appName
value: string
- name: appId
value: string
- name: token
value: string
- name: baiduCredential
value:
- name: properties
value:
- name: baiduApiKey
value: string
- name: baiduEndPoint
value: string
- name: baiduSecretKey
value: string
- name: browserCredential
value:
- name: properties
value:
- name: subject
value: string
- name: vapidPrivateKey
value: string
- name: vapidPublicKey
value: string
- name: gcmCredential
value:
- name: properties
value:
- name: gcmEndpoint
value: string
- name: googleApiKey
value: string
- name: mpnsCredential
value:
- name: properties
value:
- name: mpnsCertificate
value: string
- name: certificateKey
value: string
- name: thumbprint
value: string
- name: wnsCredential
value:
- name: properties
value:
- name: packageSid
value: string
- name: secretKey
value: string
- name: windowsLiveEndpoint
value: string
- name: certificateKey
value: string
- name: wnsCertificate
value: string
- name: xiaomiCredential
value:
- name: properties
value:
- name: appSecret
value: string
- name: endpoint
value: string
- name: fcmV1Credential
value:
- name: properties
value:
- name: clientEmail
value: string
- name: privateKey
value: string
- name: projectId
value: string
- name: serviceBusEndpoint
value: string
- name: privateEndpointConnections
value:
- - name: properties
value:
- name: provisioningState
value: []
- name: privateEndpoint
value:
- name: id
value: string
- name: groupIds
value:
- string
- name: privateLinkServiceConnectionState
value:
- name: status
value: []
- name: description
value: string
- name: actionsRequired
value: string
- name: scaleUnit
value: string
- name: dataCenter
value: string
- name: publicNetworkAccess
value: []
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 }}';