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 5 Next »


Market Place API

Upload VNF Package

Interface DefinitionDescription
URI/onapapi/marketplace/v1/csars
Operation TypePOST
Content-Typemultipart/form-data

Request Parameters:

AttributeQualifierCardinalityContentDescription
fileM1InputStreamThe CSAR file stream
fileM1FormDataContentDispositionThe detail of CSAR file

FormDataContentDisposition

AttributeContentDescription
typeStringthe disposition type. will be "form-data"
nameStringthe control name
fileNameStringthe file name
creationDateDatethe creation date
modificationDateDatethe modification date
readDateDatethe read date
sizeStringthe size
parametersMap<String,String>the parameters

Response:

AttributeQualifierCardinalityContentDescription
csarIdM1String

The CSAR identifier is a unique identifier generated

by the Market place.

Query VNF infomation by csarId

Interface DefinitionDescription
URI/onapapi/marketplace/v1/csars/{csarId}
Operation TypeGET

Request Parameters:

AttributeQualifierCardinalityContentDescription
csarIdM1StringThe 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 DefinitionDescription
URI/onapapi/marketplace/v1/csars/{csarId}
Operation TypeDELETE

Request Parameters:

AttributeQualifierCardinalityContentDescription
csarIdM1StringThe id of CSAR package

Response:
HTTP Success or Error Code


Download VNF package files download URI

Interface DefinitionDescription
URI/onapapi/marketplace/v1/csars/{csarId}/files?relativePath=xxx
Operation TypeGET

Request Parameters:

AttributeQualifierCardinalityContentDescription
csarIdM1StringThe id of CSAR
relativePathM1StringThe file relative path in CSAR package

Sample:
/onapapi/marketplace/v1/csars/78ede6f3-66cc-46ab-b748-38a6c010d272/files?relativePath="/images/segw.img"

Response:

AttributeQualifierCardinalityContentDescription
downloadUriM1StringThe 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"
   }


  • No labels