Skip to content

di-unipi-socc/trans-cloud-model-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

management-analyser-ws

A REST API for analysing and planning the management of TOSCA YAML apps, based on management protocols

Running the management analyser

After cloning the repository of the management analyser, please move to the corresponding folder and issue the following commands:

  • mvn clean install (to build the service)
  • java -jar target\management-analyser-ws-0.1.jar server config.yml (to run the service)

Using the management analyser

Once the management analyser is running, it can be used as follows.

Adding a new application

An application app can be added to those managed by the management analyser by issuing

  • a POST request to the {host}/mm endpoint,
  • whose body is the TOSCA yaml specification of app (see POST-body for a concrete example).

IMPORTANT: The current version of the management analyser requires that each requirement of each node in a POSTed application must indicate both the node and the capability satisfying such requirement (please see the corresponding issue).

Setting the current and target state of an application

The current and target state of an application app previously added to the management analyser can be updated by issuing

  • a PUT request to the {host}/mm/app endpoint,
  • whose body is a JSON object specifying the current and/or target state of each node forming app (see PUT-body for a concrete example).

Retrieving plans

Once the current and target state of an application app have been set, the management analyser permits retrieving the sequence of operations allowing app to move from the current state to the target one. Such a sequence can be retrieved by issuing

  • a GET request to the {host}/mm/app/plan endpoint.

The body of the reply of such requests will be as that in GET-plan-reply

Retrieving parallelly executable steps

To retrieve a set of operations to be executed in parallel on app to update the current state to a state closer to the target state, please issue

  • a GET request to the {host}/mm/app/psteps endpoint.

The body of the reply of such requests will be as that in GET-psteps-reply

About

A REST API for analysing and planning the management of TOSCA YAML apps, based on management protocols

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages