Skip to main content

data_networks

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

Overview

Namedata_networks
TypeResource
Idazure.mobile_network.data_networks

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
dataNetworkNametextfield from the properties object
locationtextThe geo-location where the resource lives
mobileNetworkNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdataNetworkName, mobileNetworkName, resourceGroupName, subscriptionIdGets information about the specified data network.
list_by_mobile_networkSELECTmobileNetworkName, resourceGroupName, subscriptionIdLists all data networks in the mobile network.
create_or_updateINSERTdataNetworkName, mobileNetworkName, resourceGroupName, subscriptionIdCreates or updates a data network. Must be created in the same location as its parent mobile network.
deleteDELETEdataNetworkName, mobileNetworkName, resourceGroupName, subscriptionIdDeletes the specified data network.
update_tagsEXECdataNetworkName, mobileNetworkName, resourceGroupName, subscriptionIdUpdates data network tags.

SELECT examples

Lists all data networks in the mobile network.

SELECT
description,
dataNetworkName,
location,
mobileNetworkName,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.mobile_network.vw_data_networks
WHERE mobileNetworkName = '{{ mobileNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.mobile_network.data_networks (
dataNetworkName,
mobileNetworkName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ dataNetworkName }}',
'{{ mobileNetworkName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

DELETE example

Deletes the specified data_networks resource.

/*+ delete */
DELETE FROM azure.mobile_network.data_networks
WHERE dataNetworkName = '{{ dataNetworkName }}'
AND mobileNetworkName = '{{ mobileNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';