Skip to content

Service descriptor APIs

hadik3r edited this page Dec 12, 2019 · 2 revisions

To onboard service descriptors in Pishahang the following commands and APIs can be used:

Complex services

List of complex services NSDs:

curl -X GET -H "Content-Type: application/json" http://<Pishahang_IP>:4002/catalogues/api/v2/complex-services

Onboard a complex service NSD:

curl -X POST -H "Content-Type: application/json" -d "@<nsd_file_name>.json" http://<Pishahang_IP>:4002/catalogues/api/v2/complex-services

Delete a complex service NSD:

curl -X DELETE -H "Content-Type: application/json" http://<Pishahang_IP>:4002/catalogues/api/v2/complex-services/<Service_UUID>

Network services

List of network services NSDs:

curl -X GET -H "Content-Type: application/json" http://<Pishahang_IP>:4002/catalogues/api/v2/network-services

Onboard a network service NSD:

curl -X POST -H "Content-Type: application/json" -d "@<nsd_file_name>.json" http://<Pishahang_IP>:4002/catalogues/api/v2/network-services

Delete a network service NSD:

curl -X DELETE -H "Content-Type: application/json" http://<Pishahang_IP>:4002/catalogues/api/v2/network-services/<Service_UUID>

VM-based Network Functions

List of VNFDs:

curl -X GET -H "Content-Type: application/json" http://<Pishahang_IP>:4002/catalogues/api/v2/vnfs

Onboard a VNFD:

curl -X POST -H "Content-Type: application/json" -d "@<vnfd_file_name>.json" http://<Pishahang_IP>:4002/catalogues/api/v2/vnfs

Delete a VNFD:

curl -X DELETE -H "Content-Type: application/json" http://<Pishahang_IP>:4002/catalogues/api/v2/vnfs/<VNF_UUID>

CN-based Network Functions

List of CNFDs:

curl -X GET -H "Content-Type: application/json" http://<Pishahang_IP>:4002/catalogues/api/v2/csds

Onboard a CNFD:

curl -X POST -H "Content-Type: application/json" -d "@<cnfd_file_name>.json" http://<Pishahang_IP>:4002/catalogues/api/v2/csds

Delete a CNFD:

curl -X DELETE -H "Content-Type: application/json" http://<Pishahang_IP>:4002/catalogues/api/v2/csds/<CNF_UUID>