Abiquo 2.6


Skip to end of metadata
Go to start of metadata

Template Definition List Resource

Exposed Resources Hierarchy
Template Definition List Resource

Contents:

Main URI of the Resource

This class operates mainly over the Resource URI: /admin/enterprises/{enterprise}/appslib/templateDefinitionLists

Exposed Methods

Retrieve all template definition lists

Get all the template definition lists registered in the enterprise.

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/appslib/templateDefinitionLists
Roles Required: ROLE_APPLIB_VIEW
Request Headers: Accept: application/vnd.abiquo.templatedefinitionlists+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: TemplateDefinitionLists Media Type
Request Example:

 Click here to show or hide the request example
Retrieve all template definition lists example
curl --verbose -u admin:xabiquo --X GET http://localhost/api/admin/enterprises/1/appslib/templateDefinitionLists
 
> GET /api/admin/enterprises/1/appslib/templateDefinitionLists HTTP/1.1
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost
> Accept: */*
> 
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Set-Cookie: auth=YWRtaW46MTM1OTc0Mzg0ODE5MzoyMjJjZWMyZTYwNjQ2ZjUyYWNjYmIxNGQyMGNkZDA1YzpBQklRVU8; Expires=Fri, 01-Feb-2013 18:37:28 GMT; Path=/api
< Set-Cookie: JSESSIONID=2137965EBB9C8A1DDABE1578E0B39966.nodeAlbert; Path=/api
< Content-Type: application/vnd.abiquo.templatedefinitionlists+xml;version=2.4
< Content-Length: 6235
< Date: Fri, 01 Feb 2013 18:07:28 GMT
< 
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<templateDefinitionLists>
  <totalSize>1</totalSize>
  <templateDefinitionList>
    <link rel="edit"
    type="application/vnd.abiquo.templatedefinitionlist+xml"
    href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitionLists/3" />
    <link rel="enterprise"
    type="application/vnd.abiquo.enterprise+xml"
    href="http://localhost:80/api/admin/enterprises/1" />
    <link rel="repositoryStatus"
    type="application/vnd.abiquo.templatestates+xml"
    href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitionLists/3/actions/repositoryStatus" />
    <id>3</id>
    <name>Abiquo Official Repository</name>
    <url>http://abiquo-repository.abiquo.com/ovfindex.xml</url>
    <templateDefinitions>
      <templateDefinition>
        <link rel="enterprise"
        type="application/vnd.abiquo.enterprise+xml"
        href="http://localhost:80/api/admin/enterprises/1" />
        <link title="OS" rel="category"
        type="application/vnd.abiquo.category+xml"
        href="http://localhost:80/api/config/categories/9" />
        <link rel="edit"
        type="application/vnd.abiquo.templatedefinition+xml"
        href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitions/27" />
        <id>27</id>
        <url>
        http://abiquo-repository.abiquo.com/centos5/centos5.ovf</url>
        <name>Centos 5.6 x86_64</name>
        <description>Centos 5. Log in as 'root' with password
        'abiquo'.</description>
        <productName>Centos 5.6 x86_64</productName>
        <iconUrl>
        http://abiquo-repository.s3.amazonaws.com/centos5/centos.png</iconUrl>
        <diskFormatType>QCOW2_SPARSE</diskFormatType>
        <diskFileSize>614</diskFileSize>
        <osType>UNRECOGNIZED</osType>
      </templateDefinition>
      <templateDefinition>
        <link rel="enterprise"
        type="application/vnd.abiquo.enterprise+xml"
        href="http://localhost:80/api/admin/enterprises/1" />
        <link title="OS" rel="category"
        type="application/vnd.abiquo.category+xml"
        href="http://localhost:80/api/config/categories/9" />
        <link rel="edit"
        type="application/vnd.abiquo.templatedefinition+xml"
        href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitions/28" />
        <id>28</id>
        <url>
        http://abiquo-repository.abiquo.com/ubuntu-9.04/ubuntu-9.04-i386-sparse.1.5.ovf</url>
        <name>Ubuntu Linux 9.04 32 bits</name>
        <description>Ubuntu is a computer operating system based on
        the Debian Linux distribution. Ubuntu provides an
        up-to-date, stable operating system for the average user,
        with a strong focus on usability and ease-of-installation.
        Log in as 'root' with password 'abiquo'</description>
        <productName>Ubuntu Linux 9.04 32 bits</productName>
        <iconUrl>
        http://abiquo-repository.abiquo.com/s3direct/ubuntu-9.04/ubuntu_logo.png</iconUrl>
        <diskFormatType>VMDK_SPARSE</diskFormatType>
        <diskFileSize>764</diskFileSize>
        <osType>UBUNTU</osType>
        <ethernetDriverType>E1000</ethernetDriverType>
        <diskControllerType>IDE</diskControllerType>
      </templateDefinition>     
    </templateDefinitions>
  </templateDefinitionList>
</templateDefinitionLists>



Create a template definition list

Create a new template definition list based on its representation. All the Template Definitions included will also be created.

Synopsis: POST http://example.com/api/admin/enterprises/{enterprise}/appslib/templateDefinitionLists
Roles Required: ROLE_APPLIB_ALLOW_MODIFY
Request Headers: Accept: application/vnd.abiquo.templatedefinitionlist+xml; version=2.4; Content-type: application/vnd.abiquo.templatedefinitionlist+xml; version=2.4;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: TemplateDefinitionList Media Type
Response Message Body Entity: TemplateDefinitionList Media Type
Request Example:

 Click here to show or hide the request example
Create a template definition list example
curl --verbose -u admin:xabiquo -X POST 'http://localhost/api/admin/enterprises/1/appslib/templateDefinitionLists' \
       -H "Content-type:application/vnd.abiquo.templatedefinitionlist+xml;version=2.4" \
       -H "Accept:application/vnd.abiquo.templatedefinitionlist+xml;version=2.4" \
       -d \
'<templateDefinitionList>
    <name>MyList</name>
    <templateDefinitions>
        <templateDefinition>
            <link href="http://example.com/api/config/categories/1" rel="category" title="Others"/>
            <link href="http://example.com/api/config/icons/24" rel="icon" title="http://icons.abiquo.com/sugarcrm.png"/>
            <url>http://rs.bcn.abiquo.com/test1/description1.ovf</url>
            <productName>Test1</productName>
            <diskFormatType>VMDK_STREAM_OPTIMIZED</diskFormatType>
            <diskFileSize>556</diskFileSize>
        </templateDefinition>
        <templateDefinition>
            <link href="http://example.com/api/config/categories/1" rel="category" title="Others"/>
            <link href="http://example.com/api/config/icons/24" rel="icon" title="http://icons.abiquo.com/sugarcrm.png"/>
            <url>http://rs.bcn.abiquo.com/test2/description2.ovf</url>
            <productName>Test2</productName>
            <diskFormatType>VMDK_STREAM_OPTIMIZED</diskFormatType>
            <diskFileSize>556</diskFileSize>
        </templateDefinition>
    </templateDefinitions>
</templateDefinitionList>'

> POST /api/admin/enterprises/1/appslib/templateDefinitionLists HTTP/1.1
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost
> Content-type:application/vnd.abiquo.templatedefinitionlist+xml;version=2.4
> Accept:application/vnd.abiquo.templatedefinitionlist+xml;version=2.4
> Content-Length: 1145
> Expect: 100-continue
> 
< HTTP/1.1 100 Continue
} [data not shown]
< HTTP/1.1 201 Creado
< Server: Apache-Coyote/1.1
< Set-Cookie: auth=YWRtaW46MTM1OTc0NDAyNjgzMjowZjEzZTYxZmZjZmMwMDYwMGUyYmU1MjhiYjQ5OGYyNjpBQklRVU8; Expires=Fri, 01-Feb-2013 18:40:26 GMT; Path=/api
< Location: http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitionLists/5
< Set-Cookie: JSESSIONID=5EDA7EAF6AC3C7FB840AC2B232968260.nodeAlbert; Path=/api
< Content-Type: application/vnd.abiquo.templatedefinitionlist+xml;version=2.4
< Content-Length: 624
< Date: Fri, 01 Feb 2013 18:10:26 GMT
< 
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<templateDefinitionList>
  <link rel="enterprise"
  type="application/vnd.abiquo.enterprise+xml"
  href="http://localhost:80/api/admin/enterprises/1" />
  <link rel="edit"
  type="application/vnd.abiquo.templatedefinitionlist+xml"
  href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitionLists/5" />
  <link rel="repositoryStatus"
  type="application/vnd.abiquo.templatestates+xml"
  href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitionLists/5/actions/repositoryStatus" />
  <id>5</id>
  <name>MyList</name>
  <templateDefinitions />
</templateDefinitionList>



Download a template

You can download the template of the entity here (click right mouse button and 'Save Link As..')

Create a template definition list from an ''ovfindex.xml'' URL

Create a new template definition list based on the content of a template repository (ovfindex.xml). One Template Definition for each .ovf in the list. Please refer to the template repository documentation for details of the ovfindex.xml format. All the Template Definitions included will also be created.

Synopsis: POST http://example.com/api/admin/enterprises/{enterprise}/appslib/templateDefinitionLists
Roles Required: ROLE_APPLIB_ALLOW_MODIFY
Request Headers: Accept: application/vnd.abiquo.templatedefinitionlist+xml; version=2.4; Content-type: text/plain;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: String
Response Message Body Entity: TemplateDefinitionList Media Type
Request Example:

 Click here to show or hide the request example
Create a template definition list from an ''ovfindex.xml'' URL example
curl --verbose -u admin:xabiquo -X POST 'http://localhost/api/admin/enterprises/1/appslib/templateDefinitionLists' \
        -H "Content-type:text/plain" \
        -d 'http://rs.bcn.abiquo.com'

> POST /api/admin/enterprises/1/appslib/templateDefinitionLists HTTP/1.1
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost
> Accept: */*
> Content-type:text/plain
> Content-Length: 24
> 
< Server: Apache-Coyote/1.1
< Set-Cookie: auth=YWRtaW46MTM1OTc0NDExMTQzODo1Yzg4NjMyODUxMjYwOTFmYjE4N2RiOWU2NjhmYTc3ZjpBQklRVU8; Expires=Fri, 01-Feb-2013 18:41:51 GMT; Path=/api
< Location: http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitionLists/6
< Content-Type: application/vnd.abiquo.templatedefinitionlist+xml;version=2.4
< Transfer-Encoding: chunked
< Date: Fri, 01 Feb 2013 18:11:52 GMT
< 
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<templateDefinitionList>
  <link rel="enterprise"
  type="application/vnd.abiquo.enterprise+xml"
  href="http://localhost:80/api/admin/enterprises/1" />
  <link rel="edit"
  type="application/vnd.abiquo.templatedefinitionlist+xml"
  href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitionLists/6" />
  <link rel="repositoryStatus"
  type="application/vnd.abiquo.templatestates+xml"
  href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitionLists/6/actions/repositoryStatus" />
  <id>6</id>
  <name>OFFICIAL INTERNAL REPO</name>
  <url>http://rs.bcn.abiquo.com/ovfindex.xml</url>
  <templateDefinitions>
    <templateDefinition>
      <link rel="enterprise"
      type="application/vnd.abiquo.enterprise+xml"
      href="http://localhost:80/api/admin/enterprises/1" />
      <link title="Load Balancer,base" rel="category"
      type="application/vnd.abiquo.category+xml"
      href="http://localhost:80/api/config/categories/7" />
      <link rel="edit"
      type="application/vnd.abiquo.templatedefinition+xml"
      href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitions/32" />
      <id>32</id>
      <url>http://rs.bcn.abiquo.com/zeus/zeus.ovf</url>
      <name>Zeus Traffic Manager Virtual Appliance</name>
      <description>Zeus Traffic Manager Virtual
      Appliance</description>
      <productName>Zeus Traffic Manager Virtual
      Appliance</productName>
      <iconUrl>http://icons.abiquo.com/zeus.png</iconUrl>
      <diskFormatType>VMDK_SPARSE</diskFormatType>
      <diskFileSize>204</diskFileSize>
      <osType>CENTOS</osType>
      <diskControllerType>SCSI</diskControllerType>
    </templateDefinition>
    <templateDefinition>
      <link rel="enterprise"
      type="application/vnd.abiquo.enterprise+xml"
      href="http://localhost:80/api/admin/enterprises/1" />
      <link title="Operative Systems,base" rel="category"
      type="application/vnd.abiquo.category+xml"
      href="http://localhost:80/api/config/categories/8" />
      <link rel="edit"
      type="application/vnd.abiquo.templatedefinition+xml"
      href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitions/33" />
      <id>33</id>
      <url>http://rs.bcn.abiquo.com/namenode/description.ovf</url>
      <name>Debian</name>
      <description>Hadoop namenode</description>
      <productName>Debian</productName>
      <iconUrl>http://icons.abiquo.com/namenode.jpg</iconUrl>
      <diskFormatType>VMDK_FLAT</diskFormatType>
      <diskFileSize>2048</diskFileSize>
      <osType>LINUX</osType>
      <diskControllerType>SCSI</diskControllerType>
    </templateDefinition>
  </templateDefinitions>
</templateDefinitionList>

Retrieve a template definition list

Get the content of a Template Definition List.

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/appslib/templateDefinitionLists/{templateDefinitionList}
Roles Required: ROLE_APPLIB_VIEW
Request Headers: Accept: application/vnd.abiquo.templatedefinitionlist+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: TemplateDefinitionList Media Type
Request Example:

 Click here to show or hide the request example
Retrieve a template definition list example
curl --verbose -u admin:xabiquo -X GET 'http://localhost/api/admin/enterprises/1/appslib/templateDefinitionLists/6'

> GET /api/admin/enterprises/1/appslib/templateDefinitionLists/6 HTTP/1.1
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost
> Accept: */*
> 
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Set-Cookie: auth=YWRtaW46MTM1OTc0NDM0OTYzNDowNDVhNTIxYWUwOGQ0ZjJjMDBhOWZiOTNhMWFiZWM3NjpBQklRVU8; Expires=Fri, 01-Feb-2013 18:45:49 GMT; Path=/api
< Content-Type: application/vnd.abiquo.templatedefinitionlist+xml;version=2.4
< Transfer-Encoding: chunked
< Date: Fri, 01 Feb 2013 18:15:49 GMT
< 
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<templateDefinitionList>
  <link rel="edit"
  type="application/vnd.abiquo.templatedefinitionlist+xml"
  href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitionLists/6" />
  <link rel="enterprise"
  type="application/vnd.abiquo.enterprise+xml"
  href="http://localhost:80/api/admin/enterprises/1" />
  <link rel="repositoryStatus"
  type="application/vnd.abiquo.templatestates+xml"
  href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitionLists/6/actions/repositoryStatus" />
  <id>6</id>
  <name>OFFICIAL INTERNAL REPO</name>
  <url>http://rs.bcn.abiquo.com/ovfindex.xml</url>
  <templateDefinitions>
    <templateDefinition>
      <link rel="enterprise"
      type="application/vnd.abiquo.enterprise+xml"
      href="http://localhost:80/api/admin/enterprises/1" />
      <link title="Load Balancer,base" rel="category"
      type="application/vnd.abiquo.category+xml"
      href="http://localhost:80/api/config/categories/7" />
      <link rel="edit"
      type="application/vnd.abiquo.templatedefinition+xml"
      href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitions/32" />
      <id>32</id>
      <url>http://rs.bcn.abiquo.com/zeus/zeus.ovf</url>
      <name>Zeus Traffic Manager Virtual Appliance</name>
      <description>Zeus Traffic Manager Virtual
      Appliance</description>
      <productName>Zeus Traffic Manager Virtual
      Appliance</productName>
      <iconUrl>http://icons.abiquo.com/zeus.png</iconUrl>
      <diskFormatType>VMDK_SPARSE</diskFormatType>
      <diskFileSize>204</diskFileSize>
      <osType>CENTOS</osType>
      <diskControllerType>SCSI</diskControllerType>
    </templateDefinition>
    <templateDefinition>
      <link rel="enterprise"
      type="application/vnd.abiquo.enterprise+xml"
      href="http://localhost:80/api/admin/enterprises/1" />
      <link title="Operative Systems,base" rel="category"
      type="application/vnd.abiquo.category+xml"
      href="http://localhost:80/api/config/categories/8" />
      <link rel="edit"
      type="application/vnd.abiquo.templatedefinition+xml"
      href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitions/33" />
      <id>33</id>
      <url>http://rs.bcn.abiquo.com/namenode/description.ovf</url>
      <name>Debian</name>
      <description>Hadoop namenode</description>
      <productName>Debian</productName>
      <iconUrl>http://icons.abiquo.com/namenode.jpg</iconUrl>
      <diskFormatType>VMDK_FLAT</diskFormatType>
      <diskFileSize>2048</diskFileSize>
      <osType>LINUX</osType>
      <diskControllerType>SCSI</diskControllerType>
    </templateDefinition>   
  </templateDefinitions>
</templateDefinitionList>



Modify a template definition list

Update the content of the template definition list based on the supplied list of template definitions.

Synopsis: PUT http://example.com/api/admin/enterprises/{enterprise}/appslib/templateDefinitionLists/{templateDefinitionList}
Roles Required: ROLE_APPLIB_ALLOW_MODIFY
Request Headers: Accept: application/vnd.abiquo.templatedefinitionlist+xml; version=2.4; Content-type: application/vnd.abiquo.templatedefinitionlist+xml; version=2.4;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: TemplateDefinitionList Media Type
Response Message Body Entity: TemplateDefinitionList Media Type
Request Example:

 Click here to show or hide the request example
Modify a template definition list example
curl --verbose -u admin:xabiquo -X PUT 'http://localhost/api/admin/enterprises/1/appslib/templateDefinitionLists/4' -H "Content-type:application/vnd.abiquo.templatedefinitionlist+xml" -d \
'<templateDefinitionList>
  <name>lalarepo</name>
  <url>http://rs.bcn.abiquo.com:9000/ovfindex.xml</url> 
</templateDefinitionList>'

> PUT /api/admin/enterprises/1/appslib/templateDefinitionLists/4 HTTP/1.1
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost
> Accept: */*
> Content-type:application/vnd.abiquo.templatedefinitionlist+xml
> Content-Length: 131
> 
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Set-Cookie: auth=YWRtaW46MTM1OTc0NTM0OTUwODo1ZmU0ZDZmODgyNTEyNTM0YTNiMTQ3NDM1NGQ1NjlhYTpBQklRVU8; Expires=Fri, 01-Feb-2013 19:02:29 GMT; Path=/api
< Set-Cookie: JSESSIONID=8A0CD3BC4C233EBDB61ED21CCC48AA90.nodeAlbert; Path=/api
< Content-Type: application/vnd.abiquo.templatedefinitionlist+xml;version=2.4
< Content-Length: 626
< Date: Fri, 01 Feb 2013 18:32:29 GMT
< 
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<templateDefinitionList>
  <link rel="edit"
  type="application/vnd.abiquo.templatedefinitionlist+xml"
  href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitionLists/4" />
  <link rel="enterprise"
  type="application/vnd.abiquo.enterprise+xml"
  href="http://localhost:80/api/admin/enterprises/1" />
  <link rel="repositoryStatus"
  type="application/vnd.abiquo.templatestates+xml"
  href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitionLists/4/actions/repositoryStatus" />
  <id>4</id>
  <name>lalarepo</name>
  <templateDefinitions />
</templateDefinitionList>

Download a template

You can download the template of the entity here (click right mouse button and 'Save Link As..')

Refresh a template definition list from the URL

Fetch new Template Definitions (.ovf) from an ovfindex.xml source, adding them to the current list. Also delete template definitions that are not present. Only apply if the list is associated with an ovfindex.xml (url datamodel), which is a list created by providing the ovfindex.xml location.

Synopsis: PUT http://example.com/api/admin/enterprises/{enterprise}/appslib/templateDefinitionLists/{templateDefinitionList}
Roles Required: ROLE_APPLIB_ALLOW_MODIFY
Request Headers: Accept: application/vnd.abiquo.templatedefinitionlist+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: TemplateDefinitionList Media Type
Request Example:

 Click here to show or hide the request example
Refresh a template definition list from the URL example
curl --verbose -u admin:xabiquo -X PUT 'http://localhost/api/admin/enterprises/1/appslib/templateDefinitionLists/6'

> PUT /api/admin/enterprises/1/appslib/templateDefinitionLists/6 HTTP/1.1
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost
> Accept: */*
> 
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Set-Cookie: auth=YWRtaW46MTM1OTc0NDQ3OTAzMDo3MzJhNzZmODMxZWQ4NTYxZGI2MGQ1MmE4MjI4ZmEzZDpBQklRVU8; Expires=Fri, 01-Feb-2013 18:47:59 GMT; Path=/api
< Content-Type: application/vnd.abiquo.templatedefinitionlist+xml;version=2.4
< Transfer-Encoding: chunked
< Date: Fri, 01 Feb 2013 18:18:00 GMT
< 
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<templateDefinitionList>
  <link rel="edit"
  type="application/vnd.abiquo.templatedefinitionlist+xml"
  href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitionLists/6" />
  <link rel="enterprise"
  type="application/vnd.abiquo.enterprise+xml"
  href="http://localhost:80/api/admin/enterprises/1" />
  <link rel="repositoryStatus"
  type="application/vnd.abiquo.templatestates+xml"
  href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitionLists/6/actions/repositoryStatus" />
  <id>6</id>
  <name>OFFICIAL INTERNAL REPO</name>
  <url>http://rs.bcn.abiquo.com/ovfindex.xml</url>
  <templateDefinitions>
    <templateDefinition>
      <link rel="enterprise"
      type="application/vnd.abiquo.enterprise+xml"
      href="http://localhost:80/api/admin/enterprises/1" />
      <link title="Load Balancer,base" rel="category"
      type="application/vnd.abiquo.category+xml"
      href="http://localhost:80/api/config/categories/7" />
      <link rel="edit"
      type="application/vnd.abiquo.templatedefinition+xml"
      href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitions/32" />
      <id>32</id>
      <url>http://rs.bcn.abiquo.com/zeus/zeus.ovf</url>
      <name>Zeus Traffic Manager Virtual Appliance</name>
      <description>Zeus Traffic Manager Virtual
      Appliance</description>
      <productName>Zeus Traffic Manager Virtual
      Appliance</productName>
      <iconUrl>http://icons.abiquo.com/zeus.png</iconUrl>
      <diskFormatType>VMDK_SPARSE</diskFormatType>
      <diskFileSize>204</diskFileSize>
      <osType>CENTOS</osType>
      <diskControllerType>SCSI</diskControllerType>
    </templateDefinition>
    <templateDefinition>
      <link rel="enterprise"
      type="application/vnd.abiquo.enterprise+xml"
      href="http://localhost:80/api/admin/enterprises/1" />
      <link title="Operative Systems,base" rel="category"
      type="application/vnd.abiquo.category+xml"
      href="http://localhost:80/api/config/categories/8" />
      <link rel="edit"
      type="application/vnd.abiquo.templatedefinition+xml"
      href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitions/33" />
      <id>33</id>
      <url>http://rs.bcn.abiquo.com/namenode/description.ovf</url>
      <name>Debian</name>
      <description>Hadoop namenode</description>
      <productName>Debian</productName>
      <iconUrl>http://icons.abiquo.com/namenode.jpg</iconUrl>
      <diskFormatType>VMDK_FLAT</diskFormatType>
      <diskFileSize>2048</diskFileSize>
      <osType>LINUX</osType>
      <diskControllerType>SCSI</diskControllerType>
    </templateDefinition>   
  </templateDefinitions>
</templateDefinitionList>



Delete a template definition list

Removes a Template Definition List, but doesn't delete the included Template Definitions.

Synopsis: DELETE http://example.com/api/admin/enterprises/{enterprise}/appslib/templateDefinitionLists/{templateDefinitionList}
Roles Required: ROLE_APPLIB_ALLOW_MODIFY
Request Headers: Accept: ; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity:
Request Example:

 Click here to show or hide the request example
Delete a template definition list example
curl --verbose -u admin:xabiquo -X DELETE 'http://localhost/api/admin/enterprises/1/appslib/templateDefinitionLists/8'

> DELETE /api/admin/enterprises/1/appslib/templateDefinitionLists/8 HTTP/1.1
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost
> Accept: */*
> 
< HTTP/1.1 204 Sin Contenido
< Server: Apache-Coyote/1.1
< Set-Cookie: auth=YWRtaW46MTM1OTc0NDY1NjY4NTo2YTU2MTJhMmJmNjA3MWU5YTZhZDUyMjc3ZDA0YjU5MjpBQklRVU8; Expires=Fri, 01-Feb-2013 18:50:56 GMT; Path=/api
< Set-Cookie: JSESSIONID=FB9EE05EEFD7100841E47FE57E7DBC9A.nodeAlbert; Path=/api
< Date: Fri, 01 Feb 2013 18:20:56 GMT
<



Retrieve a TemplatesStateDto entity.

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/appslib/templateDefinitionLists/{templateDefinitionList}/actions/repositoryStatus
Roles Required:
Request Headers: Accept: application/vnd.abiquo.templatestates+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

datacenterId

true

 

identifier of the datacenter

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: TemplatesState Media Type
Request Example:

 Click here to show or hide the request example
Retrieve a TemplatesStateDto entity. example
curl -X GET http://localhost10.60.20.60:80/api/admin/enterprises/2/appslib/templateDefinitionLists/21/actions/repositoryStatus?datacenterId=1\
	     -H 'Accept: application/vnd.abiquo.templatestates+xml; version=2.4'    	\
	     -u user:password --verbose


GET http://localhost10.60.20.60:80/api/admin/enterprises/2/appslib/templateDefinitionLists/21/actions/repositoryStatus?datacenterId=1 HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.templatestates+xml;version=2.4


HTTP/1.1 200 OK
Date: FriWed, 0116 FebJan 2013 1614:3407:0108 GMT
Set-Cookie: JSESSIONID=01C72139FCD760437A7B5DF874E06D57.nodeAlbert5879B1EB8C726F06B30EAC4D81D5FB9C; Path=/api
Set-Cookie: auth=YWRtaW46MTM1OTczODI0MTAzMTpiZmE0ZGI2ZmMwMzc0YWUxOWZiY2QwYzNkMDA1ZGZiNzpBQklRVU8YWRtaW46MTM1ODM0NzAyODcyMDowOGI3OGM3ODFkYjcyZDMyN2MyZDZmOWMzY2JmNzcyODpBQklRVU8; Expires=FriWed, 0116-FebJan-2013 1714:0437:0108 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.templatestates+xml;version=2.4
Content-Length: 352672

<?xml version="1.0" encoding="UTF-8"?>
<templatesState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/zeus/zeus.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/namenode/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/debian/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/mw/mw.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/centos_xen/centos_xen.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/Centos-5.5/Centos-5.5.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/centos_vhd/centos_vhd.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/windows7/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/txp/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/centos_xen/centos_xennnnnnnnnnnnn.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/ubuntu9.10-desktop/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/ubuntu-server-karmic-x86_64/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/centos-5-rpath-1-x86/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/debian-lb/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/nostalgia/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/debian-apache/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/debian-mysql/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/m0n0wall/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/oracle/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/jboss/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/sugarcrm/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/hudson/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/microlinux/microlinux.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/bigip-10.2.0/BIGIP-10.2.0.1707.0.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/esxi_export_test2/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
  <ovfInstanceState>
    <ovfId>http://rs.bcn.abiquo.com/vbox_export_test/description.ovf</ovfId>
    <status>NOT_DOWNLOAD</status>
  </ovfInstanceState>
</templatesState>