【发布时间】:2020-06-09 09:46:09
【问题描述】:
我想使用 phantom rest api 在 splunk phantom 中创建容器。我正在使用 splunk phantom 社区版。这是我使用 python post 方法传递的主体
payload={
"description": "this is Useful description of this container.",
"label":"events",
"name":"xOkta event 110",
"sensitivity": "red",
"severity":"medium",
"source_data_identifier": "4",
"status": "new",
"container_type": "default",
"run_automation": "False",
"due_time": "2020-06-10T19:29:23.759Z",
}
这是代码:
requests.post(url, auth=(username, password),json=payload, verify=False)
GET 方法有效。我只是无法使用 phantom rest api 创建容器(调用后我收到 http 状态代码 400)。任何帮助将不胜感激。
【问题讨论】: