该方法允许根据给定的参数检索Web场景。

    参数

    (object) 定义所需输出的参数。

    该方法支持以下参数。

    • 一组对象;

    • 如果已经使用“countOutput”参数,则检索到的对象的计数。

    示例

    检索网络场景

    Retrieve all data about web scenario “4”.

    Response:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": [
    4. {
    5. "httptestid": "9",
    6. "name": "Homepage check",
    7. "applicationid": "0",
    8. "nextcheck": "0",
    9. "delay": "1m",
    10. "status": "0",
    11. "variables": "",
    12. "agent": "Zabbix",
    13. "authentication": "0",
    14. "http_user": "",
    15. "hostid": "10084",
    16. "templateid": "0",
    17. "http_proxy": "",
    18. "retries": "1",
    19. "ssl_cert_file": "",
    20. "ssl_key_file": "",
    21. "ssl_key_password": "",
    22. "verify_peer": "0",
    23. "verify_host": "0",
    24. "headers": "",
    25. "steps": [
    26. {
    27. "httpstepid": "36",
    28. "httptestid": "9",
    29. "name": "Homepage",
    30. "no": "1",
    31. "url": "http://mycompany.com",
    32. "timeout": "15",
    33. "posts": "",
    34. "required": "",
    35. "status_codes": "200",
    36. "variables": "",
    37. "follow_redirects": "1",
    38. "headers": ""
    39. },
    40. {
    41. "httpstepid": "37",
    42. "httptestid": "9",
    43. "name": "Homepage / About",
    44. "no": "2",
    45. "url": "http://mycompany.com/about",
    46. "timeout": "15",
    47. "posts": "",
    48. "required": "",
    49. "status_codes": "200",
    50. "variables": "",
    51. "follow_redirects": "1",
    52. "retrieve_mode": "0",
    53. "headers": ""
    54. }
    55. ]
    56. }
    57. ],
    58. "id": 1
    59. }

    来源