blob: 130d3b3831016757a6f237bcabf367b188fd23f4 [file] [log] [blame]
Huang Chengba7629d2020-03-03 09:01:58 +00001Python Dependence: python 3.6.x
2
3
41. To specify the supported NRM function in DefinedNRMFunction.json
5
6
72. To specify the HTTP server configuration info in ConfigInfo.json
8
9
103. To specify the User info in UserInfo.json
11
12
134. To specify the pre-set-MOI info in preSetMOI.json
14
15
165. To run the HTTP EMS simulator: python ProvMnSProvider.py
17
18Build the image by using the command: docker build . -t prov-mns-provider
19Create the container and start the service by using the command: docker-compose up -d
20
21The default port number of ProvMnSProvider is : 8000
22
23The default username&password of ProvMnSProvider is : root&root
24
25ProvMnSProvider provdies four RESTful APIs:
26
271. Sample PUT request to Create MOI
28 PUT /ProvisioningMnS/v1500/GNBCUCPFunction/35c369d0-2681-4225-9755-daf98fd20805
29 {
30 "data": {
31 "attributes": {
32 "pLMNId": {
33 "mnc": "01",
34 "mcc": "001"
35 },
36 "gNBId": "1",
37 "gNBIdLength": "5",
38 "gNBCUName": "gnb-01"
39 },
40 "href": "/GNBCUCPFunction/35c369d0-2681-4225-9755-daf98fd20805",
41 "class": "GNBCUCPFunction",
42 "id": "35c369d0-2681-4225-9755-daf98fd20805"
43 }
44 }
45
462. Sample GET request to get MOI attributes
47 GET /ProvisioningMnS/v1500/GNBCUCPFunction/35c369d0-2681-4225-9755-daf98fd20805?scope=BASE_ONLY&filter=GNBCUCPFunction&fields=gNBId&fields=gNBIdLength
48
493. Sample PATCH request to modify MOI attributes
50 PATCH /ProvisioningMnS/v1500/GNBCUCPFunction/35c369d0-2681-4225-9755-daf98fd20805?scope=BASE_ONLY&filter=GNBCUCPFunction
51 {
52 "data": {
53 "pLMNId": "xxx",
54 "gNBId": "1234",
55 "gNBIdLength": "4"
56 }
57 }
58
594. Sample DELETE request to delete MOI
60 DELETE /ProvisioningMnS/v1500/GNBCUCPFunction/35c369d0-2681-4225-9755-daf98fd20805?scope=BASE_ONLY&filter=GNBCUCPFunction