sites
Creates, updates, deletes, gets or lists a sites
resource.
Overview
Name | sites |
Type | Resource |
Id | azure.mobile_network.sites |
Fields
- vw_sites
- sites
Name | Datatype | Description |
---|---|---|
location | text | The geo-location where the resource lives |
mobileNetworkName | text | field from the properties object |
network_functions | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
siteName | 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 | Site properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | mobileNetworkName, resourceGroupName, siteName, subscriptionId | Gets information about the specified mobile network site. |
list_by_mobile_network | SELECT | mobileNetworkName, resourceGroupName, subscriptionId | Lists all sites in the mobile network. |
create_or_update | INSERT | mobileNetworkName, resourceGroupName, siteName, subscriptionId | Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. |
delete | DELETE | mobileNetworkName, resourceGroupName, siteName, subscriptionId | Deletes the specified mobile network site. This will also delete any network functions that are a part of this site. |
update_tags | EXEC | mobileNetworkName, resourceGroupName, siteName, subscriptionId | Updates site tags. |
SELECT
examples
Lists all sites in the mobile network.
- vw_sites
- sites
SELECT
location,
mobileNetworkName,
network_functions,
provisioning_state,
resourceGroupName,
siteName,
subscriptionId,
tags
FROM azure.mobile_network.vw_sites
WHERE mobileNetworkName = '{{ mobileNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.mobile_network.sites
WHERE mobileNetworkName = '{{ mobileNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new sites
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.mobile_network.sites (
mobileNetworkName,
resourceGroupName,
siteName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ mobileNetworkName }}',
'{{ resourceGroupName }}',
'{{ siteName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: provisioningState
value: []
- name: networkFunctions
value:
- - name: id
value: string
- name: tags
value: object
- name: location
value: string
DELETE
example
Deletes the specified sites
resource.
/*+ delete */
DELETE FROM azure.mobile_network.sites
WHERE mobileNetworkName = '{{ mobileNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}';