2022 Zabbix中国峰会
2022 Zabbix中国峰会

httptest.delete

说明

object httptest.delete(array webScenarioIds)

此方法允许删除Web场景。

Description

object httptest.delete(array webScenarioIds)

This method allows to delete web scenarios.

参数

(array) 要删除的网络场景的ID。

Parameters

(array) IDs of the web scenarios to delete.

返回值

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

Return values

(object) Returns an object containing the IDs of the deleted web scenarios under the httptestids property.

示例

删除多个Web场景

删除2个Web场景

Examples

Deleting multiple web scenarios

Delete two web scenarios.

Request:

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

Response:

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

来源

Source

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