blob: f34f939dc51dd2dab59bbdea67217991ac8bb4c9 [file] [log] [blame]
..
SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
SPDX-License-Identifier: Apache-2.0
Configuration using REST Interface
==================================
You can decide to use any other tool to generate REST messages towards SD-Core to configure
subscribers, device groups and network slice
Subscriber Configuration through REST Interface
"""""""""""""""""""""""""""""""""""""""""""""""
Below example configures subscriber `208014567891209` in the SD-Core
.. code-block::
- Post:
URL: `http://<config-service-name-or-ip>:<port>/api/subscriber/<imsi-xxx>`
Ex: `http://<config-service-name-or-ip>:<port>/api/subscriber/<imsi-208014567891209>`
Request Body:
{
"UeId":"208014567891209",
"plmnId":"20801",
"opc":"d4416644f6154936193433dd20a0ace0",
"key":"465b5ce8b199b49faa5f0a2ee238a6bc",
"sequenceNumber":"96"
}
- Delete:
URL: `http://<config-service-name-or-ip>:<port>/api/subscriber/<imsi-xxx>`
Ex: `http://<config-service-name-or-ip>:<port>/api/subscriber/<imsi-208014567891209>`
Device Group Configuration through REST Interface
"""""""""""""""""""""""""""""""""""""""""""""""""
.. code-block::
- Post:
URL: `http://<config-service-name-or-ip>:<port>/device-group/<group-name>`
Ex: `http://config5g:8080/device-group/iot-camera`
Request Body:
{
"imsis":
[
"123456789123456"
"123456789123457"
"123456789123458"
],
"site-info": "menlo",
"ip-domain-name": "pool1",
"ip-domain-expanded":
{
"dnn": "internet",
"ue-ip-pool": "10.91.0.0/16",
"dns-primary": "8.8.8.8",
"dns-secondary": "8.8.4.4",
"mtu": 1460,
"ue-dnn-qos":
{
"dnn-mbr-uplink": 4000000,
"dnn-mbr-downlink": 20000000,
"bitrate-unit": "Mbps",
"traffic-class": "platinum"
}
}
}
- Delete
URL: `http://<config-service-name-or-ip>:<port>/device-group/<group-name>`
Ex: `http://config5g:8080/device-group/iot-camera`
Network Slice Configuration through REST Interface
""""""""""""""""""""""""""""""""""""""""""""""""""
.. code-block::
- Post:
URL: `http://<config-service-name-or-ip>:<port>/network-slice/<slice-name>`
Ex: `http://config5g:8080/network-slice/slice1`
Request Body:
{
"slice-id":
{
"sst": "1",
"sd": "010203"
},
"qos":
{
"uplink": 4000000,
"downlink": 20000000,
"bitrate-unit": "Mbps",
"traffic-class": "platinum"
},
"site-device-group":
[
"iot-camera"
],
"site-info":
{
"site-name": "menlo",
"plmn":
{
"mcc": "315",
"mnc": "010"
},
"gNodeBs":
[
{
"name": "menlo-gnb1",
"tac": 1
}
],
"upf":
{
"upf-name": "upf.menlo.aetherproject.org",
"upf-port": 8805
}
},
}
- Delete
URL: `http://<config-service-name-or-ip>:<port>/network-slice/<slice-name>`
Ex: `http://config5g:8080/network-slice/slice1`