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.

Internal content

Link on internal Article