性能测试 CODEARTS PERFTEST-查询事务:请求示例

时间:2024-04-10 11:26:42

请求示例

查询事务的详情信息,事务的id是1。

/v1/{project_id}/templates/1

{
  "code" : "SV CS TG.CPTS.0000000",
  "message" : "success",
  "temp_info" : {
    "id" : 155175,
    "project_id" : 403931,
    "name" : "test",
    "description" : "",
    "variables" : null,
    "contents" : [ {
      "content_id" : 155175,
      "content" : [ {
        "content_type" : 2,
        "content" : {
          "_adressValue" : "http://1.1.1.1",
          "body_type" : 0,
          "bodys" : [ ],
          "check_end_length" : null,
          "check_end_str" : null,
          "check_end_type" : null,
          "connect_timeout" : 5000,
          "connect_type" : 1,
          "headers" : [ {
            "key" : "Content-Type",
            "value" : "application/json"
          } ],
          "http_version" : "HTTP/1.1",
          "method" : "GET",
          "name" : "Msg-8015",
          "protocol_type" : 1,
          "return_timeout" : 5000,
          "return_timeout_param" : null,
          "url" : "http://1.1.1.1"
        }
      } ],
      "index" : -1,
      "selected_temp_name" : "",
      "data" : null,
      "data_type" : 0,
      "conditions" : null,
      "is_disabled" : false,
      "is_continue" : false
    } ],
    "temp_type" : 0,
    "for_loop_params" : [ ],
    "logic_controller" : {
      "for_loop_params" : null,
      "condition" : null
    },
    "enable_pre" : false
  }
}
support.huaweicloud.com/api-cpts/ShowTemp.html