Overview
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
Resources
ServiceSpecification
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 |
Service Category (filter) |
string |
Query |
distributionStatus |
Service distribution status (filter) |
string |
Query |
fields |
Field selection - used to filtering the attributes to be retreived |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Success |
< ServiceSpecification > array |
400 |
Bad Request List of supported error codes: - 20: Invalid URL parameter value - 21: Missing body - 22: Invalid body - 23: Missing body field - 24: Invalid body field - 25: Missing header - 26: Invalid header value - 27: Missing query-string parameter - 28: Invalid query-string parameter value |
|
401 |
Unauthorized List of supported error codes: - 40: Missing credentials - 41: Invalid credentials - 42: Expired credentials |
|
403 |
Forbidden List of supported error codes: - 50: Access denied - 51: Forbidden requester - 52: Forbidden user - 53: Too many requests |
|
404 |
Not Found List of supported error codes: - 60: Resource not found |
|
422 |
Unprocessable entity Functional error |
|
500 |
Internal Server Error List of supported error codes: - 1: Internal error |
|
503 |
Service Unavailable List of supported error codes: - 5: The service is temporarily unavailable - 6: Orange API is over capacity, retry later ! |
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 |
string |
|
Query |
fields |
Attribute selection |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Success |
|
400 |
Bad Request List of supported error codes: - 20: Invalid URL parameter value - 21: Missing body - 22: Invalid body - 23: Missing body field - 24: Invalid body field - 25: Missing header - 26: Invalid header value - 27: Missing query-string parameter - 28: Invalid query-string parameter value |
|
401 |
Unauthorized List of supported error codes: - 40: Missing credentials - 41: Invalid credentials - 42: Expired credentials |
|
403 |
Forbidden List of supported error codes: - 50: Access denied - 51: Forbidden requester - 52: Forbidden user - 53: Too many requests |
|
404 |
Not Found List of supported error codes: - 60: Resource not found |
|
422 |
Unprocessable entity Functional error |
|
500 |
Internal Server Error List of supported error codes: - 1: Internal error |
|
503 |
Service Unavailable List of supported error codes: - 5: The service is temporarily unavailable - 6: Orange API is over capacity, retry later ! |
Definitions
Attachment
An attachment is a file uses to describe the service. In nbi we use attachment to retrieve ONAP artifacts.
Name | Description | Schema |
---|---|---|
@type |
This attribute allows to dynamically extends TMF class. Valued with 'ONAPartifact'. We used this features to add following attributes:
artifactLabel
artifactGroupType
artifactTimeout
artifactChecksum
artifactVersion
generatedFromUUID |
string |
artifactChecksum |
Additional attribute (not in the TMF API) - extended through @type - artifactChecksum |
string |
artifactGroupType |
Additional attribute (not in the TMF API) - extended through @type - artifactGroupType |
string |
artifactLabel |
Additional attribute (not in the TMF API) - extended through @type - artifactLabel |
string |
artifactTimeout |
Additional attribute (not in the TMF API) - extended through @type - artifactTimeout |
string |
artifactVersion |
Additional attribute (not in the TMF API) - extended through @type - artifactVersion |
string |
description |
Description of the attachment - filled with artifactDescription |
string |
generatedFromUUID |
Additional attribute (not in the TMF API) - extended through @type - generatedFromUUID |
string |
id |
Unique identifier of the attachment - filled with artifactUUID. |
string |
mimeType |
Filled with artifactType |
string |
name |
Name of the attachment - filled with artifactName |
string |
url |
Uniform Resource Locator, is a web page address - filled with artifactURL |
string |
DistributionStatus
Service distribution status from ONAP.
Type : enum (DISTRIBUTION_NOT_APPROVED, DISTRIBUTION_APPROVED, DISTRIBUTED, DISTRIBUTION_REJECTED)
ErrorRepresentation
This class is used to describe error. for nbi Beijing release we do not manage additional error for serviceCatalog
Name | Description | Schema |
---|---|---|
@schemaLocation |
it provides a link to the schema describing a REST resource. |
string |
@type |
The class type of a REST resource. |
string |
code |
Application related code (as defined in the API or from a common list) |
integer (int32) |
message |
Text that provide more details and corrective actions related to the error. This can be shown to a client user |
string |
reason |
Text that explains the reason for error. This can be shown to a client user. |
string |
referenceErrror |
url pointing to documentation describing the error |
string |
status |
http error code extension like 400-2 |
string |
LifecycleStatusValues
Service lifecycle value from ONAP SDC
Type : enum (NOT_CERTIFIED_CHECKOUT, NOT_CERTIFIED_CHECKIN, READY_FOR_CERTIFICATION, CERTIFICATION_IN_PROGRESS, CERTIFIED)
RelatedPartyRef
Party linked to the service catalog. in nbi we retrieve information about last updater of the service in SDC
Name | Description | Schema |
---|---|---|
id |
Unique identifier of the related party. Filled with lastUpdaterUserId |
string |
name |
Name of the related party - Filled with lastUpdatedFullName |
string |
role |
Role payed by the related party Only role 'lastUpdater' is retrieved in Beijing release |
string |
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 |
This attribute allows to dynamically extends TMF class. Valued with: 'ONAPresource'. We used this features to add following attributes:
resourceInstanceName
resourceInvariantUUID
resourceType
modelCustomizationName
modelCustomizationId |
string |
id |
Unique identifier of the resource specification - filled with resourceUUID |
string |
modelCustomizationId |
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 |
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 |
Name of the resource specification - filled with resourceName |
string |
resourceInstanceName |
Additional attribute (not in the TMF API) - extended through @type - resourceInstanceName |
string |
resourceInvariantUUID |
Additional attribute (not in the TMF API) - extended through @type - resourceInvariantUUID |
string |
resourceType |
Additional attribute (not in the TMF API) - extended through @type - resoucreType |
string |
version |
Version for this resource specification - filled with resourceVersion |
string |
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 |
An url pointing to type description - we do not use it in nbi Beijing release |
string |
@type |
This attribute allows to dynamically extends TMF class. Valued with: 'ONAPserviceCharacteristic'. We do not used this features in nbi Beijing release. |
string |
description |
A narrative that explains in detail what the characteristic is - Filled with parameter_description |
string |
name |
Name of the characteristic - Filled with parameter_name |
string |
required |
A parameter to define if the characteristic is mandatory - Filled from parameter_required – if not fielded by default ‘true’ |
boolean |
serviceSpecCharacteristicValue |
< ServiceSpecCharacteristicValue > array |
|
status |
Status of the characteristic - filled with status_value |
string |
valueType |
A kind of value that the characteristic can take on, such as numeric, text and so forth - Filled with parameter_type |
string |
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 |
Information calculated from parameter default in the Tosca file |
boolean |
value |
A discrete value that the characteristic can take on |
string |
valueType |
A kind of value that the characteristic can take on, such as numeric, text, and so forth Retrieved in the Tosca in the topology_template section in the inputs section - parameter_type. We do not manage parameter_type= list or map for Beijing release |
string |
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 |
Not used for Beijing release |
string |
@schemaLocation |
Not used for Beijing release |
string |
@type |
This attribute allows to dynamically extends TMF class. Valued with 'ONAPservice'. We used this features to add following attributes:
invariantUUID
toscaModelURL
toscaResourceName
category (1)
subcategory (1)
distributionStatus |
string |
attachment |
< Attachment > array |
|
category |
Additional attribute - extended through @type - category Please note that this attribute is managed in TMF - in future release we’ll introduce category resource |
string |
description |
A narrative that explains in detail what the service specification is - Filled with SDC Service description |
string |
distributionStatus |
||
href |
Reference of the service specification- not mapped in Beijing |
string |
id |
Unique identifier of the service specification. Filled with SDC Service uuid |
string |
invariantUUID |
Additional attribute (not in the TMF API) - extended through @type - invariantUUID |
string |
lifecycleStatus |
||
name |
Name of the service specification- Filled with SDC Service name |
string |
relatedParty |
< RelatedPartyRef > array |
|
resourceSpecification |
< ResourceSpecificationRef > array |
|
serviceSpecCharacteristic |
< ServiceSpecCharacteristic > array |
|
subcategory |
Additional attribute - extended through @type - category Please note that this attribute is managed in TMF - in future release we’ll introduce category resourc |
string |
targetServiceSchema |
||
toscaModelURL |
Additional attribute (not in the TMF API) - extended through @type - toscaModelURL |
string |
toscaResourceName |
Additional attribute (not in the TMF API) - extended through @type - toscaResourceName |
string |
version |
Service specification version - Filled with SDC Service version |
string |
TargetServiceSchemaRef
Name | Schema |
---|---|
@schemaLocation |
string |
@type |
string |
TimePeriod
A time period
Name | Description | Schema |
---|---|---|
endDateTime |
End date and time of the period |
string (date-time) |
startDateTime |
Start date and time of the period |
string (date-time) |