1 # ========================LICENSE_START=================================
4 # Copyright (C) 2019 AT&T Intellectual Property and Nokia
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ========================LICENSE_END===================================
20 description: This is a draft API for RIC appmgr
25 url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
33 summary : Health check of xApp Manager - Liveness probe
36 operationId : getHealthAlive
39 description : Status of xApp Manager is ok
42 summary : Readiness check of xApp Manager - Readiness probe
45 operationId : getHealthReady
48 description : xApp Manager is ready for service
50 description: xApp Manager is not ready for service
53 summary: Deploy a xapp
56 operationId: deployXapp
64 description: xApp information
72 description: Name of the xApp.
76 description: Name of the xApp configmap. Overrides the value given in Helm chart value file.
77 example: xapp-dummy-configmap
80 description: Name of the namespace to which xApp is deployed. Overrides the value given in Helm chart value file.
84 description: Name of the service xApp is providing. Overrides the value given in Helm chart value file.
85 example: xapp-dummy-service
88 description: Name of the docker repository xApp is located. Overrides the value given in Helm chart value file.
92 description: Hostname for the pod. Used by messaging library. Overrides the value given in Helm chart value file.
96 description: xApp successfully created
98 $ref: '#/definitions/Xapp'
100 description: Invalid input
102 description: Internal error
104 summary: Returns the status of all xapps
107 operationId: getAllXapps
112 description: successful query of xApps
114 $ref: '#/definitions/AllXapps'
116 description: Internal error
119 summary: Returns the status of a given xapp
122 operationId: getXappByName
128 description: Name of xApp
133 description: successful operation
135 $ref: '#/definitions/Xapp'
137 description: Invalid ID supplied
139 description: Xapp not found
141 description: Internal error
143 summary: Undeploy an existing xapp
146 operationId: undeployXapp
150 description: Xapp to be undeployed
155 description: Successful deletion of xApp
157 description: Invalid xApp name supplied
159 description: Internal error
160 '/xapps/{xAppName}/instances/{xAppInstanceName}':
162 summary: Returns the status of a given xapp
165 operationId: getXappInstanceByName
171 description: Name of xApp
174 - name: xAppInstanceName
176 description: Name of xApp instance to get information
181 description: successful operation
183 $ref: '#/definitions/XappInstance'
185 description: Invalid name supplied
187 description: Xapp not found
189 description: Internal error
192 summary: Create xApp config
195 operationId: createXappConfig
203 description: xApp config
205 $ref: '#/definitions/XAppConfig'
208 description: xApp config successfully created
210 $ref: '#/definitions/XAppConfig'
212 description: Invalid input
214 description: Validation of configuration failed
216 description: Internal error
218 summary: Modify xApp config
221 operationId: ModifyXappConfig
229 description: xApp config
231 $ref: '#/definitions/XAppConfig'
234 description: xApp config successfully modified
236 $ref: '#/definitions/XAppConfig'
238 description: Invalid input
240 description: Validation of configuration failed
242 description: Internal error
244 summary: Returns the configuration of all xapps
247 operationId: getAllXappConfig
252 description: successful query of xApp config
254 $ref: '#/definitions/AllXappConfig'
256 description: Internal error
258 summary: Delete xApp configuration
261 operationId: deleteXappConfig
263 - name: ConfigMetadata
265 description: xApp configuration information
267 $ref: '#/definitions/ConfigMetadata'
270 description: Successful deletion of xApp
272 description: Invalid parameters supplied
274 description: Internal error
277 summary: Subscribe event
281 operationId: addSubscription
287 - name: subscriptionRequest
289 description: New subscription
292 $ref: '#/definitions/subscriptionRequest'
295 description: Subscription successful
297 $ref: '#/definitions/subscriptionResponse'
299 description: Invalid input
301 summary: Returns all subscriptions
305 operationId: getSubscriptions
310 description: successful query of subscriptions
312 $ref: '#/definitions/allSubscriptions'
313 '/subscriptions/{subscriptionId}':
315 summary: Returns the information of subscription
319 operationId: getSubscriptionById
323 - name: subscriptionId
325 description: ID of subscription
330 description: successful operation
332 $ref: '#/definitions/subscription'
334 description: Invalid ID supplied
336 description: Subscription not found
338 summary: Modify event subscription
342 operationId: modifySubscription
348 - name: subscriptionId
350 description: ID of subscription
354 name: subscriptionRequest
355 description: Modified subscription
358 $ref: '#/definitions/subscriptionRequest'
361 description: Subscription modification successful
363 $ref: '#/definitions/subscriptionResponse'
365 description: Invalid input
367 summary: Unsubscribe event
372 operationId: deleteSubscription
374 - name: subscriptionId
376 description: ID of subscription
381 description: Successful deletion of subscription
383 description: Invalid subscription supplied
388 $ref: '#/definitions/Xapp'
399 description: xapp status in the RIC
413 $ref: '#/definitions/XappInstance'
421 example: xapp-dummy-6cd577d9-4v255
424 description: xapp instance status
443 example: ControlIndication
448 example: LoadIndication
458 description: Name of the xApp
462 description: Name of the config map
463 example: xapp-dummy-config-map
466 description: Name of the namespace
476 $ref: '#/definitions/ConfigMetadata'
479 description: Schema of configuration in JSON format
482 description: Configuration in JSON format
486 $ref: '#/definitions/XAppConfig'
497 example: 'http://localhost:11111/apps/webhook/'
500 description: Event which is subscribed
507 description: Maximum number of retries
511 description: Time in seconds to wait before next retry
513 subscriptionResponse:
518 example: 1ILBltYYzEGzWRrVPZKmuUmhwcc
524 description: Event which is subscribed
533 $ref: '#/definitions/subscription'
539 example: 1ILBltYYzEGzWRrVPZKmuUmhwcc
542 example: 'http://localhost:11111/apps/webhook/'
545 description: Event which is subscribed
553 description: Maximum number of retries
557 description: Time in seconds to wait before next retry
559 subscriptionNotification:
564 example: 1ILBltYYzEGzWRrVPZKmuUmhwcc
570 description: Event to be notified
576 $ref: '#/definitions/AllXapps'