Skip to main content

sites

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

Overview

Namesites
TypeResource
Idazure.hybrid_network.sites

Fields

The following fields are returned by SELECT queries:

Request successful. The operation returns the resulting network site resource.

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectSite properties.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, siteNameGets information about the specified network site.
list_by_resource_groupselectsubscriptionId, resourceGroupNameLists all sites in the network service.
list_by_subscriptionselectsubscriptionIdLists all sites in the network service in a subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, siteNameCreates or updates a network site.
deletedeletesubscriptionId, resourceGroupName, siteNameDeletes the specified network site.
update_tagsexecsubscriptionId, resourceGroupName, siteNameUpdates a site update tags.

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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
siteNamestringThe name of the network service site.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets information about the specified network site.

SELECT
location,
properties,
tags
FROM azure.hybrid_network.sites
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND siteName = '{{ siteName }}' -- required
;

INSERT examples

Creates or updates a network site.

INSERT INTO azure.hybrid_network.sites (
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
siteName
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ siteName }}'
RETURNING
location,
properties,
tags
;

DELETE examples

Deletes the specified network site.

DELETE FROM azure.hybrid_network.sites
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND siteName = '{{ siteName }}' --required
;

Lifecycle Methods

Updates a site update tags.

EXEC azure.hybrid_network.sites.update_tags 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@siteName='{{ siteName }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;