Skip to main content

web_pub_sub_replicas

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

Overview

Nameweb_pub_sub_replicas
TypeResource
Idazure.web_pubsub.web_pub_sub_replicas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
namestringThe name of the resource.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringProvisioning state of the resource. Known values are: "Unknown", "Succeeded", "Failed", "Canceled", "Running", "Creating", "Updating", "Deleting", and "Moving".
regionEndpointEnabledstringEnable or disable the regional endpoint. Default to "Enabled". When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
resourceStoppedstringStop or start the resource. Default to "false". When it's true, the data plane of the resource is shutdown. When it's false, the data plane of the resource is started.
skuobjectThe billing information of the resource.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, resource_name, replica_name, subscription_idGet the replica and its properties.
listselectresource_group_name, resource_name, subscription_idList all replicas belong to this resource.
create_or_updateinsertresource_group_name, resource_name, replica_name, subscription_id, locationCreate or update a replica.
updateupdateresource_group_name, resource_name, replica_name, subscription_id, locationOperation to update an exiting replica.
create_or_updatereplaceresource_group_name, resource_name, replica_name, subscription_id, locationCreate or update a replica.
deletedeleteresource_group_name, resource_name, replica_name, subscription_idOperation to delete a replica.
restartexecresource_group_name, resource_name, replica_name, subscription_idOperation to restart a replica.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
replica_namestringThe name of the replica. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
resource_namestringThe name of the resource. Required.
subscription_idstring

SELECT examples

Get the replica and its properties.

SELECT
id,
name,
location,
provisioningState,
regionEndpointEnabled,
resourceStopped,
sku,
systemData,
tags,
type
FROM azure.web_pubsub.web_pub_sub_replicas
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND replica_name = '{{ replica_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a replica.

INSERT INTO azure.web_pubsub.web_pub_sub_replicas (
tags,
location,
sku,
properties,
resource_group_name,
resource_name,
replica_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ sku }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ resource_name }}',
'{{ replica_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Operation to update an exiting replica.

UPDATE azure.web_pubsub.web_pub_sub_replicas
SET
tags = '{{ tags }}',
location = '{{ location }}',
sku = '{{ sku }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND replica_name = '{{ replica_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
sku,
systemData,
tags,
type;

REPLACE examples

Create or update a replica.

REPLACE azure.web_pubsub.web_pub_sub_replicas
SET
tags = '{{ tags }}',
location = '{{ location }}',
sku = '{{ sku }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND replica_name = '{{ replica_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Operation to delete a replica.

DELETE FROM azure.web_pubsub.web_pub_sub_replicas
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND replica_name = '{{ replica_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Operation to restart a replica.

EXEC azure.web_pubsub.web_pub_sub_replicas.restart 
@resource_group_name='{{ resource_group_name }}' --required,
@resource_name='{{ resource_name }}' --required,
@replica_name='{{ replica_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;