blob: 373fc7af04e7a7b67fd9778b3162e85110905b62 [file] [log] [blame]
Mohamed Abukar429da192020-02-26 16:46:34 +02001swagger: "2.0"
Mohamed Abukar5120ec12020-02-04 11:01:24 +02002info:
3 description: This is the initial REST API for RIC subscription
4 version: 0.0.1
5 title: RIC subscription
6 license:
7 name: Apache 2.0
8 url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
9host: hostname
10basePath: /ric/v1
11schemes:
12 - http
13paths:
Mohamed Abukar9568a2d2020-02-18 16:50:32 +020014 /subscriptions:
15 get:
16 summary: Returns list of subscriptions
17 tags:
18 - "query"
19 operationId: getAllSubscriptions
20 produces:
21 - application/json
22 responses:
23 '200':
24 description: successful query of subscriptions
25 schema:
26 $ref: '#/definitions/SubscriptionList'
27 '500':
28 description: Internal error
Mohamed Abukar5120ec12020-02-04 11:01:24 +020029 /subscriptions/report:
30 post:
31 tags:
32 - "report"
Mohamed Abukar429da192020-02-26 16:46:34 +020033 summary: Subscribe a list of X2AP event triggers to receive "REPORT" messages sent by RAN or Subscribe to receive the content of gNB NRT table in REPORT message sent by RAN
Mohamed Abukar5120ec12020-02-04 11:01:24 +020034 operationId: subscribeReport
35 consumes:
36 - application/json
37 produces:
38 - application/json
39 parameters:
40 - name: ReportParams
41 in: body
42 description: Subscription report parameters
43 schema:
44 $ref: '#/definitions/ReportParams'
45 responses:
46 '201':
47 description: Subscription successfully created
48 schema:
Mohamed Abukar429da192020-02-26 16:46:34 +020049 $ref: '#/definitions/SubscriptionResponse'
Mohamed Abukar5120ec12020-02-04 11:01:24 +020050 '400':
51 description: Invalid input
52 '500':
53 description: Internal error
54 /subscriptions/policy:
55 post:
56 tags:
57 - "policy"
58 summary: Subscribe and send "POLICY" message to RAN to execute a specific POLICY during call processing in RAN after each occurrence of a defined SUBSCRIPTION
59 operationId: subscribePolicy
60 consumes:
61 - application/json
62 produces:
63 - application/json
64 parameters:
65 - name: PolicyParams
66 in: body
67 description: Subscription policy parameters
68 schema:
69 $ref: '#/definitions/PolicyParams'
70 responses:
71 '201':
72 description: Subscription successfully created
73 schema:
Mohamed Abukar429da192020-02-26 16:46:34 +020074 $ref: '#/definitions/SubscriptionResponse'
Mohamed Abukar5120ec12020-02-04 11:01:24 +020075 '400':
76 description: Invalid input
77 '500':
78 description: Internal error
79 /subscriptions/{subscriptionId}:
80 delete:
81 tags:
82 - "common"
83 summary: Unsubscribe X2AP events from Subscription Manager
84 operationId: Unsubscribe
85 parameters:
86 - name: subscriptionId
87 in: path
Mohamed Abukar429da192020-02-26 16:46:34 +020088 description: The subscriptionId received in the Subscription Response
Mohamed Abukar5120ec12020-02-04 11:01:24 +020089 required: true
Mohamed Abukar429da192020-02-26 16:46:34 +020090 type: string
Mohamed Abukar5120ec12020-02-04 11:01:24 +020091 responses:
92 '204':
93 description: Operation done successfully
94 '400':
Mohamed Abukar429da192020-02-26 16:46:34 +020095 description: Invalid subscriptionId supplied
Mohamed Abukar5120ec12020-02-04 11:01:24 +020096 '500':
97 description: Internal error
98definitions:
99 SubscriptionType:
100 type: string
101 enum:
Mohamed Abukar5120ec12020-02-04 11:01:24 +0200102 - insert
103 - policy
104 - report
105 ReportParams:
106 type: object
107 required:
Mohamed Abukar429da192020-02-26 16:46:34 +0200108 - RANFunctionID
109 - ClientEndpoint
Mohamed Abukar5120ec12020-02-04 11:01:24 +0200110 - EventTriggers
111 properties:
Mohamed Abukar429da192020-02-26 16:46:34 +0200112 Meid:
113 type: string
114 RANFunctionID:
Mohamed Abukar5120ec12020-02-04 11:01:24 +0200115 type: integer
Mohamed Abukar429da192020-02-26 16:46:34 +0200116 ClientEndpoint:
117 type: string
Mohamed Abukar5120ec12020-02-04 11:01:24 +0200118 EventTriggers:
119 $ref: '#/definitions/EventTriggerList'
Mohamed Abukar429da192020-02-26 16:46:34 +0200120 ReportActionDefinitions:
121 $ref: '#/definitions/ReportActionDefinition'
Mohamed Abukar5120ec12020-02-04 11:01:24 +0200122 EventTrigger:
123 type: object
Mohamed Abukar5120ec12020-02-04 11:01:24 +0200124 properties:
125 InterfaceDirection:
126 type: integer
127 ProcedureCode:
128 type: integer
129 TypeOfMessage:
130 type: integer
Mohamed Abukar429da192020-02-26 16:46:34 +0200131 TriggerNature:
132 type: string
133 enum:
134 - now
135 - on change
Mohamed Abukar5120ec12020-02-04 11:01:24 +0200136 PlmnId:
137 type: string
138 ENBId:
Mohamed Abukar429da192020-02-26 16:46:34 +0200139 type: string
Mohamed Abukar5120ec12020-02-04 11:01:24 +0200140 EventTriggerList:
141 type: array
142 items:
143 $ref: '#/definitions/EventTrigger'
Mohamed Abukar429da192020-02-26 16:46:34 +0200144 ActionParameters:
145 type: object
146 required:
147 - ActionParameterID
148 - ActionParameterValue
149 properties:
150 ActionParameterID:
151 type: integer
152 ActionParameterValue:
153 type: boolean
154 Format1ActionDefinition:
155 type: object
156 required:
157 - StyleID
158 - ActionParameters
159 properties:
160 StyleID:
161 type: integer
162 ActionParameters:
163 type: array
164 items:
165 $ref: '#/definitions/ActionParameters'
166 ReportActionDefinition:
Mohamed Abukar5120ec12020-02-04 11:01:24 +0200167 type: object
168 properties:
Mohamed Abukar429da192020-02-26 16:46:34 +0200169 ActionDefinitionFormat1:
170 $ref: '#/definitions/Format1ActionDefinition'
Mohamed Abukar5120ec12020-02-04 11:01:24 +0200171 PolicyParams:
172 type: object
Mohamed Abukar429da192020-02-26 16:46:34 +0200173 required:
174 - Meid
175 - RANFunctionID
176 - ClientEndpoint
177 - EventTriggers
178 - PolicyActionDefinitions
Mohamed Abukar5120ec12020-02-04 11:01:24 +0200179 properties:
Mohamed Abukar429da192020-02-26 16:46:34 +0200180 Meid:
181 type: string
182 RANFunctionID:
183 type: integer
184 ClientEndpoint:
185 type: string
186 EventTriggers:
187 $ref: '#/definitions/EventTriggerList'
188 PolicyActionDefinitions:
189 $ref: '#/definitions/PolicyActionDefinition'
190 PolicyActionDefinition:
191 type: object
192 properties:
193 ActionDefinitionFormat2:
194 $ref: '#/definitions/Format2ActionDefinition'
195 Format2ActionDefinition:
196 type: object
197 required:
198 - RANUeGroupParameters
199 properties:
200 RANUeGroupParameters:
201 type: array
202 items:
203 $ref: '#/definitions/RANUeGroupList'
204 RANUeGroupList:
205 type: object
206 required:
207 - RANUeGroupID
208 - RANUeGroupDefinition
209 - RANImperativePolicy
210 properties:
211 RANUeGroupID:
212 type: integer
213 RANUeGroupDefinition:
214 $ref: '#/definitions/RANUeGroupParams'
215 RANImperativePolicy:
216 $ref: '#/definitions/ImperativePolicyDefinition'
217 RANUeGroupParams:
218 type: object
219 required:
220 - RANParameterID
221 - RANParameterValue
222 properties:
223 RANParameterID:
224 type: integer
225 RANParameterTestCondition:
226 type: string
227 enum:
228 - equal
229 - greaterthan
230 - lessthan
231 - contains
232 - present
233 RANParameterValue:
234 type: integer
235 ImperativePolicyDefinition:
236 type: object
237 required:
238 - PolicyParameterID
239 - PolicyParameterValue
240 properties:
241 PolicyParameterID:
242 type: integer
243 PolicyParameterValue:
244 type: integer
245 SubscriptionResponseItem:
246 type: object
247 required:
248 - SubscriptionId
249 - RequestorId
250 - InstanceId
251 properties:
252 SubscriptionId:
253 type: string
Mohamed Abukar5120ec12020-02-04 11:01:24 +0200254 RequestorId:
255 type: integer
Mohamed Abukar429da192020-02-26 16:46:34 +0200256 InstanceId:
257 type: integer
258 SubscriptionResponse:
259 type: array
260 items:
261 $ref: '#/definitions/SubscriptionResponseItem'
Mohamed Abukar9568a2d2020-02-18 16:50:32 +0200262 SubscriptionData:
263 type: object
264 properties:
265 SubscriptionId:
266 type: integer
267 Meid:
268 type: string
269 Endpoint:
270 type: array
271 items:
272 type: string
273 SubscriptionList:
274 type: array
275 description: A list of subscriptions
276 items:
277 $ref: '#/definitions/SubscriptionData'