Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

vfc_svnfm_huawei container

Create VNF REST API

POST /{vnfmtype}/v1/{vnfmid}/vnfs
Example: POST http://10.0.14.1:80/api/huaweivnfmdriver/v1/a0400010-11d7-4875-b4ae-5f42ed5d3a85/vnfs
Body: {"vnfInstanceName": "vnfe9f952fb-a766-4a10-9df8-bda", "extVirtualLink": [], "vnfPackageId": "e9f952fb-a766-4a10-9df8-bdad5895294c", "additionalParam": {"inputs": {"sdncontroller": "IP-WAN-Controller-1"}, "extVirtualLinks": [], "vimId": "pod25_RegionOne"}, "vnfDescriptorId": "e9f952fb-a766-4a10-9df8-bdad5895294c"}

Response: 200
{"vnfInstanceId":"fa3dca847b054f4eb9d3bc8bb9e5eec9","jobId":"fa3dca847b054f4eb9d3bc8bb9e5eec9_post"}


Notification sent to nslcm

POST /nslcm/v1/ns/{vnfmid}/vnfs/{vnfInstanceId}/Notify
Example: POST http://10.0.14.1:80/api/nslcm/v1/ns/a0400010-11d7-4875-b4ae-5f42ed5d3a85/vnfs/fa3dca847b054f4eb9d3bc8bb9e5eec9/Notify

Response code: 202
Body: {u'status': u'Building', u'vnfInstanceId': u'fa3dca847b054f4eb9d3bc8bb9e5eec9', u'operation': u'Instantiate', u'affectedVnfc': []}


Job


GET /{vnfmtype}/v1/{vnfmid}/jobs/{jobid}
Example: GET http://10.0.14.1:80/api/huaweivnfmdriver/v1/4a1626f6-e754-4bf9-83f4-14c11bd59d45/jobs/bfb74ec8ef8a4e5b983d0c4dc2571191_post?responseId=50

Response code: 200
Body: {"jobId":"bfb74ec8ef8a4e5b983d0c4dc2571191","responsedescriptor":{"progress":"50","status":"processing","errorCode":null,"responseId":"50"}}








  • No labels