文档首页/ 测试计划 CodeArts TestPlan/ API参考/ API/ 接口测试管理/ 查询超时时间显示 - ShowTimeOutView
更新时间:2025-12-27 GMT+08:00
分享

查询超时时间显示 - ShowTimeOutView

功能介绍

根据工程唯一标识查询超时时间显示

调用方法

请参见如何调用API

URI

GET /v1/{project_id}/get_timeOut_view

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

参数解释:

项目UUID,项目唯一标识,固定长度32位字符(字母和数字)。获取方式请参见获取项目ID

约束限制:

不涉及

取值范围:

项目uuid应符合如下规则:长度等于32位,包含大小写字母、数字

默认取值:

不涉及

请求参数

表2 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

参数解释:

用户Token。 通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。

约束限制:

必传。

取值范围:

字符串长度不少于1,不超过10万。

默认取值:

不涉及。

响应参数

状态码:200

表3 响应Body参数

参数

参数类型

描述

code

String

错误码

error

CommonResponseErrorListTimeOutSet object

统一错误返回

reason

String

失败原因

result

Array of TimeOutSet objects

结果

status

String

状态

  • success,请求成功

  • error,请求报错

表4 CommonResponseErrorListTimeOutSet

参数

参数类型

描述

code

String

错误码

detail

Array of TimeOutSet objects

错误信息详情

reason

String

错误原因

表5 TimeOutSet

参数

参数类型

描述

create_time

String

创建时间

create_time_stamp

Long

创建时间戳

create_time_string

String

创建时间字符串

create_user

String

创建人

dns_mapping

String

dns映射

id

String

唯一标识

project_id

String

工程唯一标识

region

String

区域名称

time_out

String

超时时间

update_time

String

更新时间

update_time_stamp

Long

更新时间戳

update_time_string

String

更新时间字符串

update_user

String

更新人

状态码:401

表6 响应Body参数

参数

参数类型

描述

error_code

String

参数解释

接口调用失败错误码

取值范围

12-18个字符组成的字符串

error_msg

String

参数解释

接口调用失败错误信息

取值范围

3-1000个字符组成的字符串

状态码:403

表7 响应Body参数

参数

参数类型

描述

error_code

String

参数解释

接口调用失败错误码

取值范围

12-18个字符组成的字符串

error_msg

String

参数解释

接口调用失败错误信息

取值范围

3-1000个字符组成的字符串

状态码:404

表8 响应Body参数

参数

参数类型

描述

error_code

String

参数解释

接口调用失败错误码

取值范围

12-18个字符组成的字符串

error_msg

String

参数解释

接口调用失败错误信息

取值范围

3-1000个字符组成的字符串

请求示例

get https://{endpoint}/v1/4eca20ea00794820b50be8e57a39579c/get_timeOut_view

响应示例

状态码:200

OK

{
  "status" : "success",
  "result" : [ {
    "id" : "b61f9b3af8234a06af66307d6cd1c9a6",
    "region" : "{region}",
    "create_time_string" : "2025-06-12 19:50:36 GMT+08:00",
    "update_time_string" : "2025-06-12 19:50:36 GMT+08:00",
    "create_time_stamp" : 1749729036000,
    "update_time_stamp" : 1749729036000,
    "create_user" : "CloudTest-0704",
    "create_time" : "2025-06-12T07:50:36+0800",
    "update_user" : "CloudTest-0704",
    "update_time" : "2025-06-12T07:50:36+0800",
    "project_id" : "76cb7344ca754743831634eb1fbc7f2a",
    "time_out" : "10000",
    "dns_mapping" : null
  } ],
  "reason" : null,
  "error" : null,
  "code" : null
}

状态码

状态码

描述

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

错误码

请参见错误码

相关文档