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