Manager API

class cloudify_rest_client.manager.ManagerClient(api)[source]

Bases: object

get_status()[source]
Returns:Cloudify’s management machine status.
get_version()[source]
Returns:Cloudify’s management machine version information.
ssl_status()[source]

Get manager’s ssl state (enabled/disabled)

set_ssl(state)[source]

Set manager’s ssl to state (true/false)

get_context(_include=None)[source]

Gets the context which was stored on management machine bootstrap. The context contains Cloudify specific information and Cloud provider specific information.

Parameters:_include – List of fields to include in response.
Returns:Context stored in manager.
create_context(name, context)[source]

Creates context in Cloudify’s management machine. This method is usually invoked right after management machine bootstrap with relevant Cloudify and cloud provider context information.

Parameters:
  • name – Cloud provider name.
  • context – Context as dict.
Returns:

Create context result.

update_context(name, context)[source]

Updates context in Cloudify’s management machine. The context is imperative for the manager to function properly, only use this method if you know exactly what you are doing. Note that if the provider context does not exist, this call will result with an error.

Parameters:
  • name – Cloud provider name.
  • context – Context as dict.