CLI commands vs REST API
- 1 Introduction
- 2 Service Management
- 2.1 Discovery
- 2.2 Health Check
- 3 External Resource Management
- 3.1 VIM management
- 3.2 VNFM management
- 3.3 EMS management
- 4 Service Orchestration
- 4.1 Service Life-cycle management
- 4.2 Closed loop Management
- 4.2.1 Policy management
- 4.2.2 Alarm management
- 4.2.3 Analytics management
- 4.3 Limitation
- 5 Customer Management
- 6 VSP Distribution
- 7 Command management
- 8 User Authentication support
Introduction
It provides the details of the REST API used for each of the command supported.
Service Management
Helps to check the list of ONAP service deployed on a given setup and retrieve the health status.
Discovery
Feature | command | REST API | Depends-on Project | |
---|---|---|---|---|
1 | Report registered services | microservice-list microservice-show | GET on /api/microservices/v1/services GET on /api/microservices/v1/services/{serviceName}/version/{version}/ | |
2 | Register a service | microservice-register | POST on /api/microservices/v1/services | |
3 | Unregister a service | microservice-unregister | DELETE on /api/microservices/v1/services/{serviceName}/version/{version}/ |
Health Check
External Resource Management
Helps to on-board the external system such as VIM, VNFM, EMS and SDNC and retrieve the current state of these resources.
VIM management
Feature | Command | REST API | Depends-on Project | |
---|---|---|---|---|
1 | Register cloud | cloud-register | PUT on /api/aai-cloudInfrastructure/v1/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id} | |
2 | Un-register cloud | cloud-unregister | DELETE on /onapapi/aai/esr/v1/vims?cloudOwner=xxx&cloudRegionId=xxx | |
3 | Report registered clouds | cloud-list cloud-show | GET on /api/aai-cloudInfrastructure/v1/cloud-regions GET on /api/aai-cloudInfrastructure/v1/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id} |
VNFM management
Feature | command | REST API | Depends-on Project | |
---|---|---|---|---|
1 | Register VNFM | vnfm-register | PUT on /api/aai-vnfm/v1/vnfms/vnfm/{vnfmId} | |
2 | Un-register VNFM | vnfm-unregister | DELETE on /api/aai-vnfm/v1/vnfms/vnfm/{vnfmId} | |
3 | Report registered VNFMs | vnfm-list vnfm-show | GET on /api/aai-vnfm/v1/vnfms GET on /api/aai-vnfm/v1/vnfms/vnfm/{vnfmId} |
EMS management
Feature | Command | REST API | Depends-on Project | |
---|---|---|---|---|
1 | Register EMS | ems-register | POST on /api/aai-ems/v1/emses/ems | |
2 | Un-register EMS | ems-unregister | DELETE on /api/aai-ems/v1/emses/ems/{emsId} | |
3 | Report registered EMSs | ems-list ems-show | GET on /api/aai-ems/v1/emses/ems GET on /api/aai-ems/v1/emses/ems/{emsId} |
Service Orchestration
Helps to deploy, instantiate and destroy a given services such as VoLTE and vCPE services
Service Life-cycle management
Deploy → Launch → Delete → Undeploy
Feature | Command | REST API | Depends-on Project | |
---|---|---|---|---|
1 | Create/show Service Type | service-type-register service-type-list | PUT on /service-design-and-creation/services/service/{service-id} GET on /service-design-and-creation/services | |
2 | Create service Insance | service-create-instance | PUT on /serviceInstances/v2 | |
3 | Create VNF | service-create-vnf | POST on /serviceInstances/v2/{serviceInstanceId}/vnfs | |
4 | Create VF module | service-create-module | /serviceInstances/v2/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules | |
5 | Report deployed services | service-list | NOT available | |
6 | Delete VF module | service-delete-module | DELTE on /serviceInstances/v2/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules/{vfmoduleinstance-id} | |
7 | Delete VNF | service-delete-vnf | DELETE on /serviceInstances/v2/{serviceInstanceId}/vnfs/{vnfInstanceId} | |
5 | Delete service instance | service-delete-instance | DELETE /serviceInstnaces/v2/{serviceInstanceId} | |
7 | Remove service type | service-type-unregister | DELETE on /service-design-and-creation/services/service/{service-id} |
Closed loop Management
Helps to report the policy, alarm and analytics aspect of an given service in ONAP for auto-scaling and healing of them.
Policy management
Feature | Command | REST API | Depends-on Project | |
---|---|---|---|---|
1 | Report policies | policy-list policy-show | Streach goal | Policy |
Alarm management
Feature | Command | REST API | Depends-on Project | |
---|---|---|---|---|
1 | Report Alarms | alarm-list alarm-show | NOT supported for Amesterdam release | DCAE |
Analytics management
Feature | Command | REST API | Depends-on Project | |
---|---|---|---|---|
1 | Report metrics | metrics-list | NOT supported for Amesterdam release | DCAE |
Limitation
It does not support designing of the services as it involves studio. so its expected that design time artifact should be readily available for using the feature like service management.
Customer Management
Helps to manage the subscriber, who like to use the services provided by ONAP.
Customer management
Feature | Command | REST API | Depends-on Project | |
---|---|---|---|---|
1 | Add customer | customer-add | PUT on /business/customers/customer/{global-customer-id} | |
2 | Delete Customer | customer-delete | DELETE on /business/customers/customer/{global-customer-id} | |
3 | Reports registered customer | customer-list customer-show | GET on /business/customers GET on /business/customers/customer/{global-customer-id} |
Subscription management
Feature | Command | REST API | Depends-on Project | |
---|---|---|---|---|
1 | Create Subscription | subscription-create | PUT on /business/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type} | |
2 | Delete Subscription | subscription-delete | DELETE on /business/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type} |
VSP Distribution
Feature | Command | REST API | Depends-on Project | |
---|---|---|---|---|
1 | Manage Catalog service | vsp-list vsp-create vsp-upload vsp-checkin vsp-submit vsp-show | GET on /vendor-software-products POST on /vendor-software-products POST on /vendor-software-products/{VSP-ID}/upload PUT on /vendor-software-products/{VSP-ID}/actions PUT on /vendor-software-products/<VSP-ID>/actions GET on /vendor-software-products/{VSP-ID} | |
2 | Manage service certification | catalog-service-verify catalog-service-unverify | Streach goal | |
3 | Manage service distribution | catalog-service-distribute catalog-service-undistribute | Streach goal |
Command management
Helps to discover/validate the installed ONAP Commands/schema
Feature | Command | Depends-on Project | |
---|---|---|---|
1 | Open CLI schema validation | schema-validate | CLI |
2 | CLI Helper | onap -h | CLI |
3 | Dynamic Command discovery | schema-refresh | CLI |
User Authentication support
Helps to login/logout user.
Feature | Command | REST API | Depends-on Project | |
---|---|---|---|---|
1 | Login | service→auth: aaf | NOT supported for Amesterdam release | AAF |
2 | Logout | service→auth: aaf | NOT supported for Amesterdam release | AAF |