Overview
serviceInventory API designed for ONAP Beijing Release. This API is build from TMF open API18.0 (applying TMF Guideline 3.0) 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
-
Service
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Resources
Service
List services
GET /service
Description
This operation list service entities. Attribute selection is restricted. fields attribute may be used to filter retrieved attribute(s) for each service
Specific business errors for current operation will be encapsulated in
HTTP Response 422 Unprocessable entity
Parameters
Type | Name | Schema |
---|---|---|
Query |
fields |
string |
Query |
id |
string |
Query |
relatedParty.id |
string |
Query |
serviceSpecification.id |
string |
Query |
serviceSpecification.name |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Success |
< ListService > 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
GET /service/{id}
Description
This operation retrieves a service entity. Attribute selection is enabled for all first level attributes.
Specific business errors for current operation will be encapsulated in
HTTP Response 422 Unprocessable entity
Parameters
Type | Name | Schema |
---|---|---|
Path |
id |
string |
Query |
relatedParty.id |
string |
Query |
serviceSpecification.id |
string |
Query |
serviceSpecification.name |
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
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 |
referenceError |
url pointing to documentation describing the error |
string |
status |
http error code extension like 400-2 |
string |
ListRelatedPartyRef
This class is used to structure list of service(s) retrieved
Name | Description | Schema |
---|---|---|
id |
Unique identifier of a related party |
string |
role |
Role played by the related party - only role “ONAPcustomer” is managed in Beijing release. |
string |
ListService
This class is used to structure list of service(s) retrieved
Name | Description | Schema |
---|---|---|
id |
Unique identifier of the service |
string |
name |
Name of the service |
string |
relatedParty |
||
serviceSpecification |
ListServiceSpecificationRef
This class is used to structure list of service(s) retrieved
Name | Description | Schema |
---|---|---|
id |
Unique identifier of the service specification |
string |
name |
Name of the required service specification |
string |
RelatedPartyRef
RelatedParty reference. A related party defines party or party role linked to a specific entity. Only ONAP Customer is managed in Beijing release.
Name | Description | Schema |
---|---|---|
@referredType |
Not managed in the Beijing release. |
string |
href |
Reference of a related party. Not filled in Beijing release. |
string |
id |
Unique identifier of a related party |
string |
role |
Role played by the related party. Filled with 'ONAPcustomer' |
string |
Service
Instantiated service (service_instance) in AAI
Name | Description | Schema |
---|---|---|
@baseType |
Not managed in Beijing release |
string |
@schemaLocation |
Not managed in Beijing release |
string |
@type |
This attribute allows to dynamically extends TMF class. Not used in Beijing release. |
string |
characteristic |
< ServiceCharacteristic > array |
|
hasStarted |
This is a Boolean attribute that, if TRUE, signifies that this Service has already been started. If the value of this attribute is FALSE, then this signifies that this Service has NOT been Started Not managed in Beijing release |
boolean |
href |
Reference of the service Not managed in Beijing release |
string |
id |
Unique identifier of the service - Valued with service-instance-id |
string |
name |
Name of the service - Valued with service-instance-name |
string |
relatedParty |
< RelatedPartyRef > array |
|
serviceSpecification |
||
state |
||
supportingResource |
< SupportingResource > array |
|
type |
Service type - valued with 'service-instance' |
string |
ServiceCharacteristic
A list of name value pairs that define the service characteristics Not managed in Beijing release.
Name | Description | Schema |
---|---|---|
name |
Name of the characteristic Not managed in Beijing release. |
string |
value |
||
valueType |
Type of value for this characteristic. Not managed in Beijing release. |
string |
ServiceSpecificationRef
Service specification reference: ServiceSpecification of this service (catalog information)
Name | Description | Schema |
---|---|---|
@referredType |
This attribute allows to dynamically extends TMF class. Valued with 'ONAPservice'. We used this features to add following attribute: invariantUUID |
string |
@schemaLocation |
Not managed in Beijing release |
string |
href |
Reference of the service specification. not managed in Beijing release. |
string |
id |
Unique identifier of the service specification. valued to model-version-id |
string |
invariantUUID |
Additional attribute (not in the TMF API) - extended through @referredType - model-invariant-id |
string |
name |
Name of the required service specification |
string |
version |
Service specification version. Not managed in Beijing release |
string |
SupportingResource
Supporting resource - A supportingResource will be retrieved for each relationship of the relationship-list where related-link describe a vnf
Name | Description | Schema |
---|---|---|
@referredType |
This attribute allows to dynamically extends TMF class. Valued with 'ONAP resource'. We used this features to add following attributes: status modelInvariantId modelVersionId modelCustomisationId |
string |
@schemaLocation |
Not managed in Beijing release. |
string |
href |
Reference of the supporting resource |
string |
id |
Unique identifier of the supporting resource - Valued to vnf-id |
string |
modelCustomisationId |
Additional attribute (not in the TMF API) - extended through @referredType - valued with model-customisation-id |
string |
modelInvariantId |
Additional attribute (not in the TMF API) - extended through @referredType - valued with model-invariant-id |
string |
modelVersionId |
Additional attribute (not in the TMF API) - extended through @referredType - valued with model-verson-id |
string |
name |
Name of the supporting resource - Valued with vnf_-name |
string |
role |
Not managed in Beijing release. |
string |
status |
Additional attribute (not in the TMF API) - extended through @referredType - valued with prov-status |
string |
Value
Structure used to describe characteristic value. Not managed in Beijing release.
Name | Description | Schema |
---|---|---|
@schemaLocation |
Not managed in Beijing release. |
string |
@type |
Not managed in Beijing release. |
string |
serviceCharacteristicValue |
Not managed in Beijing release. |
string |
stateValues
Type : enum (feasibilityChecked, designed, reserved, inactive, active, terminated)