Fork me on GitHub
Phraseanet Documentation

Databox Status

About

Return available Status on specified databox

/api/v1/databoxes/{databox_id}/status/
Informations  
HTTP Method GET
Requires Authentication Yes

Parameters

Parameters Type Information
databox_id integer The databox id on which the request is done

Response Fields

Field Description
status The list of available status

Response sample

{
    "meta": {
        "api_version": "1.3",
        "request": "GET /api/v1/databoxes/1/status/",
        "response_time": "2012-06-29T16:22:52+02:00",
        "http_code": 200,
        "error_type": null,
        "error_message": null,
        "error_details": null,
        "charset": "UTF-8"
    },
    "response": {
        "status": [
        {
            "bit": 4,
            "label_on": "online_on",
            "label_off": "online_off",
            "img_on": "/custom/status/localhost-3306-db_37-stat_4_1.gif",
            "img_off": "/custom/status/localhost-3306-db_37-stat_4_0.gif",
            "searchable": false,
            "printable": false
        },
        {
            "bit": 5,
            "label_on": "validated_ko",
            "label_off": "validated_ok",
            "img_on": "/custom/status/localhost-3306-db_37-stat_5_1.gif",
            "img_off": "/custom/status/localhost-3306-db_37-stat_5_0.gif",
            "searchable": false,
            "printable": false
        },
        {
            "bit": 6,
            "label_on": "not_sell",
            "label_off": "sell",
            "img_on": "",
            "img_off": "",
            "searchable": false,
            "printable": false
        }
        ]
    }
}