services
Creates, updates, deletes, gets or lists a services
resource.
Overview
Name | services |
Type | Resource |
Id | azure.mobile_network.services |
Fields
- vw_services
- services
Name | Datatype | Description |
---|---|---|
location | text | The geo-location where the resource lives |
mobileNetworkName | text | field from the properties object |
pcc_rules | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
serviceName | text | field from the properties object |
service_precedence | text | field from the properties object |
service_qos_policy | 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 | Service properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | mobileNetworkName, resourceGroupName, serviceName, subscriptionId | Gets information about the specified service. |
list_by_mobile_network | SELECT | mobileNetworkName, resourceGroupName, subscriptionId | Gets all the services in a mobile network. |
create_or_update | INSERT | mobileNetworkName, resourceGroupName, serviceName, subscriptionId, data__properties | Creates or updates a service. Must be created in the same location as its parent mobile network. |
delete | DELETE | mobileNetworkName, resourceGroupName, serviceName, subscriptionId | Deletes the specified service. |
update_tags | EXEC | mobileNetworkName, resourceGroupName, serviceName, subscriptionId | Updates service tags. |
SELECT
examples
Gets all the services in a mobile network.
- vw_services
- services
SELECT
location,
mobileNetworkName,
pcc_rules,
provisioning_state,
resourceGroupName,
serviceName,
service_precedence,
service_qos_policy,
subscriptionId,
tags
FROM azure.mobile_network.vw_services
WHERE mobileNetworkName = '{{ mobileNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.mobile_network.services
WHERE mobileNetworkName = '{{ mobileNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new services
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.mobile_network.services (
mobileNetworkName,
resourceGroupName,
serviceName,
subscriptionId,
data__properties,
properties,
tags,
location
)
SELECT
'{{ mobileNetworkName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: provisioningState
value: []
- name: servicePrecedence
value: integer
- name: serviceQosPolicy
value:
- name: 5qi
value: []
- name: allocationAndRetentionPriorityLevel
value: []
- name: preemptionCapability
value: []
- name: preemptionVulnerability
value: []
- name: maximumBitRate
value:
- name: uplink
value: []
- name: pccRules
value:
- - name: ruleName
value: string
- name: rulePrecedence
value: integer
- name: ruleQosPolicy
value: []
- name: trafficControl
value: []
- name: serviceDataFlowTemplates
value:
- - name: templateName
value: string
- name: direction
value: []
- name: protocol
value:
- string
- name: remoteIpList
value:
- string
- name: ports
value:
- string
- name: tags
value: object
- name: location
value: string
DELETE
example
Deletes the specified services
resource.
/*+ delete */
DELETE FROM azure.mobile_network.services
WHERE mobileNetworkName = '{{ mobileNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';