Actions

Get action

root@samsung:~# http http://10.10.10.23:9753/api/action/1 'Authorization:  Token 4a675ee72d44830ce5a077127cdd3a0d90318b46'
HTTP/1.0 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Date: Tue, 13 Jan 2015 21:28:53 GMT
Server: WSGIServer/0.1 Python/2.7.6
Vary: Accept

[
    {
        "command": "reactor.commit_action",
        "description": "Long description for this action",
        "id": "1",
        "name": "Turn light 4 on in the kitchen",
        "options": {
            "args": {
                "device": {
                    "device": "sispm",
                    "os_family": "Arch",
                    "port": 0,
                    "socket": 4
                },
                "value": 0
            },
            "queue": "reactor"
        },
        "short_name": "Light in kitchen"
    }
]

List

root@samsung:~# http http://10.10.10.23:9753/api/action/list 'Authorization:  Token 4a675ee72d44830ce5a077127cdd3a0d90318b46'
HTTP/1.0 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Date: Tue, 13 Jan 2015 21:33:38 GMT
Server: WSGIServer/0.1 Python/2.7.6
Vary: Accept


    [
        {
            "command": "reactor.commit_action",
            "description": "Long description for this action",
            "id": "1",
            "name": "Turn light 4 on in the kitchen",
            "options": {
                "args": {
                    "device": {
                        "device": "sispm",
                        "os_family": "Arch",
                        "port": 0,
                        "socket": 4
                    },
                    "value": 0
                },
                "queue": "reactor"
            },
            "short_name": "Light in kitchen"
        }
    ]

Do

root@samsung:~# http http://10.10.10.23:9753/api/action/list 'Authorization:  Token 4a675ee72d44830ce5a077127cdd3a0d90318b46'
HTTP/1.0 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Date: Tue, 13 Jan 2015 21:33:38 GMT
Server: WSGIServer/0.1 Python/2.7.6
Vary: Accept


    [
        {
            "command": "reactor.commit_action",
            "description": "Long description for this action",
            "id": "1",
            "name": "Turn light 4 on in the kitchen",
            "options": {
                "args": {
                    "device": {
                        "device": "sispm",
                        "os_family": "Arch",
                        "port": 0,
                        "socket": 4
                    },
                    "value": 0
                },
                "queue": "reactor"
            },
            "short_name": "Light in kitchen"
        }
    ]

Table Of Contents

This Page