# Get

## Function

This API is used to get parameter for Event Settings(cloud dedicated) > Alarm Linkage.

## Request Message

See Event Settings(cloud dedicated) > Alarm Linkage > Range > Parameter Description > Table 1 for parameter description.

Sampel：

    POST /API/Event/AlarmLinkage/Get HTTP/1.1

    {
        "version": "1.0",
        "data": {
            "channel": "CH1",
            "ability": "FaceDetection",
            "oper_type": "get_default_data"
        }
    }

## Response Message

See Event Settings(cloud dedicated) > Alarm Linkage > Range > Parameter Description > Table 2 for parameter description.

Sampel：

    HTTP/1.1 200 OK
    Content-Type: application/json

    {
        "result": "success",
        "data": {"channel_info": {"CH1": {
            "post_recording": "5",
            "record_enable": true,
            "alarm_out": [],
            "latch_time": "5",
            "io_output": false,
            "send_email": false,
            "send_email_btns": [
                {
                    "title": "Email Configuration",
                    "page": "net_email"
                },
                {
                    "title": "Email Schedule",
                    "page": "schedules_email_cloud"
                }
            ],
            "ftp_picture_upload": false,
            "ftp_video_upload": false,
            "siren": false,
            "siren_btns": [{
                "title": "Siren",
                "page": "chn_siren_cloud"
            }],
            "deterrence_btns": [{
                "title": "FloodLight",
                "page": "chn_floodlight"
            }],
            "deterrence": false,
            "ptz_linkage": false,
            "ptz_linkage_settings": {
                "ptz_linkage_data": [
                    "CH8=None=preset_dwell_time5=num1-1-1"
                ]
            }
        }}}
    }

## Error Code

See Response Messages Body and Common error_code for more information.