Ad Widget

Collapse

[RC1] Action.create issue with groupid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kodokuu
    Junior Member
    • Feb 2016
    • 1

    #1

    [RC1] Action.create issue with groupid

    Hi,

    I have issue when I try to create an action :

    ACTION.CREATE

    {
    "params":{
    "status":0,
    "filter":{
    "evaltype":0,
    "conditions":[
    {
    "operator":"2",
    "conditiontype":"24",
    "value":"gte_myin"
    }
    ]
    },
    "def_shortdata":"Auto registration: {HOST.HOST}",
    "eventsource":2,
    "name":"add gte_myin",
    "operations":[
    {
    "opgroup":{
    "groupid": "52"
    },
    "operationtype":4
    }
    ],
    "esc_period":60,
    "def_longdata":"Host name: {HOST.HOST}\\r\\nHost IP: {HOST.IP}\\r\\nAgent port: {HOST.PORT}"
    },
    "jsonrpc":"2.0",
    "method":"action.create",
    "auth":"8782668d6d8e82ff61b0494255fa4da4",
    "id":5
    }

    =====> ACTION.GET

    {
    "actionid":"38",
    "name":"add gte_myin",
    "eventsource":"2",
    "status":"0",
    "esc_period":"60",
    "def_shortdata":"Auto registration: {HOST.HOST}",
    "def_longdata":"Host name: {HOST.HOST}\r\nHost IP: {HOST.IP}\r\nAgent port: {HOST.PORT}",
    "recovery_msg":"0",
    "r_shortdata":"",
    "r_longdata":"",
    "operations":{
    "operationid":"39",
    "actionid":"38",
    "operationtype":"4",
    "esc_period":"0",
    "esc_step_from":"1",
    "esc_step_to":"1",
    "evaltype":"0",
    "opconditions":
    "opgroup":{
    "operationid":"39",
    "groupid":"5" <============ WHY ???????
    }
    }
    }

    You can see my groupid is not good.
Working...