Skip to main content

hubs

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

Overview

Namehubs
TypeResource
Idazure.web_pubsub.hubs

Fields

NameDatatypeDescription
anonymous_connect_policytextfield from the properties object
event_handlerstextfield from the properties object
event_listenerstextfield from the properties object
hubNametextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
subscriptionIdtextfield from the properties object
web_socket_keep_alive_interval_in_secondstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECThubName, resourceGroupName, resourceName, subscriptionIdGet a hub setting.
listSELECTresourceGroupName, resourceName, subscriptionIdList hub settings.
create_or_updateINSERThubName, resourceGroupName, resourceName, subscriptionId, data__propertiesCreate or update a hub setting.
deleteDELETEhubName, resourceGroupName, resourceName, subscriptionIdDelete a hub setting.

SELECT examples

List hub settings.

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 }}';

INSERT example

Use the following StackQL query and manifest file to create a new hubs resource.

/*+ create */
INSERT INTO azure.web_pubsub.hubs (
hubName,
resourceGroupName,
resourceName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ hubName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

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 }}';