CLI commands vs REST API

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

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}/

MSB

2

Register a service

microservice-register

POST on /api/microservices/v1/services

MSB

3

Unregister a service

microservice-unregister

DELETE on /api/microservices/v1/services/{serviceName}/version/{version}/

MSB

Health Check

Feature

command

REST API

Depends-on Project

Feature

command

REST API

Depends-on Project

1

Report health of registered services

microservice-status

NOT supported for Amesterdam release

MSB

2

Enable/Disable a registered services

microservice-enable

microservice-disable

NOT supported for Amesterdam release

MSB

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

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}

A&AI/ESR

2

Un-register cloud

cloud-unregister

DELETE on /onapapi/aai/esr/v1/vims?cloudOwner=xxx&cloudRegionId=xxx

A&AI/ESR

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}

A&AI/ESR

VNFM management

Feature

command

REST API

Depends-on Project

Feature

command

REST API

Depends-on Project

1

Register VNFM

vnfm-register

PUT on /api/aai-vnfm/v1/vnfms/vnfm/{vnfmId}

A&AI/ESR

2

Un-register VNFM

vnfm-unregister

DELETE on /api/aai-vnfm/v1/vnfms/vnfm/{vnfmId}

A&AI/ESR

3

Report registered VNFMs

vnfm-list

vnfm-show

GET on /api/aai-vnfm/v1/vnfms

GET on /api/aai-vnfm/v1/vnfms/vnfm/{vnfmId}

A&AI/ESR

EMS management

Feature

Command

REST API

Depends-on Project

Feature

Command

REST API

Depends-on Project

1

Register EMS

ems-register

POST on /api/aai-ems/v1/emses/ems

A&AI/ESR

2

Un-register EMS

ems-unregister

DELETE on /api/aai-ems/v1/emses/ems/{emsId}

A&AI/ESR

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}

A&AI/ESR

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

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

AAI

2

Create service Insance

service-create-instance

PUT on /serviceInstances/v2

SO

3

Create VNF

service-create-vnf

POST on /serviceInstances/v2/{serviceInstanceId}/vnfs

SO

4

Create VF module

service-create-module

/serviceInstances/v2/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules

SO

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}

SO

7

Delete VNF

service-delete-vnf

DELETE on /serviceInstances/v2/{serviceInstanceId}/vnfs/{vnfInstanceId}

SO

5

Delete service instance

service-delete-instance

DELETE /serviceInstnaces/v2/{serviceInstanceId}

SO

7

Remove service type

service-type-unregister

DELETE on /service-design-and-creation/services/service/{service-id}

AAI


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

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

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

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

Feature

Command

REST API

Depends-on Project

1

Add customer

customer-add

PUT on /business/customers/customer/{global-customer-id}

AAI

2

Delete Customer

customer-delete

DELETE on /business/customers/customer/{global-customer-id}

AAI

3

Reports registered customer

customer-list

customer-show

GET on /business/customers

GET on /business/customers/customer/{global-customer-id}

AAI

Subscription management

Feature

Command

REST API

Depends-on Project

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}

AAI

2

Delete Subscription

subscription-delete

DELETE on /business/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}

AAI

VSP Distribution

Feature

Command

REST API

Depends-on Project

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}



SDC

2

Manage service certification

catalog-service-verify

catalog-service-unverify

Streach goal

SDC

3

Manage service distribution

catalog-service-distribute

catalog-service-undistribute

Streach goal

SDC


Command management

Helps to discover/validate the installed ONAP Commands/schema

Feature

Command

Depends-on Project

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

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