blob: 22235ffbb6bf9c9489808eb0cbd03974e6914616 [file] [log] [blame]
Niranjana02a73782022-01-26 12:36:17 +00001{
2 "swagger": "2.0",
3 "info": {
4 "description": "Slice Analysis MS is introduced in ONAP for: (a) Analyzing the FM/PM data (reported from the xNFs) and KPI data (computed from PM data) related to various slice instances (NSIs), slice sub-net instances (NSSIs) and services catered to by the slices (S-NSSAIs). (b) Determining and triggering appropriate Control Loop actions based on the analysis above (c) Receiving recommendations for closed loop actions from ML or Analytics engines, performing validity checks, etc. to determine if the actions can be carried out, and then triggering the appropriate Control Loop (d) Providing utilization details of slices",
5 "version": "1.0.7",
6 "title": "Slice-analysis MS APIs",
7 "license": {
8 "name": "Apache 2.0",
9 "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
10 }
11 },
12 "host": "localhost:8080",
13 "basePath": "/",
14 "tags": [
15 {
16 "name": "slice-config",
17 "description": "API for getting utilization of slices"
18 }
19 ],
20 "schemes": [
21 "http"
22 ],
23 "paths": {
24 "/api/v1/slices-config": {
25 "post": {
26 "tags": [
27 "slice-config"
28 ],
29 "summary": "Get utilization of slices",
30 "operationId": "sliceConfig",
31 "consumes": [
32 "application/json"
33 ],
34 "produces": [
35 "application/json"
36 ],
37 "parameters": [
38 {
39 "in": "body",
40 "name": "body",
41 "description": "Slice config request",
42 "required": true,
43 "schema": {
44 "$ref": "#/definitions/SliceConfigRequest"
45 }
46 }
47 ],
48 "responses": {
49 "200": {
50 "description": "SliceConfig details returned successfully",
51 "schema": {
52 "$ref": "#/definitions/SliceConfigResponse"
53 }
54 },
55 "400": {
56 "description": "Invalid input"
57 },
58 "500": {
59 "description": "Internal server error"
60 }
61 }
62 }
63 },
64 "/healthcheck": {
65 "get": {
66 "tags": [
67 "healthcheck"
68 ],
69 "summary": "healthcheck api",
70 "description": "api to check if slice-analysis ms is healthy",
71 "operationId": "healthcheck",
72 "consumes": [
73 "application/json"
74 ],
75 "produces": [
76 "application/json"
77 ],
78 "responses": {
79 "200": {
80 "description": "slice-analysis ms is healthy"
81 },
82 "500": {
83 "description": "Internal server error"
84 }
85 }
86 }
87 }
88 },
89 "definitions": {
90 "SliceConfigRequest": {
91 "type": "object",
92 "required": [
93 "sliceIdentifiers",
94 "configParams"
95 ],
96 "properties": {
97 "sliceIdentifiers": {
98 "type": "array",
99 "items": {
100 "type": "string",
101 "example": [
102 "7e000ddc-7ba1-4fdb-a7ce-8f0a65ab3282"
103 ]
104 }
105 },
106 "configParams": {
107 "type": "array",
108 "items": {
109 "type": "string",
110 "example": [
111 "dLThptPerSlice",
112 "uLThptPerSlice",
113 "maxNumberOfConns"
114 ]
115 }
116 }
117 }
118 },
119 "SliceConfigResponse": {
120 "type": "object",
121 "required": [
122 "sliceConfigDetails"
123 ],
124 "properties": {
125 "sliceConfigDetails": {
126 "type": "array",
127 "items": {
128 "$ref": "#/definitions/sliceConfigDetails"
129 }
130 }
131 }
132 },
133 "sliceConfigDetails": {
134 "type": "object",
135 "properties": {
136 "sliceIdentifier": {
137 "type": "string",
138 "example": "7e000ddc-7ba1-4fdb-a7ce-8f0a65ab3282"
139 },
140 "aggregatedConfig": {
141 "type": "object",
142 "properties": {
143 "dLThptPerSlice": {
144 "type": "integer",
145 "format": "int64",
146 "example": 40
147 },
148 "uLThptPerSlice": {
149 "type": "integer",
150 "format": "int64",
151 "example": 25
152 },
153 "maxNumberOfConns": {
154 "type": "integer",
155 "format": "int64",
156 "example": 400
157 }
158 }
159 }
160 }
161 }
162 }
163}