Skip to main content

web_pub_subs

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

Overview

Nameweb_pub_subs
TypeResource
Idazure.web_pubsub.web_pub_subs

Fields

NameDatatypeDescription
application_firewalltextfield from the properties object
disable_aad_authtextfield from the properties object
disable_local_authtextfield from the properties object
external_iptextfield from the properties object
host_nametextfield from the properties object
host_name_prefixtextfield from the properties object
identitytextA class represent managed identities used for request and response
kindtextThe kind of the service
live_trace_configurationtextfield from the properties object
locationtextThe geo-location where the resource lives
network_ac_lstextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
public_porttextfield from the properties object
region_endpoint_enabledtextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
resource_log_configurationtextfield from the properties object
resource_stoppedtextfield from the properties object
server_porttextfield from the properties object
shared_private_link_resourcestextfield from the properties object
skutextThe billing information of the resource.
socket_iotextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
tlstextfield from the properties object
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionIdGet the resource and its properties.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdHandles requests to list all resources in a resource group.
list_by_subscriptionSELECTsubscriptionIdHandles requests to list all resources in a subscription.
create_or_updateINSERTresourceGroupName, resourceName, subscriptionIdCreate or update a resource.
deleteDELETEresourceGroupName, resourceName, subscriptionIdOperation to delete a resource.
updateUPDATEresourceGroupName, resourceName, subscriptionIdOperation to update an exiting resource.
check_name_availabilityEXEClocation, subscriptionId, data__name, data__typeChecks that the resource name is valid and is not already in use.
regenerate_keyEXECresourceGroupName, resourceName, subscriptionIdRegenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time.
restartEXECresourceGroupName, resourceName, subscriptionIdOperation to restart a resource.

SELECT examples

Handles requests to list all resources in a subscription.

SELECT
application_firewall,
disable_aad_auth,
disable_local_auth,
external_ip,
host_name,
host_name_prefix,
identity,
kind,
live_trace_configuration,
location,
network_ac_ls,
private_endpoint_connections,
provisioning_state,
public_network_access,
public_port,
region_endpoint_enabled,
resourceGroupName,
resourceName,
resource_log_configuration,
resource_stopped,
server_port,
shared_private_link_resources,
sku,
socket_io,
subscriptionId,
tags,
tls,
version
FROM azure.web_pubsub.vw_web_pub_subs
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.web_pubsub.web_pub_subs (
resourceGroupName,
resourceName,
subscriptionId,
tags,
location,
sku,
properties,
kind,
identity
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ sku }}',
'{{ properties }}',
'{{ kind }}',
'{{ identity }}'
;

UPDATE example

Updates a web_pub_subs resource.

/*+ update */
UPDATE azure.web_pubsub.web_pub_subs
SET
tags = '{{ tags }}',
location = '{{ location }}',
sku = '{{ sku }}',
properties = '{{ properties }}',
kind = '{{ kind }}',
identity = '{{ identity }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified web_pub_subs resource.

/*+ delete */
DELETE FROM azure.web_pubsub.web_pub_subs
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';