Sidebar

Zabbix Summit 2022
Register for Zabbix Summit 2022

删除

说明

object httptest.delete(array webScenarioIds)

此方法允许删除Web场景。

参数

(array) 要删除的Web场景的ID。

返回值

(object) 返回包含httptestids属性下删除的Web方案的ID的对象。

示例

删除多个Web场景

删除2个Web场景

Request:

{
           "jsonrpc": "2.0",
           "method": "httptest.delete",
           "params": [
               "2",
               "3"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "httptestids": [
                   "2",
                   "3"
               ]
           },
           "id": 1
       }

来源

CHttpTest::delete() in frontends/php/include/classes/api/services/CHttpTest.php.