summaryrefslogtreecommitdiffstats
path: root/docs/offeredapis/serviceCatalog/markDown.md
blob: 22d062e78ee3ab628f9fdd5f42700a16db6c9b60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
# This work is licensed under a Creative Commons Attribution 4.0 International License.
# http://creativecommons.org/licenses/by/4.0
# Copyright 2018 Orange

# API ServiceCatalog


<a name="overview"></a>
## Overview

### Api URL

[Swagger UI](https://api-designer.sso.infra.ftgroup/swagger-ui/?url=https://api-designer.sso.infra.ftgroup/api/1.0/apis/N3ma89X1x0/swagger.json)


[plant UML UI](https://plantuml.rd.francetelecom.fr/proxy?fmt=svg&src=https://api-designer.sso.infra.ftgroup/api/1.0/apis/N3ma89X1x0/plantuml&noCache=797767.0)

serviceCatalog API designed for ONAP Beijing Release.
This API is build from TMF open API17.5. 
Only operation GET (by id & byList) for resource serviceSpecification is available


### Version information
*Version* : 1.0.0_inProgress


### URI scheme
*Host* : serverRoot  
*BasePath* : /nbi/api/v1  
*Schemes* : HTTPS


### Tags

* ServiceSpecification


### Consumes

* `application/json;charset=utf-8`


### Produces

* `application/json;charset=utf-8`


<a name="paths"></a>
## Resources

<a name="servicespecification_resource"></a>
### ServiceSpecification

<a name="servicespecificationfind"></a>
#### List service specifications
```
GET /serviceSpecification
```


##### Description
This operation returns service specifications from a catalog.
Only a predefined set of attribute is proposed : Based on SDC limitations, only attributes category and distributionStatus are available for serviceSpecification filtering
Fields attribute could be used to filter attributes retrieved

Specific business errors for current operation will be encapsulated in

HTTP Response 422 Unprocessable entity


##### Parameters

|Type|Name|Description|Schema|
|---|---|---|---|
|**Query**|**category**  <br>*optional*|Service Category (filter)|string|
|**Query**|**distributionStatus**  <br>*optional*|Service distribution status (filter)|string|
|**Query**|**fields**  <br>*optional*|Field selection - used to filtering the attributes to be retreived|string|


##### Responses

|HTTP Code|Description|Schema|
|---|---|---|
|**200**|Success|< [ServiceSpecification](#servicespecification) > array|
|**400**|Bad Request<br><br>List of supported error codes:<br>- 20: Invalid URL parameter value<br>- 21: Missing body<br>- 22: Invalid body<br>- 23: Missing body field<br>- 24: Invalid body field<br>- 25: Missing header<br>- 26: Invalid header value<br>- 27: Missing query-string parameter<br>- 28: Invalid query-string parameter value|[ErrorRepresentation](#errorrepresentation)|
|**401**|Unauthorized<br><br>List of supported error codes:<br>- 40: Missing credentials<br>- 41: Invalid credentials<br>- 42: Expired credentials|[ErrorRepresentation](#errorrepresentation)|
|**403**|Forbidden<br><br>List of supported error codes:<br>- 50: Access denied<br>- 51: Forbidden requester<br>- 52: Forbidden user<br>- 53: Too many requests|[ErrorRepresentation](#errorrepresentation)|
|**404**|Not Found<br><br>List of supported error codes:<br>- 60: Resource not found|[ErrorRepresentation](#errorrepresentation)|
|**422**|Unprocessable entity<br><br>Functional error|[ErrorRepresentation](#errorrepresentation)|
|**500**|Internal Server Error<br><br>List of supported error codes:<br>- 1: Internal error|[ErrorRepresentation](#errorrepresentation)|
|**503**|Service Unavailable<br><br>List of supported error codes:<br>- 5: The service is temporarily unavailable<br>- 6: Orange API is over capacity, retry later !|[ErrorRepresentation](#errorrepresentation)|


<a name="servicespecificationget"></a>
#### Retrieve a service specification
```
GET /serviceSpecification/{id}
```


##### Description
This operation returns a service specification by its id from a catalog. Attribute selection is enabled using the fields attribute.

Specific business errors for current operation will be encapsulated in

HTTP Response 422 Unprocessable entity


##### Parameters

|Type|Name|Description|Schema|
|---|---|---|---|
|**Path**|**id**  <br>*required*||string|
|**Query**|**fields**  <br>*optional*|Attribute selection|string|


##### Responses

|HTTP Code|Description|Schema|
|---|---|---|
|**200**|Success|[ServiceSpecification](#servicespecification)|
|**400**|Bad Request<br><br>List of supported error codes:<br>- 20: Invalid URL parameter value<br>- 21: Missing body<br>- 22: Invalid body<br>- 23: Missing body field<br>- 24: Invalid body field<br>- 25: Missing header<br>- 26: Invalid header value<br>- 27: Missing query-string parameter<br>- 28: Invalid query-string parameter value|[ErrorRepresentation](#errorrepresentation)|
|**401**|Unauthorized<br><br>List of supported error codes:<br>- 40: Missing credentials<br>- 41: Invalid credentials<br>- 42: Expired credentials|[ErrorRepresentation](#errorrepresentation)|
|**403**|Forbidden<br><br>List of supported error codes:<br>- 50: Access denied<br>- 51: Forbidden requester<br>- 52: Forbidden user<br>- 53: Too many requests|[ErrorRepresentation](#errorrepresentation)|
|**404**|Not Found<br><br>List of supported error codes:<br>- 60: Resource not found|[ErrorRepresentation](#errorrepresentation)|
|**422**|Unprocessable entity<br><br>Functional error|[ErrorRepresentation](#errorrepresentation)|
|**500**|Internal Server Error<br><br>List of supported error codes:<br>- 1: Internal error|[ErrorRepresentation](#errorrepresentation)|
|**503**|Service Unavailable<br><br>List of supported error codes:<br>- 5: The service is temporarily unavailable<br>- 6: Orange API is over capacity, retry later !|[ErrorRepresentation](#errorrepresentation)|


<a name="definitions"></a>
## Definitions

<a name="attachment"></a>
### Attachment
An attachment is a file uses to describe the service.
In nbi we use attachment to retrieve ONAP artifacts.


|Name|Description|Schema|
|---|---|---|
|**@type**  <br>*optional*|This attribute allows to dynamically extends TMF class. Valued with 'ONAPartifact'. We used this features to add following attributes: <br>artifactLabel<br>artifactGroupType<br>artifactTimeout<br>artifactChecksum<br>artifactVersion<br>generatedFromUUID  <br>**Default** : `"ONAPartifact"`|string|
|**artifactChecksum**  <br>*optional*|Additional attribute (not in the TMF API) - extended through @type - artifactChecksum|string|
|**artifactGroupType**  <br>*optional*|Additional attribute (not in the TMF API) - extended through @type - artifactGroupType|string|
|**artifactLabel**  <br>*optional*|Additional attribute (not in the TMF API) - extended through @type - artifactLabel|string|
|**artifactTimeout**  <br>*optional*|Additional attribute (not in the TMF API) - extended through @type - artifactTimeout|string|
|**artifactVersion**  <br>*optional*|Additional attribute (not in the TMF API) - extended through @type - artifactVersion|string|
|**description**  <br>*optional*|Description of the attachment - filled with artifactDescription|string|
|**generatedFromUUID**  <br>*optional*|Additional attribute (not in the TMF API) - extended through @type - generatedFromUUID|string|
|**id**  <br>*optional*|Unique identifier of the attachment - filled with artifactUUID.|string|
|**mimeType**  <br>*optional*|Filled with artifactType|string|
|**name**  <br>*optional*|Name of the attachment - filled with artifactName|string|
|**url**  <br>*optional*|Uniform Resource Locator, is a web page address - filled with artifactURL|string|


<a name="distributionstatus"></a>
### DistributionStatus
Service distribution status from ONAP.

*Type* : enum (DISTRIBUTION_NOT_APPROVED, DISTRIBUTION_APPROVED, DISTRIBUTED, DISTRIBUTION_REJECTED)


<a name="errorrepresentation"></a>
### ErrorRepresentation
This class is used to describe error.
for nbi Beijing release we do not manage additional error for serviceCatalog


|Name|Description|Schema|
|---|---|---|
|**@schemaLocation**  <br>*optional*|it provides a link to the schema describing a REST resource.|string|
|**@type**  <br>*optional*|The class type of a REST resource.|string|
|**code**  <br>*required*|Application related code (as defined in the API or from a common list)|integer (int32)|
|**message**  <br>*optional*|Text that provide more details and corrective actions related to the error. This can be shown to a client user|string|
|**reason**  <br>*required*|Text that explains the reason for error. This can be shown to a client user.|string|
|**referenceErrror**  <br>*optional*|url pointing to documentation describing the error|string|
|**status**  <br>*optional*|http error code extension like 400-2|string|


<a name="lifecyclestatusvalues"></a>
### LifecycleStatusValues
Service lifecycle value from ONAP SDC

*Type* : enum (NOT_CERTIFIED_CHECKOUT, NOT_CERTIFIED_CHECKIN, READY_FOR_CERTIFICATION, CERTIFICATION_IN_PROGRESS, CERTIFIED)


<a name="relatedpartyref"></a>
### RelatedPartyRef
Party linked to the service catalog.
in nbi we retrieve information about last updater of the service in SDC


|Name|Description|Schema|
|---|---|---|
|**id**  <br>*optional*|Unique identifier of the related party. Filled with lastUpdaterUserId|string|
|**name**  <br>*optional*|Name of the related party - Filled with lastUpdatedFullName|string|
|**role**  <br>*optional*|Role payed by the related party<br>Only role 'lastUpdater' is retrieved in Beijing release|string|


<a name="resourcespecificationref"></a>
### ResourceSpecificationRef
A list of resourceSpec identified to deliver the service.
for nbi we retrieve resource information available in service description (through SDC api) bu as well information retrieved in the TOSCA file.


|Name|Description|Schema|
|---|---|---|
|**@type**  <br>*optional*|This attribute allows to dynamically extends TMF class. Valued with: 'ONAPresource'. We used this features to add following attributes:<br>resourceInstanceName<br>resourceInvariantUUID<br>resourceType<br>modelCustomizationName<br>modelCustomizationId  <br>**Default** : `"ONAPresource"`|string|
|**id**  <br>*optional*|Unique identifier of the resource specification - filled with resourceUUID|string|
|**modelCustomizationId**  <br>*optional*|Additional attribute (not in the TMF API) - extended through @type - Retrieved in the TOSCA file : attribute customizationUUID in topology_template/node_template for the resource|string|
|**modelCustomizationName**  <br>*optional*|Additional attribute (not in the TMF API) - extended through @type - Retrieved in the TOSCA file : attribute name in topology_template/node_template for the resource|string|
|**name**  <br>*optional*|Name of the resource specification - filled with resourceName|string|
|**resourceInstanceName**  <br>*optional*|Additional attribute (not in the TMF API) - extended through @type - resourceInstanceName|string|
|**resourceInvariantUUID**  <br>*optional*|Additional attribute (not in the TMF API) - extended through @type - resourceInvariantUUID|string|
|**resourceType**  <br>*optional*|Additional attribute (not in the TMF API) - extended through @type - resoucreType|string|
|**version**  <br>*optional*|Version for this resource specification - filled with resourceVersion|string|


<a name="servicespeccharacteristic"></a>
### ServiceSpecCharacteristic
A characteristic quality or distinctive feature of a ServiceSpecification. 
ServiceSpecCharacteristic are retrieved in the serviceTosca file in the topology_template section in the inputs section.


|Name|Description|Schema|
|---|---|---|
|**@schemaLocation**  <br>*optional*|An url pointing to type description - we do not use it in nbi Beijing release|string|
|**@type**  <br>*optional*|This attribute allows to dynamically extends TMF class. Valued with: 'ONAPserviceCharacteristic'. We do not used this features in nbi Beijing release.|string|
|**description**  <br>*optional*|A narrative that explains in detail what the characteristic is - Filled with parameter_description|string|
|**name**  <br>*optional*|Name of the characteristic - Filled with parameter_name|string|
|**required**  <br>*optional*|A parameter to define if the characteristic is mandatory - Filled from parameter_required – if not fielded by default ‘true’  <br>**Default** : `true`|boolean|
|**serviceSpecCharacteristicValue**  <br>*optional*||< [ServiceSpecCharacteristicValue](#servicespeccharacteristicvalue) > array|
|**status**  <br>*optional*|Status of the characteristic - filled with status_value|string|
|**valueType**  <br>*optional*|A kind of value that the characteristic can take on, such as numeric, text and so forth - Filled with parameter_type|string|


<a name="servicespeccharacteristicvalue"></a>
### ServiceSpecCharacteristicValue
A number or text that can be assigned to a service specification characteristic.
ServiceSpecCharacteristicValue are retrieved in the service Tosca file


|Name|Description|Schema|
|---|---|---|
|**isDefault**  <br>*optional*|Information calculated from parameter default in the Tosca file|boolean|
|**value**  <br>*optional*|A discrete value that the characteristic can take on|string|
|**valueType**  <br>*optional*|A kind of value that the characteristic can take on, such as numeric, text, and so forth<br>Retrieved in the Tosca in the topology_template section in the inputs section - parameter_type. <br>We do not manage parameter_type= list or map for Beijing release|string|


<a name="servicespecification"></a>
### ServiceSpecification
ServiceSpecification is a class that offers characteristics to describe a type of service. Functionally, it acts as a template by which Services may be instantiated. By sharing the same specification, these services would therefore share the same set of characteristics.
the service information are retrieved in SDC


|Name|Description|Schema|
|---|---|---|
|**@baseType**  <br>*optional*|Not used for Beijing release|string|
|**@schemaLocation**  <br>*optional*|Not used for Beijing release|string|
|**@type**  <br>*optional*|This attribute allows to dynamically extends TMF class. Valued with 'ONAPservice'. We used this features to add following attributes:<br>invariantUUID<br>toscaModelURL<br>toscaResourceName<br>category (1)<br>subcategory (1)<br>distributionStatus  <br>**Default** : `"ONAPservice"`|string|
|**attachment**  <br>*optional*||< [Attachment](#attachment) > array|
|**category**  <br>*optional*|Additional attribute - extended through @type - category<br>Please note that this attribute is managed in TMF - in future release we'll introduce category resource|string|
|**description**  <br>*optional*|A narrative that explains in detail what the service specification is - Filled with SDC Service description|string|
|**distributionStatus**  <br>*optional*||[DistributionStatus](#distributionstatus)|
|**href**  <br>*optional*|Reference of the service specification- not mapped in Beijing|string|
|**id**  <br>*optional*|Unique identifier of the service specification. Filled with SDC Service uuid|string|
|**invariantUUID**  <br>*required*|Additional attribute (not in the TMF API) - extended through @type - invariantUUID|string|
|**lifecycleStatus**  <br>*optional*||[LifecycleStatusValues](#lifecyclestatusvalues)|
|**name**  <br>*optional*|Name of the service specification- Filled with SDC Service name|string|
|**relatedParty**  <br>*optional*||< [RelatedPartyRef](#relatedpartyref) > array|
|**resourceSpecification**  <br>*optional*||< [ResourceSpecificationRef](#resourcespecificationref) > array|
|**serviceSpecCharacteristic**  <br>*optional*||< [ServiceSpecCharacteristic](#servicespeccharacteristic) > array|
|**subcategory**  <br>*optional*|Additional attribute - extended through @type - category<br>Please note that this attribute is managed in TMF - in future release we'll introduce category resourc|string|
|**targetServiceSchema**  <br>*optional*||[TargetServiceSchemaRef](#targetserviceschemaref)|
|**toscaModelURL**  <br>*optional*|Additional attribute (not in the TMF API) - extended through @type - toscaModelURL|string|
|**toscaResourceName**  <br>*optional*|Additional attribute (not in the TMF API) - extended through @type - toscaResourceName|string|
|**version**  <br>*optional*|Service specification version - Filled with SDC Service version|string|


<a name="targetserviceschemaref"></a>
### TargetServiceSchemaRef

|Name|Schema|
|---|---|
|**@schemaLocation**  <br>*required*|string|
|**@type**  <br>*required*|string|


<a name="timeperiod"></a>
### TimePeriod
A time period


|Name|Description|Schema|
|---|---|---|
|**endDateTime**  <br>*optional*|End date and time of the period|string (date-time)|
|**startDateTime**  <br>*optional*|Start date and time of the period|string (date-time)|