wiki:cmd-ctrld

1. Introduction

cmdctl module is the configuration entry point for all the commands from bindctl or some other web tools client of bind10. When command client connects with cmdctl, it should first login. The messages between cmdctl and command client are protected with SSL.

when cmdctl starts up, it will collect command specifications and configuration specifications/data of other available modules from configmanager. When getting the request/command from client, cmdctl will respond directly or resend the request/command to proper modules, then send back result to client.

2. RESTful API for cmdctl

cmdctl is designed as one HTTPS server, any configurable item of one module is treated as the resource with one URL. Both the post body data and reply of command are in JSON format.

Currently Implemented (rcode to add)

GET:

/command_spec

Get all modules' command specification

/config_data

Get all module's configuration data

/config_spec

Get all module's configuration specication

POST:

/module_name/command_name

Send the command to specified module, the parameters of command is sent with body data.

/login

Login, the format of body data should be : {'username' : value, 'password' : value}

Last modified 8 years ago Last modified on Mar 10, 2010, 6:12:09 AM