Áú»¢¶Ä²©

This is the documentation page for an unsupported version of Áú»¢¶Ä²©.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

action.create

?????

object action.create(object/array actions)

????? ?? ?????? ????? ?????? ?????.

????? ?? ????? ?? ????? ???????? ?????? ?????? ??. ???? ????? ?? ?????? ?????? ?????? ??????? ????? ??????. ????? ???? ???? ????? ?? ?????? ???????.

???????

(???????/????) ?????? ??????.

????? ?-??????? ?????? ??????????, ?- ????? ????? ?? ???????? ?????.

????? ??? ?????
filter object Action filter ??????? ???? ??????.
operations ???? ????? ?????? ?????? ???? ??????.
recovery_operations ???? ????? ?????? ????? ?????? ???? ??????.
update_operations ???? ????? ?????? ????? ?????? ???? ??????.

????? ??????

(object) ?????? ???? ????? ?? ??? ?????? ?? ??????? ?????? ??? ??????? actionids. ??? ??? ?????? ??????? ???? ???? ??????? ???????.

???????

??? ????? ?????

??? ????? ????? ?????? ???? ?????? (?? ????? "??????" ????) ?????? "10084" ???? ???? PROBLEM. ?????? ???? 4 ?????? ???????. ?????? ??????? ???????? ???? ????? ??? ???????? ?????? ?????? "7" ??????? ???? ???? "1". ?? ?????? ?? ????? ??? 30 ????, ?????? ?????? ????? ?? script "5" (?????? ?? ???? "????? ?????") ?? ?? ??????? ?????? "2". ?? ?????? ????, ????? ????? ????? ??? ???????? ?????? ?????? ????? ????? ?????. ?? ?????? ??????, ????? ?????/????? ????? (?? ???? ?????? ?????? ?????) ??? ???????? ?????? ?????? ????? ????? ?????.

?????????:

{
            "jsonrpc": "2.0",
            "method": "action.create",
            "params": {
                "name": "????? ?????",
                "???? ???????": 0,
                "esc_period": "30 ?'",
                "????": {
                    "evaltype": 0,
                    "?????": [
                        {
                            "??? ???": 1,
                            "?????": 0,
                            "value": "10084"
                        },
                        {
                            "??? ???": 3,
                            "?????": 2,
                            "value": "??????"
                        }
                    ]
                },
                "??????": [
                    {
                        "??? ?????": 0,
                        "esc_step_from": 1,
                        "esc_step_to": 1,
                        "opmessage_grp": [
                            {
                                "usrgrpid": "7"
                            }
                        ],
                        "opmessage": {
                            "default_msg": 1,
                            "mediatypeid": "1"
                        }
                    },
                    {
                        "??? ?????": 1,
                        "esc_step_from": 2,
                        "esc_step_to": 2,
                        "????? ???????": [
                            {
                                "??? ???": 14,
                                "?????": 0,
                                "value": "0"
                            }
                        ],
                        "opcommand_grp": [
                            {
                                "groupid": "2"
                            }
                        ],
                        "opcommand": {
                            "scriptid": "5"
                        }
                    }
                ],
                "??????_?????": [
                    {
                        "operationtype": "11",
                        "opmessage": {
                            "default_msg": 1
                        }
                    }
                ],
                "?????_??????": [
                    {
                        "operationtype": "12",
                        "opmessage": {
                            "default_msg": 0,
                            "message": "??? ????? ????? ????? ????? ?????",
                            "subject": "???? ????? ????? ????? ????? ?????"
                        }
                    }
                ]
            },
            "auth": "038e1d7b1735c6a5436ee9eae095879e",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": {
                "actionids": [
                    "17"
                ]
            },
            "????": 1
       }

??? ????? ?????

??? ????? ????? ????? ?????? ?????? ?????? "10001".

?????????:

{
            "jsonrpc": "2.0",
            "method": "action.create",
            "params": {
                "name": "????? ?????",
                "???? ???????": 1,
                "????": {
                    "evaltype": 0,
                    "?????": [
                        {
                            "??? ???": 21,
                            "?????": 0,
                            "value": "1"
                        },
                        {
                            "??? ???": 10,
                            "?????": 0,
                            "value": "2"
                        }
                    ]
                },
                "??????": [
                    {
                        "??? ?????": 6,
                        "optemplate": [
                            {
                                "templateid": "10001"
                            }
                        ]
                    }
                ]
            },
            "auth": "038e1d7b1735c6a5436ee9eae095879e",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": {
                "actionids": [
                    "18"
                ]
            },
            "????": 1
       }

????? ????? ??????? ????? ?????

??? ????? ????? ??????? ?????? ????? ????? - "A ?-(B ?? C)" - ?????? ???? ??????. ???? ?????? ?? ????? ????? ?? ???? ?"?????" ?????? "10084" ?? ???? "10106" ???? ???? PROBLEM, ?????? ???? ????? ??? ???????? ?????? ???????? "7" ??????? ???? ???? "1". ???? ?????? "A", "B" ?-"C" ????? ????? ???????.

?????????:

{
            "jsonrpc": "2.0",
            "method": "action.create",
            "params": {
                "name": "????? ?????",
                "???? ???????": 0,
                "esc_period": "15 ?'",
                "????": {
                    "evaltype": 3,
                    "formula": "A ?-(B ?? C)",
                    "?????": [
                        {
                            "??? ???": 4,
                            "?????": 5,
                            "value": "2",
                            "formulaid": "?"
                        },
                        {
                            "??? ???": 1,
                            "?????": 0,
                            "value": "10084",
                            "formulaid": "B"
                        },
                        {
                            "??? ???": 1,
                            "?????": 0,
                            "value": "10106",
                            "formulaid": "C"
                        }
                    ]
                },
                "??????": [
                    {
                        "??? ?????": 0,
                        "esc_step_from": 1,
                        "esc_step_to": 1,
                        "opmessage_grp": [
                            {
                                "usrgrpid": "7"
                            }
                        ],
                        "opmessage": {
                            "default_msg": 1,
                            "mediatypeid": "1"
                        }
                    }
                ]
            },
            "auth": "038e1d7b1735c6a5436ee9eae095879e",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": {
                "actionids": [
                    "18"
                ]
            },
            "????": 1
       }

??? ??? ????? ??????? ?? ????

??? ????? ????? ??????? ??????? ???? ?????? ????? "2" ???? ?? ????? ???? "SRV" ?? ??? ?????? ?????? "AlmaLinux".

?????????:

{
            "jsonrpc": "2.0",
            "method": "action.create",
            "params": {
                "name": "???? ???? ??????",
                "eventsource": "2",
                "????": {
                    "evaltype": "2",
                    "?????": [
                        {
                            "conditiontype": "22",
                            "?????": "2",
                            "value": "SRV"
                        },
                        {
                            "conditiontype": "24",
                            "?????": "2",
                            "value": "AlmaLinux"
                        }
                    ]
                },
                "??????": [
                    {
                        "operationtype": "4",
                        "opgroup": [
                            {
                                "groupid": "2"
                            }
                        ]
                    }
                ]
            },
            "auth": "038e1d7b1735c6a5436ee9eae095879e",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": {
                "actionids": [
                    19
                ]
            },
            "????": 1
       }

??? ??

????

CAction::create()? ???? ui/include/classes/api/services/CAction.php.