Article ID: 118038, created on Oct 18, 2013, last review on Apr 28, 2014

  • Applies to:
  • Operations Automation 5.4

Symptoms

According to description of API calls List Images and Get Image Info in PACI RESTful API Programmer's Guide, they should return value for attribute active:

Attribute: active - Specifies whether the image is active or not. Inactive images cannot be used to create servers

But they do not:

Request:
http://testapiserver:4465/paci/v1.0/image
Response:
<image-list>
    <image-info name="testimage" description="img1" size="10" created="2012-09-12 12:12:24.590313+01" subscription-id="111"/>
</image-list>

Cause

This behavior is by design, description provided in documentation is not complete.

Resolution

Attributes load-balancer and active are returned by REST API call only for image marked as load balancer (there can only be 1 such image and only provider can mark an image as load balancer). Regular image cannot be active or inactive - there is no such setting for it (i.e. it is not possible to make regular image inactive).

As example, API call execution to list images of provider account:

GET http://testserver:4465/paci/v1.0/image
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<image-list>
<image-info name="testimage1" description="Image of testserver1" size="20" created="2013-09-17 22:43:12.487557+08" subscription-id="1" load-balancer="true" active="true" image-of="testserver1"/>
<image-info name="testimage2" description="Image of testserver1" size="20" created="2013-09-17 22:49:33.537184+08" subscription-id="1" image-of="testserver1"/>
</image-list>

As you see load-balancer="true" active="true" is only returned for load balancer image.

Search Words

Get Image Info

image inactive

List Images

image active

ac82ce33439a9c1feec4ff4f2f638899 caea8340e2d186a540518d08602aa065 5356b422f65bdad1c3e9edca5d74a1ae 2554725ed606193dd9bbce21365bed4e e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF