integer/array action.get(object parameters)
????? ?????? ????? ?????? ??? ???????? ???????.
???? ?? ????? ???????? ??? ???. ?????? ??? ????? ?? ????? ???? ???? ??????? ????? ??????. ??? ????? ??????? ????? ????.
(object)
??????? ???????? ?? ???? ?????.
????? ????? ???????? ?????.
????? | ??? | ????? |
---|---|---|
actionids | string/array | ???? ?? ?????? ?? ?????? ???????. |
groupids | string/array | ???? ?? ?????? ???????? ??????? ??????? ??????? ????? ?????. |
hostids | string/array | ???? ?? ?????? ???????? ??????? ??????? ????? ?????. |
triggerids | string/array | ???? ?? ?????? ???????? ???????? ??????? ????? ?????. |
mediatypeids | string/array | ???? ?? ?????? ???????? ????? ????? ??????? ?????? ??????. |
usrgrpids | string/array | ???? ?? ?????? ???????? ????? ?????? ??????? ???????? ???????. |
userids | string/array | ???? ?? ?????? ???????? ????? ?????? ???????? ???????. |
scriptids | string/array | ???? ?? ?????? ???????? ????? ?? ????????? ???????. |
selectFilter | query | ???? ?????? filter ?? ???? ???? ??????. |
selectOperations | query | ???? ?????? operations ?? ?????? ?????. |
selectRecoveryOperations | query | ???? ?????? recovery_operations ?? ?????? ????? ?????. |
selectUpdateOperations | query | ???? ?????? update_operations ?? ?????? ????? ?????. |
sortfield | string/array | ???? ?? ?????? ??? ????????? ???????. ????? ??????? ??: actionid , name ?status . |
countOutput | boolean | ???????? ???? ??????? ??? ????? ?-'get' ??????? ?????? ?????????. |
????? | ???????? | |
excludeSearch | ?????? | |
filter | object | |
limit | ???? ??? | |
??? | ?????? | |
preservekeys | ?????? | |
????? | ??????? | |
searchByAny | boolean | |
searchWildcardsEnabled | boolean | |
sortorder | ??????/???? | |
startSearch | boolean |
(integer/array)
?????? ?? ??? ????:
countOutput
.???? ?? ?? ?????? ???? ???????? ??? ?? ???? ?????? ???????.
?????????:
{
"jsonrpc": "2.0",
"method": "action.get",
"params": {
"output": "??????",
"selectOperations": "??????",
"selectRecoveryOperations": "??????",
"selectUpdateOperations": "??????",
"selectFilter": "??????",
"????": {
"???? ???????": 0
}
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"????": 1
}
????????:
{
"jsonrpc": "2.0",
"?????": [
{
"actionid": "3",
"name": "???? ?? ????? ?????? Áú»¢¶Ä²©",
"eventsource": "0",
"status": "1",
"esc_period": "??? ???",
"pause_suppressed": "1",
"????": {
"evaltype": "0",
"?????": "",
"?????": [],
"eval_formula": ""
},
"??????": [
{
"operationid": "3",
"actionid": "3",
"operationtype": "0",
"esc_period": "0",
"esc_step_from": "1",
"esc_step_to": "1",
"evaltype": "0",
"opconditions": [],
"opmessage": [
{
"default_msg": "1",
"????": "",
"?????": "",
"mediatypeid" => "0"
}
],
"opmessage_grp": [
{
"usrgrpid": "7"
}
]
}
],
"??????_?????": [
{
"operationid": "7",
"actionid": "3",
"operationtype": "11",
"evaltype": "0",
"opconditions": [],
"opmessage": {
"default_msg": "0",
"subject": "{TRIGGER.STATUS}: {TRIGGER.NAME}",
"message": "?????: {TRIGGER.NAME}\r\n????? ?????: {TRIGGER.STATUS}\r\n????? ??????: {TRIGGER.SEVERITY}\r\n????? ???? ?? ?????: {TRIGGER.URL}\r\n\ r\n???? ????:\r\n\r\n1. {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}\r\n2. {ITEM.NAME2} ({ HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2}\r\n3. {ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}\r\n \r\n???? ????? ?????: {EVENT.ID}",
"mediatypeid": "0"
}
}
],
"?????_??????": [
{
"operationid": "31",
"operationtype": "12",
"evaltype": "0",
"opmessage": {
"default_msg": "1",
"????": "",
"?????": "",
"mediatypeid": "0"
}
},
{
"operationid": "32",
"operationtype": "0",
"evaltype": "0",
"opmessage": {
"default_msg": "0",
"subject": "?????: {TRIGGER.NAME}",
"message": "{USER.FULLNAME} ????? ???? ?-{EVENT.UPDATE.DATE} {EVENT.UPDATE.TIME} ?? ?????? ????:\r\n{EVENT.UPDATE.MESSAGE}\r\n\r\ n????? ????? ??????? ??? {EVENT.STATUS}",
"mediatypeid": "1"
},
"opmessage_grp": [
{
"usrgrpid": "7"
}
],
"opmessage_usr": []
},
{
"operationid": "33",
"operationtype": "1",
"evaltype": "0",
"opcommand": {
"scriptid": "3"
},
"opcommand_hst": [
{
"hostid": "10084"
}
],
"opcommand_grp": []
}
]
}
],
"????": 1
}
???? ?? ?? ?????? ?????? ???????? ??? ?? ?????? ????? ???????. ????? ????? ???? ?????? "?", ?? ??????? '?????' ??? ?-'eval_formula' ???? ????? ???????.
?????????:
{
"jsonrpc": "2.0",
"method": "action.get",
"params": {
"output": "??????",
"selectOperations": "??????",
"selectFilter": "??????",
"????": {
"???? ???????": 1
}
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"????": 1
}
????????:
{
"jsonrpc": "2.0",
"?????": [
{
"actionid": "2",
"name": "????? ???????. ???? ??????.",
"eventsource": "1",
"status": "1",
"esc_period": "0s",
"pause_suppressed": "1",
"????": {
"evaltype": "0",
"?????": "",
"?????": [
{
"conditiontype": "10",
"?????": "0",
"value": "0",
"value2": "",
"formulaid": "B"
},
{
"conditiontype": "8",
"?????": "0",
"value": "9",
"value2": "",
"formulaid": "C"
},
{
"conditiontype": "12",
"?????": "2",
"value": "??????",
"value2": "",
"formulaid": "?"
}
],
"eval_formula": "A ?-B ?-C"
},
"??????": [
{
"operationid": "1",
"actionid": "2",
"operationtype": "6",
"esc_period": "0s",
"esc_step_from": "1",
"esc_step_to": "1",
"evaltype": "0",
"opconditions": [],
"optemplate": [
{
"templateid": "10001"
}
]
},
{
"operationid": "2",
"actionid": "2",
"operationtype": "4",
"esc_period": "0s",
"esc_step_from": "1",
"esc_step_to": "1",
"evaltype": "0",
"opconditions": [],
"opgroup": [
{
"groupid": "2"
}
]
}
]
}
],
"????": 1
}
CAction::get()? ???? ui/include/classes/api/services/CAction.php.