...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
As part of this release EALTEdge Blueprint are releasing few API's which can be used by other Akraino Blueprints or Non Akraino Blueprints / Projects. The API are in compliance with the API Standards defined in Multi-access Edge Computing (MEC); MEC Management; Part 2: Application lifecycle, rules and requirements managementETSI GS MEC 010-2 V2.1.1 (https://www.etsi.org/deliver/etsi_gs/MEC/001_099/01002/02.01.01_60/gs_MEC01002v020101p.pdf) .
In this release EALTEdge are exposing API's related to :-
- Application Package Management
- Application Life Cycle Management
- MEC Service Management.
API Definitions
Application Package Management
Onboard Application
...
Get Package Info
...
Delete Application Package
...
204. No Response body will be returned.
Application Life Cycle Management
Create Application Instance
...
appDId
...
appInstanceDescriptor
...
Get Application Instance Information
...
Introduction
As part of this release EALTEdge Blueprint are releasing few API's which can be used by other Akraino Blueprints or Non Akraino Blueprints / Projects. The API's given are for the MM3 and MP1 Interface.
These APIs are in compliance with the API Standards defined by ETSI in Multi-access Edge Computing (MEC); MEC Management; Part 2: Application lifecycle, rules and requirements management. (https://www.etsi.org/deliver/etsi_gs/MEC/001_099/01002/02.01.01_60/gs_MEC01002v020101p.pdf) and Multi-access Edge Computing (MEC); Edge Platform Application Enablement (https://www.etsi.org/deliver/etsi_gs/MEC/001_099/011/02.01.01_60/gs_MEC011v020101p.pdf)
In this release EALTEdge are exposing API's related to :-
- Application Life Cycle Management
- MEC Service Management.
API Definitions
Application Life Cycle Management
Create Application Instance
1. | API Name | Create Application Instance | Type : POST | Interface : MM3 |
---|
Description | The POST method is used to create an application instance resource, which refers to the procedure of "creating application instance resource operation"
|
Resource URI | /ealtedge/mepm/app_lcm/v1/app_instances |
/{appInstanceId} - None |
Parameter Name | Cardinality | Type | Description |
appDId | 1 | String | Application Description ID |
appInstancename | 1 | String | Application Instance Name |
appInstanceDescriptor | 1 | String | Application Instance Descriptor |
Response Codes | 201 |
---|
Response Parameters |
Parameter Name | Cardinality | Type | Description |
/ Example...
Get Application Instance
3: Delete / Category | Application Instance Info | Type : |
---|
DELETEGET | Interface : MM3 |
---|
Description | The |
DELETE method deletes GET method retrieves the information of an individual application instance via reading an individual application instance resource, which |
refers to is used by the procedure of " |
delete application query application instance |
identifier information operation"
|
Resource URI | /ealtedge/mepm/app_lcm/v1/app_instances/{appInstanceId} |
Request Body Parameters - None |
| Response Codes |
---|
204 - No Content Instantiate Application
4 |
Parameter Name | Cardinality | Type | Description / Example |
AppInstanceInfo | 1 | Complex | Application Instance Info |
Delete Application Instance
Instantiate Delete Application Instance | Type : |
---|
POST MM3OSS→ MEO, MEO->MEPMTo instantiate the application instanceThe DELETE method deletes an individual application instance resource, which refers to the procedure of "delete application instance identifier operation" |
Resource URI | /ealtedge/mepm/app_lcm/v1/app_instances/{appInstanceId} |
/instantiate Request Body Parameters |
Attribute Name | Cardinality | Type | Description |
R3 - API Documentation Enterprise Application on Lightweight 5G Telco Edge (EALTEdge) [WIP] | 1 | Complex | Request parameters of the "Instantiate Application" operation |
Response Codes | 202 - Accepted. The request was accepted for processing, but the processing has not yet been completed | Response Parameters - Response Body is Empty |
Terminate Application
5 |
Request Body Parameters - None |
| Response Codes | 204 |
---|
Response Parameters - No Content |
Instantiate Application
Terminate Instantiate Application | Type : POST | Interface : MM3 |
---|
(OSS→ MEO, MEO->MEPM)Description | To instantiate the application instance |
---|
Description | This resource represents the task of instantiating an application instance. The client can use this resource to instantiate an application instance. |
Resource URI | /ealtedge/mepm/app_lcm/v1/app_instances |
/{appInstanceId}/terminateRequest Body Parameters |
Name | Cardinality | Type | Description |
R3 - API Documentation Enterprise Application on Lightweight 5G Telco Edge (EALTEdge) [WIP] | 1 | Complex | Response Codes | 202 - Accepted. The request was accepted for processing, but the processing has not yet been completed | Response Parameters - Response Body is Empty |
MEC Service Management
Get Service List
...
Get Service
2. | API Name | Type : GET | Interface : MM1 | Description | Get Service Information of a specific service. Service Id is passed in the request URI |
Resource URI | /{appInstanceId}/instantiate |
Request Body Parameters |
Attribute Name | Cardinality | Type | Description |
#InstantiateAppRequest | 1 | Complex | Request parameters of the "Instantiate Application" operation |
| Response Codes | 202 - Accepted. The request was accepted for processing, but the processing has not yet been completed |
---|
Response Parameters - Response Body is Empty |
Terminate Application
5. | API Name: Terminate Application | Type : POST | Interface : MM3 |
---|
Description | This resource represents the task of terminating an application instance. The client can use this resource to terminate an application instance |
Resource URI | /ealtedge/mepm/app_lcm/v1/app_instances/{appInstanceId}/terminate |
Request Body Parameters |
Name | Cardinality | Type | Description |
#TerminateAppRequest | 1 | Complex |
|
| Response Codes | 202 - Accepted. The request was accepted for processing, but the processing has not yet been completed |
---|
Response Parameters - Response Body is Empty |
MEC Service Management
Get Service List
1. | API Name | Get Service List | Type : GET | Interface : MP1 |
---|
Description | To get the List of all the Services Registered in MEP services |
| /ealtedge/mep/mec_service_mgmt/v1/services/serviceId |
Request Body Parameters - No Parameters |
Response Codes | 201 |
---|
Response Parameters |
Parameter Name | Cardinality | Type | Description |
|
|
|
|
Get Service
...
3 Registration POST MM1This method is used to create a mecService resource that is associated with the application instance. This method is typically used in "service availability update and new service registration" procedureGet Service Information of a specific service. Service Id is passed in the request URI |
Resource URI | /ealtedge/mep/mec_service_mgmt/v1/ |
applications/{appInstanceId}/servicesservices/serviceId |
Request Body |
ParametersParameter Name | Cardinality | Type | Description |
ServiceInfo | 1 | Complex | Parameters - No Parameters |
Response Codes | 201 |
---|
: Created |
---|
Response Parameters |
Parameter Name | Cardinality | Type | Description |
ServiceInfo | 1 | Complex | Upon success, the HTTP response shall include a "Location" HTTP header that contains the resource URI of the created resource. |
4 Service Registration
3. | API Name | Service Registration | Type : |
---|
GET MM1MP1 |
---|
Description | This method |
retrieves information about a list of mecService resources is used to create a mecService resource that is associated with |
an the application instance. This method is typically used in "service availability |
queryupdate and new service registration" procedure |
Resource URI | /ealtedge/mec_service_mgmt/v1/applications/{appInstanceId}/services |
Request Body |
Parameters – NoneParameters |
Parameter Name | Cardinality | Type | Description |
ServiceInfo | 1 | Complex |
|
Response Codes | 201 : Created |
---|
Response Parameters |
Parameter Name | Cardinality | Type | Description |
ServiceInfo |
0..N a response body containing an array of the mecServices is returned.Service Management Subscription
5the HTTP response shall include a "Location" HTTP header that contains the resource URI of the created resource. |
Management SubscriptionAvailability Information | Type : GET | Interface : |
---|
MM1The GET method may be used to request information about all subscriptions for this requestor. Upon success, the response contains payload body with all the subscriptions for the requestorThis method retrieves information about a list of MEC Service resources that is associated with an application instance. This method is typically used in "service availability query" procedure |
Resource URI | /ealtedge/mec_service_mgmt/v1/applications/{appInstanceId}/ |
subscriptions Parameters - Parameters – None |
Response Codes |
---|
200 OKCreated |
---|
Response Parameters |
Parameter Name | Cardinality | Type | Description |
SubscriptionLinkList | 1ServiceInfo | 0..N | Complex | Upon success, a response body containing |
the list links to requested subscriptions Service Management Subscription
6New service Fetch all Subscription Information | Type : |
---|
POST MM1 POST to create a new subscription. One example use case is to create a new subscription to the MEC service availability notificationsto request information about all subscriptions for this requester. Upon success, the response contains payload body |
describing the created subscription. This method is typically used in "Subscribing to service availability event notifications" procedurewith all the subscriptions for the requester |
Resource URI | /ealtedge/mec_service_mgmt/v1 |
/applications/{appInstanceId}/subscriptionsRequest Body Parameters |
Parameter Name | Cardinality | Type | Description |
SerAvailabilityNotificatio nSubscription | 1 | Complex | Payload body in the request contains a subscription to the MEC service availability notifications that is to be created./applications/{appInstanceId}/subscriptions |
Request Body Parameters - None |
Response Codes |
---|
201 CreatedOK |
---|
Response Parameters |
Parameter Name | Cardinality | Type | Description |
SerAvailabilityNotificatio nSubscriptionSubscriptionLinkList | 1 | Complex | Upon success, |
the HTTP response shall include a "Location" HTTP header that contains the resource URI of the created subscription resource. Individual Service Management Subscription
7a response body containing the list of links to the requested subscriptions is returned. |
Service Subscription
Get Service Information
9. | API Name | Get Service 6. | API Nameindividual | mecSrvMgmtSubscriptionNew service Subscription | Type : GETPOST | Interface : MM1MP1 |
---|
Description | The GET method requests information about a subscription for this requestorPOST method may be used to create a new subscription. One example use case is to create a new subscription to the MEC service availability notifications. Upon success, the response contains payload body with describing the subscription for the requestorcreated subscription. This method is typically used in "Subscribing to service availability event notifications" procedure |
Resource URI | /ealtedge/mec_service_mgmt/v1/applications/{appInstanceId}/subscriptions/{subscriptionId} |
Request Body Parameters - None | Response Codes | 201 |
---|
Response Parameters |
Parameter Name | Cardinality | Type | Description |
SerAvailabilityNotification SubscriptionSerAvailabilityNotificatio nSubscription | 1 | Complex | Upon success, a response body containing the requested subscription is returned. |
Individual Service Management Deletion
...
Payload body in the request contains a subscription to the MEC service availability notifications that is to be created. |
Response Codes | 201 : Created |
---|
Response Parameters |
Parameter Name | Cardinality | Type | Description |
SerAvailabilityNotificatio nSubscription | 1 | Complex | Upon success, the HTTP response shall include a "Location" HTTP header that contains the resource URI of the created subscription resource. |
Individual Service Management Subscription
7. | API Name | Single Subscription Information | Type : GET | Interface : |
---|
MM1This retrieves requests information about a |
mecService resource that is associated with an application instance. This method is typically used in "service availability query"subscription for this Requestor. Upon success, the response contains payload body with the subscription for the Requestor |
Resource URI | /ealtedge/mec_service_mgmt/v1/applications/{appInstanceId}/ |
servicesserviceIdsubscriptionId} |
Request Body Parameters - None |
Response Codes |
---|
200: OK201 |
---|
Response Parameters |
Parameter Name | Cardinality | Type | Description |
ServiceInfo10SerAvailabilityNotification Subscription | 1 | Complex |
It is used to indicate nonspecific success. The response body contains a representation of the resource. | Update Service Information
Upon success, a response body containing the requested subscription is returned. |
Individual Service Management Deletion
Update Service InformationDelete Individual Subscription | Type : |
---|
GET MM1This method updates the information about a mecService resource that is associated with the application instance | This method is typically used in "Unsubscribing from event notifications" procedure |
Resource URI | /ealtedge/mec_service_mgmt/v1/applications/{appInstanceId}/ |
services/{serviceId}Request Body Parameters - None |
Parameter Name | Cardinality | Type | Description |
ServiceInfo | 1 | Complex | It is used to indicate nonspecific success. The response body contains a representation of the resource. |
Response subscriptions/{subscriptionId} |
Request Body Parameters - None |
Response Codes |
---|
200 OKParameter Name | Cardinality | Type | Description |
ServiceInfo | 1 | Complex | Upon success, a response body containing data type describing the updated ServiceInfo is returned. |
Service Deregistration Information
11No content |
---|
Response Parameters - None |
Get Service Information
Deregistration DELETE MM1MP1 |
---|
Description | This method |
deletes retrieves information about a mecService |
resourceresource that is associated with an application instance. This method is typically used in |
the service deregistration procedure"service availability query" |
Resource URI | /ealtedge/mec_service_mgmt/v1/applications/{appInstanceId}/services/{serviceId} |
Request Body Parameters - None |
Response Codes |
---|
204 No ContentOK |
---|
Response Parameters |
Parameter |
NameCardinality | Type | Description | Types
...
AppPkgInfo Parameters
...
Application Provider.
Ex : Huawei
...
CreateAppPkg Parameters |
Attribute Name | Cardinality | Data Type | Description |
appPkgName | 1 | String | Application Package Name to be onboarded |
appPkgVersion | 1 | String | Application Package Version to be onboarded |
appProvider | 0..1 | String | The provider's name of the application package to be onboarded. |
checksum | checksum | checksum | Checksum of the onboarded application package |
userDefinedData | 0..1 | KeyValuePair | User defined data for the application package. |
appPkgPath | 1 | String | Address information of the application package Currently not in useName | Cardinality | Type | Description |
ServiceInfo | 1 | Complex | It is used to indicate nonspecific success. The response body contains a representation of the resource. |
Update Service Information
10. | API Name | Update Service Information | Type : GET | Interface : MP1 |
---|
Description | This method updates the information about a mecService resource that is associated with the application instance |
Resource URI | /ealtedge/mec_service_mgmt/v1/applications/{appInstanceId}/services/{serviceId} |
Request Body Parameters - None |
Parameter Name | Cardinality | Type | Description |
ServiceInfo | 1 | Complex | It is used to indicate nonspecific success. The response body contains a representation of the resource. |
Response Body Parameters - None |
Response Codes | 200: OK |
Parameter Name | Cardinality | Type | Description |
ServiceInfo | 1 | Complex | Upon success, a response body containing data type describing the updated ServiceInfo is returned. |
Service Deregistration Information
11. | API Name | Service Deregistration | Type : DELETE | Interface : MP1 |
---|
Description | This method deletes a MEC Service resource. This method is typically used in the service deregistration procedure |
Resource URI | /ealtedge/mec_service_mgmt/v1/applications/{appInstanceId}/services/{serviceId} |
Request Body Parameters - None |
Response Codes | 204 : No Content |
---|
Response Parameters |
Parameter Name | Cardinality | Type | Description |
|
|
|
|
Types
ApplnstanceInfo
Anchor |
---|
| ApplnstanceInfo |
---|
| ApplnstanceInfo |
---|
|
ApplnstanceInfo Parameters |
Attribute Name | Cardinality | Data Type | Description |
ID | 1 | String | Application Instance Description Ex : ID1 |
AppInstanceName | 0..1 | String | Application Descriptor ID |
AppInstanceDescription | 0..1 | String | Application Provider Ex: Huawei |
AppDID | 1 | String | Application Name Ex : Face_Recognition. |
AppProvider | 1 | String |
|
AppName | 1 | String | Deploy Type ; Ex : Helm |
AppSoftVersion | 1 | String | Application Package ID Ex: b1bb0ce7-ebca-4fa7-95ed-4840d70a1177 |
AppDVersion | 1 | String | Instantiation State. Ex : NOT_INSTANTIATED |
InstantiateAppRequest
Anchor |
---|
| InstantiateAppRequest |
---|
| InstantiateAppRequest |
---|
|
InstantiateAppRequest Parameters |
Attribute Name | Cardinality | Data Type | Description |
selectedMECHostInfo | 1..N | MECHostInformation | Describes the information of selected host for the application instance |
TerminateAppRequest Anchor |
---|
| TerminateAppRequest |
---|
| TerminateAppRequest |
---|
|
TerminateAppRequest Parameters |
Attribute Name | Cardinality | Data Type | Description |
terminationType | 1 | Enum | Indicates whether forceful or graceful termination is requested. See note. • FORCEFUL: it will shut down the application instance and release the resources immediately after accepting the request. See note. • GRACEFUL: it will first arrange to take the application instance out of service after accepting the request. Once the operation of taking the application instance out of service finishes or once the timer value specified in the "gracefulTerminationTimeout" attribute expires, it will shut down the application instance and release the resources. |
gracefulTerminationTimeout | 0..1 | Integer | This attribute is only applicable in case of graceful termination. It defines the time to wait for the application instance to be taken out of service before shutting down the application and releasing the resources. The unit is seconds. If not given and the "terminationType" attribute is set to "GRACEFUL", it is expected to wait for the successful taking out of service of the application, no matter how long it takes, before shutting down the application and releasing the resources. |
ServiceInfo
ServiceInfo Parameters |
Attribute Name | Cardinality | Data Type | Description |
serInstanceId | 0..1 | SerInstanceId | Identifier of the service instance assigned by the MEPM/MEC platform. For the uniqueness of the identifier across the MEC system, UUID format [i.7] is recommended. Shall be absent in POST requests, and present otherwise. |
serName | 1 | serName | The name of the service. This is how the service producing MEC application identifies the service instance it produces. |
serCategory | 0..1 | CategoryRef | A Category reference. (The category resource is used to group product offerings, service and resource candidates in logical containers. Categories may contain other categories and/or product offerings, resource or service candidates.) (see note 1) For the serCategory, the example values include: 1. "RNI" 2. "Location" 3. "Bandwidth Management". |
version | 1 | String | Version of the Service |
state | 1 | ServiceState | Contains the service state. |
transportId | 0..1 | String | Identifier of the platform-provided transport to be used by the service. Valid identifiers may be obtained using the "Transport information query" procedure. May be present in POST requests to signal the use of a platform-provided transport for the service, and shall be absent otherwise. |
transportInfo | 0..1 | TransportInfo | Information regarding the transport used by the service. May be present in POST requests to signal the use of an application-provided transport for the service, and shall be present otherwise. |
serializer | 1 | Serializer Type | Indicate the supported serialization format of the service |
scopeOfLocality | 0..1 | LocalityType | The scope of locality as expressed by "consumedLocalOnly" and "isLocal". If absent, defaults to MEC_HOST |
consumedLocalOnly | 0..1 | Boolean | Indicate whether the service can only be consumed by the MEC applications located in the same locality (as defined by scopeOfLocality) as this service instance (TRUE) or not (FALSE). Default to TRUE if absent. |
isLocal | 0..1 | Boolean | Indicate whether the service is located in the same locality (as defined by scopeOfLocality) as the consuming MEC application (TRUE) or not (FALSE). Default to TRUE if absent. |
TransportInfo Anchor |
---|
| TransportInfo |
---|
| TransportInfo |
---|
|
TransportInfo Parameters |
Attribute Name | Cardinality | Data Type | Description |
id | 1 | string | The identifier of this transport. |
name | 1 | string | The name of this transport. . |
description | 0..1 | string | Human-readable description of this transport. |
type | 1 |
R3 - API Documentation Enterprise Application on Lightweight 5G Telco Edge (EALTEdge) [WIP]#TransportType | Type of the transport |
protocol | 1 | string | The name of the protocol used. Shall be set to "HTTP" for a REST API |
version | 1 | String | The version of the protocol used. |
endpoint | 1 | EndPointInfo | Information about the endpoint to access the transport. |
security | 1 | SecurityInfo | Indicate the supported serialization format of the service |
implSpecificInfo | 0..1 | Not Specified | Additional implementation specific details of the transport. |
Enumeration
TransportType Anchor |
---|
| TransportType |
---|
| TransportType |
---|
|
TransportType Parameters |
Enumeration Value | Description |
REST_HTTP | RESTful API using HTTP (as defined in IETF RFC 7230 [11] and related specifications). |
MB_TOPIC_BASED | Topic-based message bus which routes messages to receivers based on subscriptions, if a pattern passed on subscription matches the topic of the message. EXAMPLE: MQTT (see [i.4]) |
MB_ROUTING | Routing-based message bus which routes messages to receivers based on subscriptions, if a key passed on subscription is equal to the key of the message. |
MB_PUBSUB | Publish-subscribe based message bus which distributes messages to all subscribers. |
RPC | Remote procedure call. EXAMPLE: GRPC |
RPC_STREAMING | Remote procedure call supporting streams of requests and responses. EXAMPLE: GRPC |
WEBSOCKET | Websockets as defined in IETF RFC 6455 [12]. |