1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright 2022 Nordix Foundation
10 ---------------------------------------------------
15 This is the health check endpoint. If this returns a 200, the server is alive.
21 +-----------+--------------------------+
22 | HTTP Code | Description |
23 +===========+==========================+
24 | **200** | Successful response |
25 +-----------+--------------------------+
26 | **503** | Service unavailable |
27 +-----------+--------------------------+
31 --------------------------------------------------
36 Create a PM Subscription
41 +-----------+--------------------------------------+
42 | HTTP Code | Description |
43 +===========+======================================+
44 | **201** | Successfully created PM Subscription |
45 +-----------+--------------------------------------+
46 | **400** | Invalid Input |
47 +-----------+--------------------------------------+
48 | **409** | Duplicate Data |
49 +-----------+--------------------------------------+
51 Sample Subscription Body
52 ~~~~~~~~~~~~~~~~~~~~~~~~
58 "subscriptionName": "new_sub",
59 "policyName": "pmsh_policy",
65 "modelInvariantIDs": [
73 "measurementGroups": [{
75 "measurementGroupName": "msr_grp_name",
77 "fileLocation": "\/pm\/pm.xml",
78 "administrativeState": "UNLOCKED",
79 "measurementTypes": [{
80 "measurementType": "counter_a"
82 "managedObjectDNsBasic": [{
92 --------------------------------------------------
97 Get all the subscriptions from PMSH
103 +-----------+----------------------------------------+
104 | HTTP Code | Description |
105 +===========+========================================+
106 | **200** | Successfully fetched all subscriptions |
107 +-----------+----------------------------------------+
108 | **500** | Exception occured when querying DB |
109 +-----------+----------------------------------------+
112 GET /subscription/{subscription_name}
113 ---------------------------------------------------
118 Get the Subscription from PMSH specified by Name
123 +-----------+--------------------------------------------+
124 | HTTP Code | Description |
125 +===========+============================================+
126 | **200** | OK; Requested Subscription was returned |
127 +-----------+--------------------------------------------+
128 | **404** | Subscription with specified name not found |
129 +-----------+--------------------------------------------+
130 | **500** | Exception occurred while querying database |
131 +-----------+--------------------------------------------+
134 DELETE /subscription/{subscription_name}
135 ---------------------------------------------------
140 Deletes the Subscription from PMSH specified by Name
145 +-----------+---------------------------------------------------------------------+
146 | HTTP Code | Description |
147 +===========+=====================================================================+
148 | **204** | Successfully deleted the subscription and returns NO Content |
149 +-----------+---------------------------------------------------------------------+
150 | **404** | Subscription with specified name not found |
151 +-----------+---------------------------------------------------------------------+
152 | **409** | Subscription could not be deleted as it contains measurement groups |
153 | | with state UNLOCKED OR state change to LOCKED was under process |
154 +-----------+---------------------------------------------------------------------+
155 | **500** | Exception occurred on the server |
156 +-----------+---------------------------------------------------------------------+
159 PUT /subscription/{subscription_name}/nfFilter
160 ----------------------------------------------
165 Update a Subscription nf filter
168 Sample NF Filter Body
169 ~~~~~~~~~~~~~~~~~~~~~~~~
179 "modelInvariantIDs": [
194 +-----------+---------------------------------------------------------------------+
195 | HTTP Code | Description |
196 +===========+=====================================================================+
197 | **201** | Successfully updated nf filter |
198 +-----------+---------------------------------------------------------------------+
199 | **400** | Invalid input |
200 +-----------+---------------------------------------------------------------------+
201 | **409** | Conflicting data |
202 +-----------+---------------------------------------------------------------------+
203 | **500** | Exception occurred while querying database |
204 +-----------+---------------------------------------------------------------------+
207 POST /subscription/{subscription_name}/measurementGroups/{measurement_group_name}
208 ----------------------------------------------------------------------------------
213 Create a measurement group for a given subscription
216 Sample Measurement Group Body
217 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
222 "measurementGroup": {
223 "measurementGroupName": "msg_grp_03",
225 "fileLocation":"pm.xml",
226 "administrativeState": "UNLOCKED",
227 "measurementTypes": [
229 "measurementType": "counter_a"
232 "managedObjectDNsBasic": [
243 +-----------+---------------------------------------------------------------------+
244 | HTTP Code | Description |
245 +===========+=====================================================================+
246 | **201** | Successfully created measurement group |
247 +-----------+---------------------------------------------------------------------+
248 | **404** | Subscription with the specified name not found |
249 +-----------+---------------------------------------------------------------------+
250 | **409** | Duplicate data |
251 +-----------+---------------------------------------------------------------------+
252 | **500** | Internal server error |
253 +-----------+---------------------------------------------------------------------+
256 GET /subscription/{subscription_name}/measurementGroups/{measurement_group_name}
257 ----------------------------------------------------------------------------------
262 Get the measurement group and associated network functions from PMSH by using sub name and meas group name
267 +-----------+---------------------------------------------------------------------+
268 | HTTP Code | Description |
269 +===========+=====================================================================+
270 | **200** | OK; Received requested measurement group with associated NF's |
271 +-----------+---------------------------------------------------------------------+
272 | **404** | Measurement group with specified name not found |
273 +-----------+---------------------------------------------------------------------+
274 | **500** | Exception occurred on the server |
275 +-----------+---------------------------------------------------------------------+
278 DELETE /subscription/{subscription_name}/measurementGroups/{measurement_group_name}
279 ------------------------------------------------------------------------------------
284 Delete a measurement group
289 +-----------+--------------------------------------------------------------------------------------------------+
290 | HTTP Code | Description |
291 +===========+==================================================================================================+
292 | **204** | Successfully deleted the measurement group and returns NO Content |
293 +-----------+--------------------------------------------------------------------------------------------------+
294 | **404** | Measurement group with the specified name not found |
295 +-----------+--------------------------------------------------------------------------------------------------+
296 | **409** | Measurement group not deleted because state UNLOCKED OR state change to LOCKED was under process |
297 +-----------+--------------------------------------------------------------------------------------------------+
298 | **500** | Exception occurred on the server |
299 +-----------+--------------------------------------------------------------------------------------------------+
302 PUT /subscription/{subscription_name}/measurementGroups/{measurement_group_name}/{administrativeState}
303 -------------------------------------------------------------------------------------------------------
308 Update administrative state for a measurement group
313 +-----------+---------------------------------------------------------------------+
314 | HTTP Code | Description |
315 +===========+=====================================================================+
316 | **201** | Successfully updated administrative state |
317 +-----------+---------------------------------------------------------------------+
318 | **409** | Duplicate data |
319 +-----------+---------------------------------------------------------------------+
320 | **500** | Invalid input |
321 +-----------+---------------------------------------------------------------------+