Market Place API
Upload VNF Package
Interface Definition | Description |
---|---|
URI | /onapapi/marketplace/v1/csars |
Operation Type | POST |
Content-Type | multipart/form-data |
Request Parameters:
Attribute | Qualifier | Cardinality | Content | Description |
---|---|---|---|---|
file | M | 1 | InputStream | The CSAR file stream |
file | M | 1 | FormDataContentDisposition | The detail of CSAR file |
FormDataContentDisposition
Attribute | Content | Description |
---|---|---|
type | String | the disposition type. will be "form-data" |
name | String | the control name |
fileName | String | the file name |
creationDate | Date | the creation date |
modificationDate | Date | the modification date |
readDate | Date | the read date |
size | String | the size |
parameters | Map<String,String> | the parameters |
Response:
Attribute | Qualifier | Cardinality | Content | Description |
---|---|---|---|---|
csarId | M | 1 | String | The CSAR identifier is a unique identifier generated by the Market place. |
Query VNF package by csarId
Interface Definition | Description |
---|---|
URI | /onapapi/marketplace/v1/csars/{csarId} |
Operation Type | GET |
Request Parameters:
Attribute | Qualifier | Cardinality | Content | Description |
---|---|---|---|---|
csarId | M | 1 | String | The id of CSAR package |
Response:
CSARPackage
Sample:
{ "csarId":"78ede6f3-66cc-46ab-b748-38a6c010d272", "name":"NanocellGateway", "provider":"XYZ", "version":"V1.0", "createTime":"2016-06-29 03:33:15", "modifyTime":"2016-06-29 09:33:15", "size":"0.93M", "downloadUri":"http://msb_ip:msb_port/files/marketplace/CSAR/XYZ/NanocellGW/v1.0/NanocellGateway.csar", "type":"CSAR" }
Delete VNF infomation by csarId
Interface Definition | Description |
---|---|
URI | /onapapi/marketplace/v1/csars/{csarId} |
Operation Type | DELETE |
Request Parameters:
Attribute | Qualifier | Cardinality | Content | Description |
---|---|---|---|---|
csarId | M | 1 | String | The id of CSAR package |
Response:
HTTP Success or Error Code
Download VNF package files download URI
Interface Definition | Description |
---|---|
URI | /onapapi/marketplace/v1/csars/{csarId}/files?relativePath=xxx |
Operation Type | GET |
Request Parameters:
Attribute | Qualifier | Cardinality | Content | Description |
---|---|---|---|---|
csarId | M | 1 | String | The id of CSAR |
relativePath | M | 1 | String | The file relative path in CSAR package |
Sample:
/onapapi/marketplace/v1/csars/78ede6f3-66cc-46ab-b748-38a6c010d272/files?relativePath="/images/segw.img"
Response:
Attribute | Qualifier | Cardinality | Content | Description |
---|---|---|---|---|
downloadUri | M | 1 | String | The download URI of file |
Sample:
{ "downloadUri": "http://msb_ip:msb_port/files/marketplace-http/NSAR/XYZ/NanocellGW/v1.0/NanocellGW/images/segw.img", "localPath": "D:\CSAR\XYZ\NanocellGW\v1.0\NanocellGW\images\segw.img" }