hubs
Creates, updates, deletes, gets or lists a hubs
resource.
Overview
Name | hubs |
Type | Resource |
Id | azure.web_pubsub.hubs |
Fields
- vw_hubs
- hubs
Name | Datatype | Description |
---|---|---|
anonymous_connect_policy | text | field from the properties object |
event_handlers | text | field from the properties object |
event_listeners | text | field from the properties object |
hubName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resourceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
web_socket_keep_alive_interval_in_seconds | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Properties of a hub. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | hubName, resourceGroupName, resourceName, subscriptionId | Get a hub setting. |
list | SELECT | resourceGroupName, resourceName, subscriptionId | List hub settings. |
create_or_update | INSERT | hubName, resourceGroupName, resourceName, subscriptionId, data__properties | Create or update a hub setting. |
delete | DELETE | hubName, resourceGroupName, resourceName, subscriptionId | Delete a hub setting. |
SELECT
examples
List hub settings.
- vw_hubs
- hubs
SELECT
anonymous_connect_policy,
event_handlers,
event_listeners,
hubName,
resourceGroupName,
resourceName,
subscriptionId,
web_socket_keep_alive_interval_in_seconds
FROM azure.web_pubsub.vw_hubs
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.web_pubsub.hubs
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new hubs
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.web_pubsub.hubs (
hubName,
resourceGroupName,
resourceName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ hubName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: eventHandlers
value:
- - name: urlTemplate
value: string
- name: userEventPattern
value: string
- name: systemEvents
value:
- string
- name: auth
value:
- name: type
value: []
- name: managedIdentity
value:
- name: resource
value: string
- name: eventListeners
value:
- - name: filter
value:
- name: type
value: string
- name: endpoint
value:
- name: type
value: string
- name: anonymousConnectPolicy
value: string
- name: webSocketKeepAliveIntervalInSeconds
value: integer
DELETE
example
Deletes the specified hubs
resource.
/*+ delete */
DELETE FROM azure.web_pubsub.hubs
WHERE hubName = '{{ hubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';