Skip to main content

sites

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

Overview

Namesites
TypeResource
Idazure.hybrid_network.sites

Fields

NameDatatypeDescription
locationtextThe geo-location where the resource lives
nfvistextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
siteNametextfield from the properties object
site_network_service_referencestextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, siteName, subscriptionIdGets information about the specified network site.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all sites in the network service.
list_by_subscriptionSELECTsubscriptionIdLists all sites in the network service in a subscription.
create_or_updateINSERTresourceGroupName, siteName, subscriptionIdCreates or updates a network site.
deleteDELETEresourceGroupName, siteName, subscriptionIdDeletes the specified network site.
update_tagsEXECresourceGroupName, siteName, subscriptionIdUpdates a site update tags.

SELECT examples

Lists all sites in the network service in a subscription.

SELECT
location,
nfvis,
provisioning_state,
resourceGroupName,
siteName,
site_network_service_references,
subscriptionId,
tags
FROM azure.hybrid_network.vw_sites
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.hybrid_network.sites (
resourceGroupName,
siteName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ siteName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

DELETE example

Deletes the specified sites resource.

/*+ delete */
DELETE FROM azure.hybrid_network.sites
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}';