文档首页/ 测试计划 CodeArts TestPlan/ API参考/ API/ banner信息管理/ 查询domain信息,包括老套餐信息,试用期信息,租户prefix为空的租户(支持机机账号) - ShowDomainDetailInfo
更新时间:2025-12-27 GMT+08:00
分享

查询domain信息,包括老套餐信息,试用期信息,租户prefix为空的租户(支持机机账号) - ShowDomainDetailInfo

功能介绍

查询domain信息,包括老套餐信息,试用期信息,租户prefix为空的租户(支持机机账号)

调用方法

请参见如何调用API

URI

GET /v4/domain/detail-info

表1 Query参数

参数

是否必选

参数类型

描述

domain_id

String

租户id

region

String

逻辑region

order_query_type

String

查询domain的方式,默认不传查询老套餐domain。codearts.testplan.china:查询单飞套餐。mix:合并查询单飞套餐和老套餐domain,根据套餐最新更新时间选择返回套餐。如单飞套餐是最新购买的,则会返回单飞套餐

请求参数

响应参数

状态码:200

表2 响应Body参数

参数

参数类型

描述

value

DomainDetailInfoVo object

请求返回的数据

表3 DomainDetailInfoVo

参数

参数类型

描述

region

String

逻辑Region

status

String

参数解释:

订单状态。

取值范围:

  • normal,正常。

  • freeze,冻结。

  • close,关闭。

packageType

String

参数解释:

订单类型。

取值范围:

  • basic,基础版。

  • professional,专业版。

  • platinum,铂金版。

prefix

String

套餐类型前缀

expired

Boolean

是否试用期过期

domain_id

String

租户id

package_number

Integer

订单限定的人头数

high_package_type

String

使用过的最高套餐

trial_start_time_stamp

Long

试用开通时间(时间戳格式)

trial_period

Integer

试用天数

update_time_stamp

Long

更新时间戳

状态码:400

表4 响应Body参数

参数

参数类型

描述

error_code

String

参数解释:

接口调用失败错误码

取值范围:

不涉及

error_msg

String

参数解释:

接口调用失败错误信息

取值范围:

不涉及

状态码:401

表5 响应Body参数

参数

参数类型

描述

error_code

String

参数解释:

接口调用失败错误码

取值范围:

不涉及

error_msg

String

参数解释:

接口调用失败错误信息

取值范围:

不涉及

状态码:404

表6 响应Body参数

参数

参数类型

描述

error_code

String

参数解释:

接口调用失败错误码

取值范围:

不涉及

error_msg

String

参数解释:

接口调用失败错误信息

取值范围:

不涉及

状态码:500

表7 响应Body参数

参数

参数类型

描述

error_code

String

参数解释:

接口调用失败错误码

取值范围:

不涉及

error_msg

String

参数解释:

接口调用失败错误信息

取值范围:

不涉及

请求示例

get https://{endpoint}/v4/domain/detail-info

响应示例

状态码:200

OK

{
  "value" : {
    "domain_id" : "9691708ef57b4d26b3357aa0660a5dbb",
    "package_number" : 0,
    "expired" : false,
    "region" : "region-1",
    "status" : "normal"
  }
}

状态码

状态码

描述

200

OK

400

Bad Request

401

Unauthorized

404

Not Found

500

Internal Server Error

错误码

请参见错误码

相关文档