删除代码解释器 - DeleteCoreCodeInterpreter
功能介绍
删除指定的代码解析器。
URI
DELETE /v1/core/code-interpreters/{code_interpreter_id}
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| code_interpreter_id | 是 | String | 参数解释: 代码解释器ID。 约束限制: 不涉及。 取值范围: 符合UUID正则^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$的36位字符串。 默认取值: 不涉及。 |
请求参数
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| Content-Type | 是 | String | 参数解释: 消息体编码格式。用于告知服务端请求体(Body)所采用的主体数据类型,以便服务端正确解析。 约束限制: 不涉及 取值范围: application/json 默认取值: application/json |
| Authorization | 是 | String | 参数解释: 签名认证信息,当使用AK/SK方式认证时,使用SDK对请求进行签名的过程中会自动填充该字段。 约束限制: 不涉及 取值范围: 不涉及 默认取值: 不涉及 |
| X-Sdk-Date | 是 | String | 参数解释: 请求发送的时间,当使用AK/SK方式认证时,使用SDK对请求进行签名的过程中会自动填充该字段。 约束限制: 不涉及 取值范围: 不涉及 默认取值: 不涉及 |
响应参数
状态码:204
删除成功,无响应内容。
状态码:401
| 参数 | 参数类型 | 描述 |
|---|---|---|
| error_code | String | 参数解释: 错误码。 取值范围: 满足正则^AgentArts.0400\d{4}$,例如AgentArts.04000404。 |
| error_msg | String | 参数解释: 错误信息。 取值范围: 不涉及。 |
状态码:403
| 参数 | 参数类型 | 描述 |
|---|---|---|
| error_code | String | 参数解释: 错误码。 取值范围: 满足正则^AgentArts.0400\d{4}$,例如AgentArts.04000404。 |
| error_msg | String | 参数解释: 错误信息。 取值范围: 不涉及。 |
| encoded_authorization_message | String | 参数解释: 编码后的授权失败信息,可找IAM服务oncall提供解码方式获取详细授权失败原因。 取值范围: 不涉及。 |
| details | Array of CoreToolsCommonError objects | 参数解释: 依赖的下游服务错误信息列表。 取值范围: 不涉及。 |
| 参数 | 参数类型 | 描述 |
|---|---|---|
| error_code | String | 参数解释: 错误码。 取值范围: 满足正则^AgentArts.0400\d{4}$,例如AgentArts.04000404。 |
| error_msg | String | 参数解释: 错误信息。 取值范围: 不涉及。 |
状态码:404
| 参数 | 参数类型 | 描述 |
|---|---|---|
| error_code | String | 参数解释: 错误码。 取值范围: 满足正则^AgentArts.0400\d{4}$,例如AgentArts.04000404。 |
| error_msg | String | 参数解释: 错误信息。 取值范围: 不涉及。 |
状态码:429
| 参数 | 参数类型 | 描述 |
|---|---|---|
| error_code | String | 参数解释: 错误码。 取值范围: 满足正则^AgentArts.0400\d{4}$,例如AgentArts.04000404。 |
| error_msg | String | 参数解释: 错误信息。 取值范围: 不涉及。 |
状态码:500
| 参数 | 参数类型 | 描述 |
|---|---|---|
| error_code | String | 参数解释: 错误码。 取值范围: 满足正则^AgentArts.0400\d{4}$,例如AgentArts.04000404。 |
| error_msg | String | 参数解释: 错误信息。 取值范围: 不涉及。 |
请求示例
/v1/core/code-interpreters/9ca9f2a6-18e4-xxxx-xxxx-8c21e978a1ad
响应示例
状态码:401
认证失败。
"\"{\\n \\\"error_code\\\": \\\"AgentArts.04000401\\\",\\n \\\"error_msg\\\": \\\"Authentication failed: invalid token\\\"\\n}\"" 状态码:403
权限不足。
"\"{\\n \\\"error_code\\\": \\\"AgentArts.04000403\\\",\\n \\\"error_msg\\\": \\\"Authentication failed: you have no permission of VCPEP.\\\",\\n \\\"encoded_authorization_message\\\": \\\"eyJlcnJvciI6ICJVbmF1dGhvcml6ZWQifQ==\\\",\\n \\\"details\\\": [\\n {\\n \\\"error_code\\\": \\\"EndPoint.0004\\\",\\n \\\"error_msg\\\": \\\"Authentication information is incorrect or you have no permissions.\\\"\\n }\\n ]\\n}\"" 状态码:404
资源不存在。
"\"{\\n \\\"error_code\\\": \\\"AgentArts.04000404\\\",\\n \\\"error_msg\\\": \\\"resource xxx not exist\\\"\\n}\"" 状态码:429
请求频率超限。
"\"{\\n \\\"error_code\\\": \\\"AgentArts.04000429\\\",\\n \\\"error_msg\\\": \\\"The interface has been limited.\\\"\\n}\"" 状态码:500
内部系统错误。
"\"{\\n \\\"error_code\\\": \\\"AgentArts.04000500\\\",\\n \\\"error_msg\\\": \\\"Internal error\\\"\\n}\"" 状态码
| 状态码 | 描述 |
|---|---|
| 204 | 删除成功,无响应内容。 |
| 401 | 认证失败。 |
| 403 | 权限不足。 |
| 404 | 资源不存在。 |
| 429 | 请求频率超限。 |
| 500 | 内部系统错误。 |
错误码
请参见错误码。