Cisco Prime Infrastructure API
Prime Infrastructure API Documentation

POST image/add

Add an image file to the repository

Since Product Version: 3.1

Resource Information

Rate Limiting?

No

Sorting?

No

Paging?

No

Filtering?

No

Group Filtering?

No

Aggregation?

No

Response Formats

xml

json

User Group

NBI Write

HTTP Methods

POST

Resource URL

/webacs/api/v2/op/image/add

Unmodified

This resource has not been modified since the previous API version.

Request Payload Parameters

Attribute Description

applicationType String

The type of application, e.g. router

family String

The product family of this image e.g. vNAM

imageType String

the type of image file, e.g. OVA

imageURL String

http or ftp url for uploading the image file

minDisk String

Minimum amount of disk space for intances of this image

minMemory String

Minimum amount of memory for instances of this image

minProcessors String

Minimum number of processors for instances of this image

version String

The version number of this image file

Response Parameters

Attribute Description

status String

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://localhost/webacs/api/v2/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://localhost/webacs/api/v2/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://localhost/webacs/api/v2/op/image/add

<?xml version="1.0" ?>
<mgmtResponse responseType="operation" requestUrl="https://localhost/webacs/api/v2/op/image/add" rootUrl="https://localhost/webacs/api/v2/op">
  <imageRepositoryOperationStatus>
    <status>String value</status>
  </imageRepositoryOperationStatus>
</mgmtResponse>

Sample JSON Response Payload

https://localhost/webacs/api/v2/op/image/add.json

{
  "mgmtResponse" : {
    "@requestUrl" : "https://localhost/webacs/api/v2/op/image/add",
    "@responseType" : "operation",
    "@rootUrl" : "https://localhost/webacs/api/v2/op",
    "imageRepositoryOperationStatus" : [ {
      "status" : "String value"
    } ]
  }
}