Skip to content

Commit

Permalink
Merge pull request #596 from grycap/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
micafer authored Apr 27, 2018
2 parents 10217ab + ebf723e commit 2496f14
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 5 deletions.
37 changes: 36 additions & 1 deletion changelog
Original file line number Diff line number Diff line change
Expand Up @@ -368,4 +368,39 @@ IM 1.6.6
* Improve error message in ONE conn in case net without leases.
* Fix error using disks.free_size in connectors.
* Add retries in Azure RG deletion.
* Avoid raising error in case that one auth line does not have the type field.
* Avoid raising error in case that one auth line does not have the type field.

IM 1.6.7:
* Fix error with the update of pyOpenSSL package causes Ansible error.
* Fix error contextualizing docker containers.
* Improves performance deleting an infra when configuring it.
* Fix error in EC2 conn getting security groups in case of VPC usage.
* Improve AlterVM function to allow receive complete RADL.
* Add --version option in im_service.py.
* Fix error reconfiguring nodes in case of addition of nodes.
* Avoid "Failed to lock apt for exclusive operation" in contextualization.

IM 1.7.0:
* Return correct URL path when IM is behind a nginx proxy (or similiar)
* Fix error in case of Max contextualization time passed the nodes are maintained in running state.
* Add availability_zone field in OpenStack conn.
* Fix error showing error messages with special characters.
* Fix error in occi connector in case of setting and slash at the end of the host URL.
* Move FogBow connector to requests library
* Enable to reference an existing volume in OCCI conn
* Fix error Resources in Azure are not properly deleted and IM returns "successfully destroyed"
* Fix error GCE conn assing public IPs to all VMs.
* Fix error using vault recipe options with ubuntu 2.4
* Fix than user/pass credentials can access OpenID infras
* Enable to create an infrastructure async
* Return IM list in correct order (by creation)
* Add TOSCA support por managing node Endpoints
* Fix error processing TOSCA node artifacts as lists
* Improve VM launch paralelism
* Add VM creation retry in conns
* Change the behaviour en case of VM launch failure.
* Add TOSCA support for REST AlterVM function
* Add TOSCA support from INDIGO fork
* Change in the DB schema in the case of MySQL DB. This command must be made
in the current DB:
ALTER TABLE `inf_list` ADD COLUMN `rowid` INT AUTO_INCREMENT UNIQUE FIRST;
26 changes: 22 additions & 4 deletions doc/source/REST.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Next tables summaries the resources and the HTTP methods available.
| **GET** | | **List** the infrastructure IDs. | | **List** the virtual machines | | **Get** information associated to the |
| | | | in the infrastructure ``infId`` | | virtual machine ``vmId`` in ``infId``. |
+-------------+------------------------------------+------------------------------------+-------------------------------------------+
| **POST** | | **Create** a new infrastructure | | **Create** a new virtual machine | |
| | | based on the RADL posted | | based on the RADL posted. | |
| **POST** | | **Create** a new infrastructure | | **Create** a new virtual machine | | **Alter** VM properties based on |
| | | based on the RADL posted | | based on the RADL posted. | | then RADL posted |
+-------------+------------------------------------+------------------------------------+-------------------------------------------+
| **PUT** | | | | **Modify** the virtual machine based on |
| | | | | the RADL posted. |
Expand Down Expand Up @@ -233,9 +233,27 @@ GET ``http://imserver.com/infrastructures/<infId>/vms/<vmId>``
The result is JSON format has the following format::
{
["radl"|"state"|"contmsg"]: "<property_value>"
"radl": "<radl_in_json>"
}

POST ``http://imserver.com/infrastructures/<infId>/vms/<vmId>``
:body: ``RADL document``
:body Content-type: text/plain or application/json
:Response Content-type: text/plain or application/json
:ok response: 200 OK
:fail response: 401, 403, 404, 400, 415

Change the features of the virtual machine with ID ``vmId`` in the
infrastructure with with ID ``infId``, specified by the RADL ``radl``.
Return then information about the nodified virtual machine. The returned string is in RADL format,
either in plain RADL or in JSON formats.
See more the details of the output in :ref:`GetVMInfo <GetVMInfo-xmlrpc>`.
The result is JSON format has the following format::
{
"radl": "<radl_in_json>"
}

GET ``http://imserver.com/infrastructures/<infId>/vms/<vmId>/<property_name>``
:Response Content-type: text/plain or application/json
:ok response: 200 OK
Expand Down

0 comments on commit 2496f14

Please sign in to comment.