Ad Widget

Collapse

create.host error -32602

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Troy_Boyd
    Junior Member
    • Aug 2021
    • 6

    #1

    create.host error -32602

    I sending the following to the API and receiving this error:

    ending: {
    "jsonrpc": "2.0",
    "method": "host.create",
    "params": {
    "host": "vwim-070-155-5-ctl2",
    "interfaces": [
    {
    "type": 2,
    "main": 1,
    "useip": 1,
    "ip": "10.15.70.24",
    "dns": "",
    "port": "161",
    "details": {
    "version": 2,
    "bulk": 0
    }
    }
    ],
    "groups": [
    {
    "groupid": 28
    }
    ]
    },
    "id": 4,
    "auth": "9e104b609576738fd5dc4c4e941c072d"
    }
    Response Code: 200
    Response Body: {
    "jsonrpc": "2.0",
    "error": {
    "code": -32602,
    "message": "Invalid params.",
    "data": "Incorrect arguments passed to function."
    },
    "id": 4
    }
Working...