slices
Creates, updates, deletes, gets or lists a slices
resource.
Overview
Name | slices |
Type | Resource |
Id | azure.mobile_network.slices |
Fields
- vw_slices
- slices
Name | Datatype | Description |
---|---|---|
description | 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 |
sliceName | text | field from the properties object |
snssai | 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 | Network slice properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | mobileNetworkName, resourceGroupName, sliceName, subscriptionId | Gets information about the specified network slice. |
list_by_mobile_network | SELECT | mobileNetworkName, resourceGroupName, subscriptionId | Lists all slices in the mobile network. |
create_or_update | INSERT | mobileNetworkName, resourceGroupName, sliceName, subscriptionId, data__properties | Creates or updates a network slice. Must be created in the same location as its parent mobile network. |
delete | DELETE | mobileNetworkName, resourceGroupName, sliceName, subscriptionId | Deletes the specified network slice. |
update_tags | EXEC | mobileNetworkName, resourceGroupName, sliceName, subscriptionId | Updates slice tags. |
SELECT
examples
Lists all slices in the mobile network.
- vw_slices
- slices
SELECT
description,
location,
mobileNetworkName,
provisioning_state,
resourceGroupName,
sliceName,
snssai,
subscriptionId,
tags
FROM azure.mobile_network.vw_slices
WHERE mobileNetworkName = '{{ mobileNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.mobile_network.slices
WHERE mobileNetworkName = '{{ mobileNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new slices
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.mobile_network.slices (
mobileNetworkName,
resourceGroupName,
sliceName,
subscriptionId,
data__properties,
properties,
tags,
location
)
SELECT
'{{ mobileNetworkName }}',
'{{ resourceGroupName }}',
'{{ sliceName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: provisioningState
value: []
- name: snssai
value:
- name: sst
value: integer
- name: sd
value: string
- name: description
value: string
- name: tags
value: object
- name: location
value: string
DELETE
example
Deletes the specified slices
resource.
/*+ delete */
DELETE FROM azure.mobile_network.slices
WHERE mobileNetworkName = '{{ mobileNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND sliceName = '{{ sliceName }}'
AND subscriptionId = '{{ subscriptionId }}';