ajay | b3f4098 | 2021-12-08 14:26:11 -0800 | [diff] [blame] | 1 | .. |
| 2 | SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 3 | SPDX-License-Identifier: Apache-2.0 |
| 4 | |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 5 | Configuration using REST Interface |
| 6 | ================================== |
| 7 | |
| 8 | You can decide to use any other tool to generate REST messages towards SD-Core to configure |
| 9 | subscribers, device groups and network slice |
| 10 | |
| 11 | |
| 12 | Subscriber Configuration through REST Interface |
| 13 | """"""""""""""""""""""""""""""""""""""""""""""" |
| 14 | |
| 15 | Below example configures subscriber `208014567891209` in the SD-Core |
| 16 | |
| 17 | .. code-block:: |
| 18 | |
| 19 | - Post: |
| 20 | URL: `http://<config-service-name-or-ip>:<port>/api/subscriber/<imsi-xxx>` |
| 21 | Ex: `http://<config-service-name-or-ip>:<port>/api/subscriber/<imsi-208014567891209>` |
| 22 | |
| 23 | Request Body: |
| 24 | |
| 25 | { |
| 26 | "UeId":"208014567891209", |
| 27 | "plmnId":"20801", |
| 28 | "opc":"d4416644f6154936193433dd20a0ace0", |
| 29 | "key":"465b5ce8b199b49faa5f0a2ee238a6bc", |
| 30 | "sequenceNumber":"96" |
| 31 | } |
| 32 | |
| 33 | - Delete: |
| 34 | URL: `http://<config-service-name-or-ip>:<port>/api/subscriber/<imsi-xxx>` |
| 35 | Ex: `http://<config-service-name-or-ip>:<port>/api/subscriber/<imsi-208014567891209>` |
| 36 | |
| 37 | |
| 38 | Device Group Configuration through REST Interface |
| 39 | """"""""""""""""""""""""""""""""""""""""""""""""" |
| 40 | |
| 41 | .. code-block:: |
| 42 | |
| 43 | - Post: |
| 44 | URL: `http://<config-service-name-or-ip>:<port>/device-group/<group-name>` |
| 45 | Ex: `http://config5g:8080/device-group/iot-camera` |
| 46 | |
| 47 | Request Body: |
| 48 | { |
| 49 | "imsis": |
| 50 | [ |
| 51 | "123456789123456" |
| 52 | "123456789123457" |
| 53 | "123456789123458" |
| 54 | ], |
| 55 | "site-info": "menlo", |
| 56 | "ip-domain-name": "pool1", |
| 57 | "ip-domain-expanded": |
| 58 | { |
| 59 | "dnn": "internet", |
| 60 | "ue-ip-pool": "10.91.0.0/16", |
| 61 | "dns-primary": "8.8.8.8", |
| 62 | "dns-secondary": "8.8.4.4", |
| 63 | "mtu": 1460, |
| 64 | "ue-dnn-qos": |
| 65 | { |
| 66 | "dnn-mbr-uplink": 4000000, |
| 67 | "dnn-mbr-downlink": 20000000, |
| 68 | "bitrate-unit": "Mbps", |
| 69 | "traffic-class": "platinum" |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | - Delete |
| 75 | URL: `http://<config-service-name-or-ip>:<port>/device-group/<group-name>` |
| 76 | Ex: `http://config5g:8080/device-group/iot-camera` |
| 77 | |
| 78 | Network Slice Configuration through REST Interface |
| 79 | """""""""""""""""""""""""""""""""""""""""""""""""" |
| 80 | |
| 81 | .. code-block:: |
| 82 | |
| 83 | - Post: |
| 84 | URL: `http://<config-service-name-or-ip>:<port>/network-slice/<slice-name>` |
| 85 | Ex: `http://config5g:8080/network-slice/slice1` |
| 86 | |
| 87 | |
| 88 | Request Body: |
| 89 | { |
| 90 | "slice-id": |
| 91 | { |
| 92 | "sst": "1", |
| 93 | "sd": "010203" |
| 94 | }, |
| 95 | "qos": |
| 96 | { |
| 97 | "uplink": 4000000, |
| 98 | "downlink": 20000000, |
| 99 | "bitrate-unit": "Mbps", |
| 100 | "traffic-class": "platinum" |
| 101 | }, |
| 102 | "site-device-group": |
| 103 | [ |
| 104 | "iot-camera" |
| 105 | ], |
| 106 | "site-info": |
| 107 | { |
| 108 | "site-name": "menlo", |
| 109 | "plmn": |
| 110 | { |
| 111 | "mcc": "315", |
| 112 | "mnc": "010" |
| 113 | }, |
| 114 | "gNodeBs": |
| 115 | [ |
| 116 | { |
| 117 | "name": "menlo-gnb1", |
| 118 | "tac": 1 |
| 119 | } |
| 120 | ], |
| 121 | "upf": |
| 122 | { |
| 123 | "upf-name": "upf.menlo.aetherproject.org", |
| 124 | "upf-port": 8805 |
| 125 | } |
| 126 | }, |
| 127 | } |
| 128 | |
| 129 | - Delete |
| 130 | URL: `http://<config-service-name-or-ip>:<port>/network-slice/<slice-name>` |
| 131 | Ex: `http://config5g:8080/network-slice/slice1` |
| 132 | |
| 133 | |