接口请求域名: teo.intl.tencentcloudapi.com 。
查询推理服务部署历史列表,返回每次部署的操作类型、状态、耗时、配置快照和是否为当前生效配置,支持分页和排序。
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:DescribeInferenceServiceDeploymentRecords。 |
| Version | 是 | String | 公共参数,本接口取值:2022-09-01。 |
| Region | 否 | String | 公共参数,此参数为可选参数。 |
| ZoneId | 是 | String | 站点 ID。 |
| ServiceId | 是 | String | 推理服务 ID。 |
| SortBy | 否 | String | 排序字段,取值有: |
| SortOrder | 否 | String | 排序方式,取值有: |
| Offset | 否 | Integer | 分页偏移量,默认值:0。 |
| Limit | 否 | Integer | 返回记录条数,默认值:20,最大值:100。 |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| TotalCount | Integer | 部署历史总数。 |
| RecordSet | Array of InferenceServiceDeploymentRecord | 推理服务部署历史列表。 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeInferenceServiceDeploymentRecords
<公共请求参数>
{
"ZoneId": "zone-3jxerasahh8l",
"ServiceId": "inf-afmkinet8yh7",
"SortBy": "create-time",
"SortOrder": "desc",
"Offset": 0,
"Limit": 30
}
{
"Response": {
"RecordSet": [
{
"ActiveStatus": "inactive",
"CreateTime": "2026-02-11T15:29:48+08:00",
"Duration": 146,
"InferenceServiceConfig": {
"Containers": [
{
"EnvironmentVariables": [
{
"Key": "MODEL_PATH",
"Value": "/models/v1"
}
],
"ImageType": "TCR",
"StartupCommand": "python app.py",
"TcrRepositoryConfig": {
"Image": "my-namespace/my-model:v1.0.0",
"RegionName": "ap-guangzhou",
"RegistryId": "tcr-eqroqcez",
"TCRType": "Personal"
}
}
],
"ListenPort": 8080,
"RequestPaths": [
"/predictions"
],
"ResourceConfig": {
"AutoScalingConfig": {
"MinInstanceCount": 1
},
"Concurrency": 0,
"HardwareSpec": "Beginner",
"ManualInstanceConfig": {
"FixedInstanceCount": 1
},
"ScalingMode": "Manual"
}
},
"Operation": "create",
"RecordId": "inf-afmkinet8yh7-3o67ljbz",
"Status": "failed"
}
],
"TotalCount": 1,
"RequestId": "a0d57ee2-a56e-405c-b069-6f25447ba45c"
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| InternalError | 内部错误。 |
| InvalidParameter | 参数错误。 |
| InvalidParameterValue | 参数取值错误。 |
| InvalidParameterValue.ZoneNotFound | 没有对应的站点,请确保站点信息填写正确。 |
| ResourceNotFound | 资源不存在。 |
文档反馈