Cisco Evolved Programmable Network Manager API
Evolved Programmable Network Manager API Documentation

POST image/add

Resource Information

Rate Limiting?

Yes

Sorting?

No

Paging?

No

Filtering?

No

Response Formats

xml

json

User Group

NBI Write

HTTP Methods

POST

Add an image file to the repository

Since Product Version: 3.1

Resource URL

/webacs/api/v1/op/image/add

Request Payload Parameters

Type Attribute Name Description

String

applicationType

The type of application, e.g. router

String

family

The product family of this image e.g. vNAM

String

imageType

the type of image file, e.g. OVA

String

imageURL

http or ftp url for uploading the image file

String

minDisk

Minimum amount of disk space for intances of this image

String

minMemory

Minimum amount of memory for instances of this image

String

minProcessors

Minimum number of processors for instances of this image

String

version

The version number of this image file

Response Parameters

Type Attribute Name Description

String

status

Sample Payloads

Sample payloads are for information only. They are automatically generated and the values included may not be representative of actual valid data values.

Sample XML Request Payload

https://172.25.123.114/webacs/api/v1/op/image/add

<?xml version="1.0" ?>
<addImageRequest>
  <applicationType>String value</applicationType>
  <family>String value</family>
  <imageType>String value</imageType>
  <imageURL>String value</imageURL>
  <minDisk>String value</minDisk>
  <minMemory>String value</minMemory>
  <minProcessors>String value</minProcessors>
  <version>String value</version>
</addImageRequest>

Sample JSON Request Payload

https://172.25.123.114/webacs/api/v1/op/image/add.json

{
  "addImageRequest" : {
    "applicationType" : "String value",
    "family" : "String value",
    "imageType" : "String value",
    "imageURL" : "String value",
    "minDisk" : "String value",
    "minMemory" : "String value",
    "minProcessors" : "String value",
    "version" : "String value"
  }
}

Sample XML Response Payload

https://172.25.123.114/webacs/api/v1/op/image/add

<?xml version="1.0" ?>
<mgmtResponse responseType="operation" requestUrl="../../../../pages/common/login.jsp.html" rootUrl="https://172.25.123.114/webacs/api/v1/op/">
  <imageRepositoryOperationStatus>
    <status>String value</status>
  </imageRepositoryOperationStatus>
</mgmtResponse>

Sample JSON Response Payload

https://172.25.123.114/webacs/api/v1/op/image/add.json

{
  "mgmtResponse" : {
    "@responseType" : "operation",
    "@requestUrl" : "https : \/\/172.25.123.114\/webacs\/api\/v1\/op\/image\/add",
    "@rootUrl" : "https : \/\/172.25.123.114\/webacs\/api\/v1\/op\/",
    "imageRepositoryOperationStatus" : {
      "status" : "String value"
    }
  }
}