Create VNF package Info

Use this API to create a new individual VNF package resource. The POST method creates information relating to a new package.

The following elements of the request, example, and responses are described:

Request

Table 1. Request
Aspect Value
Endpoint URL /api/etsi/vnfpkgm/v2/vnf_packages
HTTP Method POST

Request headers

Table 2. Request headers
Header Value
Content-Type application/json
Version 2.1.0

Request data

Table 3. Request data
Parameter Type Description Required
userDefinedData object Key-Value Map of user defined values No

Request data example

{
    "userDefinedData": {
    "key1" : "value1",
    "key2" : "value2"
  }
}

Response codes

Table 4. Response codes
HTTP status code Description
201 When the VNF Packages Info has been successfully CREATED.
400 The response body contains details about the error.
500 Internal Server Error
4xx/5xx In addition to the response codes defined in this table, any common error response codes.

Response headers

Table 5. Response headers
Header Description
Content-Type application/json
Location https://<ishtar_route>/api/etsi/vnfpkgm/v2/vnf_packages/<package-id>
Note: This is the resource URI of the individual VNF package resource created.

Response data

The response body contains detail of the newly created VNF Package Information.

{
           "id": "668c3bab-f3f0-4fbc-b9ea-ec79fbb1ffb3",
           "onboardingState": "CREATED",
           "operationalState": "DISABLED",
           "usageState": "NOT_IN_USE",
           "vnfmInfo": [],
           "userDefinedData": {
                 "key1": "value1",
                 "key2": "value2"
           },
           "_links": {
                "self": {
                      "href": "https://<ishtar_route>/api/etsi/vnfpkgm/v2/vnf_packages/668c3bab
                -f3f0-4fbc-b9ea-ec79fbb1ffb3"
                }           
           }
}