该方法允许根据给定的参数检索Web场景。
参数
(object)
定义所需输出的参数。
该方法支持以下参数。
一组对象;
如果已经使用“countOutput”参数,则检索到的对象的计数。
示例
检索网络场景
Retrieve all data about web scenario “4”.
Response:
- {
- "jsonrpc": "2.0",
- "result": [
- {
- "httptestid": "9",
- "name": "Homepage check",
- "applicationid": "0",
- "nextcheck": "0",
- "delay": "1m",
- "status": "0",
- "variables": "",
- "agent": "Zabbix",
- "authentication": "0",
- "http_user": "",
- "hostid": "10084",
- "templateid": "0",
- "http_proxy": "",
- "retries": "1",
- "ssl_cert_file": "",
- "ssl_key_file": "",
- "ssl_key_password": "",
- "verify_peer": "0",
- "verify_host": "0",
- "headers": "",
- "steps": [
- {
- "httpstepid": "36",
- "httptestid": "9",
- "name": "Homepage",
- "no": "1",
- "url": "http://mycompany.com",
- "timeout": "15",
- "posts": "",
- "required": "",
- "status_codes": "200",
- "variables": "",
- "follow_redirects": "1",
- "headers": ""
- },
- {
- "httpstepid": "37",
- "httptestid": "9",
- "name": "Homepage / About",
- "no": "2",
- "url": "http://mycompany.com/about",
- "timeout": "15",
- "posts": "",
- "required": "",
- "status_codes": "200",
- "variables": "",
- "follow_redirects": "1",
- "retrieve_mode": "0",
- "headers": ""
- }
- ]
- }
- ],
- "id": 1
- }