我想使用phantom rest api在splunk phantom中创建容器。我使用的是splunk幻影社区版。这是我使用PythonPost方法传递的主体
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创建容器(当post调用时,我得到http状态代码400)。任何帮助都将不胜感激
目前没有回答
相关问题 更多 >
编程相关推荐