data_networks
Creates, updates, deletes, gets or lists a data_networks
resource.
Overview
Name | data_networks |
Type | Resource |
Id | azure.mobile_network.data_networks |
Fields
- vw_data_networks
- data_networks
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
dataNetworkName | text | field from the properties object |
location | text | The geo-location where the resource lives |
mobileNetworkName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Data network properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | dataNetworkName, mobileNetworkName, resourceGroupName, subscriptionId | Gets information about the specified data network. |
list_by_mobile_network | SELECT | mobileNetworkName, resourceGroupName, subscriptionId | Lists all data networks in the mobile network. |
create_or_update | INSERT | dataNetworkName, mobileNetworkName, resourceGroupName, subscriptionId | Creates or updates a data network. Must be created in the same location as its parent mobile network. |
delete | DELETE | dataNetworkName, mobileNetworkName, resourceGroupName, subscriptionId | Deletes the specified data network. |
update_tags | EXEC | dataNetworkName, mobileNetworkName, resourceGroupName, subscriptionId | Updates data network tags. |
SELECT
examples
Lists all data networks in the mobile network.
- vw_data_networks
- data_networks
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 }}';
SELECT
location,
properties,
tags
FROM azure.mobile_network.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.mobile_network.data_networks (
dataNetworkName,
mobileNetworkName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ dataNetworkName }}',
'{{ mobileNetworkName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: provisioningState
value: []
- name: description
value: string
- name: tags
value: object
- name: location
value: string
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 }}';