复制组合关键字
功能介绍
复制组合关键字
调用方法
请参见如何调用API。
URI
POST /v3/{project_id}/basic-aw/{aw_id}/copy
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
参数解释 项目UUID,项目唯一标识,固定长度32位字符(字母和数字)。获取方式请参见获取项目唯一标识。 约束限制 不涉及 取值范围 32个字符组成的字符串 默认取值 不涉及 |
aw_id |
是 |
String |
关键字唯一标识 |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
X-Auth-Token |
是 |
String |
参数解释: 用户Token。 通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。 约束限制: 必传。 取值范围: 字符串长度不少于1,不超过10万。 默认取值: 不涉及。 |
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
error |
CommonResponseErrorOfobject object |
统一错误返回 |
reason |
String |
错误原因 |
result |
Object |
结果 |
status |
String |
状态值,如success、error |
状态码:401
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
参数解释 接口调用失败错误码 取值范围 12-18个字符组成的字符串 |
error_msg |
String |
参数解释 接口调用失败错误信息 取值范围 3-1000个字符组成的字符串 |
状态码:403
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
参数解释 接口调用失败错误码 取值范围 12-18个字符组成的字符串 |
error_msg |
String |
参数解释 接口调用失败错误信息 取值范围 3-1000个字符组成的字符串 |
状态码:404
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
参数解释 接口调用失败错误码 取值范围 12-18个字符组成的字符串 |
error_msg |
String |
参数解释 接口调用失败错误信息 取值范围 3-1000个字符组成的字符串 |
状态码:500
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
参数解释 接口调用失败错误码 取值范围 12-18个字符组成的字符串 |
error_msg |
String |
参数解释 接口调用失败错误信息 取值范围 3-1000个字符组成的字符串 |
请求示例
post https://{endpoint}/v3/69384913dbc84a6c93c08a586185f8c9/basic-aw/ddb58d7d16e8496a9fff75e963c8a718/copy
响应示例
状态码:200
SUCCESS
{ "status" : "success", "result" : { "id" : "23ec3561b7714cb4ad3ccd95a02c462d", "warningMsg" : null, "name" : "copyNameAw_YyhUY_copyF1K0", "source" : null, "method" : "23ec3561b7714cb4ad3ccd95a02c462d", "description" : "copyAwDesc_0rRAY", "nameView" : null, "tmssCaseNumber" : null, "region" : "{region}", "yamlName" : null, "create_time_string" : "2025-06-12 19:38:16 GMT+08:00", "update_time_string" : "2025-06-12 19:38:16 GMT+08:00", "create_time_stamp" : 1749728296000, "update_time_stamp" : 1749728296000, "create_user" : "CloudTest-0704", "create_time" : "2025-06-12T07:38:16+0800", "update_user" : "fdc93bccd8d040778701d4d35a4a4313|CloudTest-0704", "update_time" : "2025-06-12T07:38:16+0800", "param_type_and_dft_value" : [ ], "dft_custom_header" : null, "dft_check_point_list" : null, "dft_variable_list" : null, "keyword_variable_value" : [ ], "dft_retry_times" : null, "dft_retry_interval" : null, "return_type" : null, "aw_type" : 2, "aw_ins_list" : [ { "id" : "696e6667d9444a70a0b5e2a7534e83fe", "projectId" : "f063113312094ffa91cbc1dec4ceee57", "changeSign" : 0, "region" : "{region}", "relation" : null, "children" : null, "scriptName" : null, "create_time_string" : "2025-06-12 19:38:16 GMT+08:00", "update_time_string" : "2025-06-12 19:38:16 GMT+08:00", "create_time_stamp" : 1749728296000, "update_time_stamp" : 1749728296000, "create_user" : "CloudTest-0704", "create_time" : "2025-06-12T07:38:16+0800", "update_user" : "CloudTest-0704", "update_time" : "2025-06-12T07:38:16+0800", "name" : null, "condition_type" : 20, "condition_statement" : "3000", "body_param_type" : null, "aw_type" : 0, "aw_id" : "", "basic_aw" : null, "param_type_and_value" : [ ], "check_point_list" : [ ], "variable_list" : [ ], "retry_times" : "0", "retry_interval" : "0", "by_order" : 0, "from_outside" : null, "service_and_stage" : null, "is_contract_aw" : null, "is_sectest_aw" : null, "is_disabled" : 0, "param_dependent" : null, "param_dependent_enabled" : null, "relation_id" : null, "relation_type" : 0, "extra_info" : null, "custom_header" : [ ], "level" : null, "hasLevel" : null, "is_basic" : 1, "his_script" : null, "description" : null, "aw_description" : null, "user_id" : null, "special_type" : 0, "error_info" : null, "alias_runaw" : null, "authentication_type" : null, "authentication_info" : null, "testmate_type" : null, "output_alias_info" : null, "header_array" : null } ], "project_id" : "f063113312094ffa91cbc1dec4ceee57", "public_aw_lib_id" : null, "special_type" : 0, "has_code" : 1, "aw_code" : "", "group_name" : "3a557ddec9734d0f994078f7b138a8a1", "protocol_type" : "other", "by_order" : null, "aw_mark" : null, "output_param_list" : [ ], "is_favorite" : null, "tmss_case_id" : null, "create_user_id" : "fdc93bccd8d040778701d4d35a4a4313", "aw_description" : null, "origin_project" : null, "aw_uniqueid" : null, "aw_tags" : null, "aw_operationid" : null, "interface_label" : null, "import_package" : null, "public_aw_lib" : null, "root_id" : null, "custom_aw_libs" : null, "delete_time" : null, "delete_user" : null, "extra_info" : { "version" : "V1.1", "outputParam" : [ ] } }, "reason" : null, "error" : null }
状态码
状态码 |
描述 |
---|---|
200 |
SUCCESS |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
500 |
ERROR |
错误码
请参见错误码。