帮你快速理解、总结文档立即下载

停止部署

最近更新时间:2026-09-03 10:26:43
我的收藏

1. 接口描述

接口请求域名: dlc.tencentcloudapi.com 。

停止部署

默认接口请求频率限制:20次/秒。

推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:StopDeployment。
Version String 公共参数,本接口取值:2021-01-25。
Region String 公共参数,详见产品支持的 地域列表,本接口仅支持其中的: ap-beijing, ap-chongqing, ap-guangzhou, ap-shanghai, ap-singapore 。
DeploymentId String

DeploymentId


示例值:deploy-20260812163724-qglm

3. 输出参数

参数名称 类型 描述
DeploymentId String

DeploymentId


注意:此字段可能返回 null,表示取不到有效值。
示例值:deploy-20260812163724-qglm
Name String

部署名称


注意:此字段可能返回 null,表示取不到有效值。
示例值:thisismodelUid12345-2026081216-svc-deploy-1
ServiceId String

关联的服务ID


注意:此字段可能返回 null,表示取不到有效值。
示例值:svc-20260812163724-g9px
ModelVersion String

部署使用的模型版本号


注意:此字段可能返回 null,表示取不到有效值。
示例值:v1
Status String

部署状态(Running/Stopped/Deploying/Failed)


注意:此字段可能返回 null,表示取不到有效值。
示例值:Stopped
Engine String

推理引擎(vLLM/SGLang 等)


注意:此字段可能返回 null,表示取不到有效值。
示例值:custom
Replicas Integer

期望副本数


注意:此字段可能返回 null,表示取不到有效值。
示例值:1
AvailableReplicas Integer

可用副本数


注意:此字段可能返回 null,表示取不到有效值。
示例值:0
ResourceConfig String

资源配置(JSON 字符串)


注意:此字段可能返回 null,表示取不到有效值。
示例值:{"workerBillingItem":"sv_dlc_standard_cu_standard_cu","workerSpec":1,"headBillingItem":"sv_dlc_standard_cu_standard_cu","headSpec":2,"gpu":"","gpuNum":0,"cpu":1,"mem":4,"headCpu":2,"headMem":8}
AdvancedParams String

高级参数(JSON 字符串)


注意:此字段可能返回 null,表示取不到有效值。
示例值:{"EngineArgs":[{"Key":"dtype","Value":"auto"},{"Key":"max-num-seqs","Value":"32"},{"Key":"max-model-len","Value":"512"}],"ExtraFlags":[],"EnvVars":[],"RayOptions":[]}
AutoscalingEnabled Boolean

是否开启自动伸缩


注意:此字段可能返回 null,表示取不到有效值。
示例值:false
MinReplicas Integer

最小副本数(自动伸缩时使用)


注意:此字段可能返回 null,表示取不到有效值。
示例值:1
MaxReplicas Integer

最大副本数(自动伸缩时使用)


注意:此字段可能返回 null,表示取不到有效值。
示例值:4
ModelStorageConfig String

模型存储配置(Catalog JSON,记录模型 COS 挂载信息)


注意:此字段可能返回 null,表示取不到有效值。
示例值:{"COSVolumes":[{"Region":"ap-guangzhou","Bucket":"common-job-packages-251233710","VolumeSubPath":"/storageUri/","MountPath":"/storageUri"}]}
AppId Integer

AppId


注意:此字段可能返回 null,表示取不到有效值。
示例值:260200066
Uin String

Uin


注意:此字段可能返回 null,表示取不到有效值。
示例值:700002655694
CreateTime Integer

创建时间(毫秒时间戳)


注意:此字段可能返回 null,表示取不到有效值。
示例值:1786523844918
UpdateTime Integer

更新时间(毫秒时间戳)


注意:此字段可能返回 null,表示取不到有效值。
示例值:1786682033080
ResourcePartitionId String

资源分区 ID


注意:此字段可能返回 null,表示取不到有效值。
示例值:dlc-p-sclwuvta
Queue String

资源队列名称


注意:此字段可能返回 null,表示取不到有效值。
示例值:default
SubAccountUin String

SubAccountUin


示例值:700002655694
HeadHighAvailabilityEnabled Boolean

ray head 是否开启高可用


示例值:true
Image String

镜像名称


示例值:ccr.ccs.tencentyun.com/emr-image/tcray:tcray2.56.1-py311-gpu-cu129-serve
ImagePullType String

镜像拉取方式


示例值:CUSTOM
ImagePullPolicy String

镜像拉取策略


示例值:IfNotPresent
ResourcePartitionName String

资源分区名称


示例值:测试 partation
RequestId String 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。

4. 示例

示例1 示例

输入示例

POST / HTTP/1.1
Host: dlc.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: StopDeployment
<公共请求参数>

{
    "DeploymentId": "deploy-20260812163724-qglm"
}

输出示例

{
    "Response": {
        "AdvancedParams": "{\"EngineArgs\":[{\"Key\":\"dtype\",\"Value\":\"auto\"},{\"Key\":\"max-num-seqs\",\"Value\":\"32\"},{\"Key\":\"max-model-len\",\"Value\":\"512\"}],\"ExtraFlags\":[],\"EnvVars\":[],\"RayOptions\":[]}",
        "AppId": 260200066,
        "AutoscalingEnabled": false,
        "AvailableReplicas": 0,
        "CreateTime": 1786523844918,
        "DeploymentId": "deploy-20260812163724-qglm",
        "Engine": "custom",
        "HeadHighAvailabilityEnabled": true,
        "Image": "ccr.ccs.tencentyun.com/emr-image/tcray:tcray2.56.1-py311-gpu-cu129-serve",
        "ImagePullPolicy": "IfNotPresent",
        "ImagePullType": "CUSTOM",
        "ModelStorageConfig": "{\"COSVolumes\":[{\"Region\":\"ap-guangzhou\",\"Bucket\":\"common-job-packages-251233710\",\"VolumeSubPath\":\"/storageUri/\",\"MountPath\":\"/storageUri\"}]}",
        "ModelVersion": "v1",
        "Name": "thisismodelUid12345-2026081216-svc-deploy-1",
        "Queue": "default",
        "Replicas": 1,
        "ResourceConfig": "{\"workerBillingItem\":\"sv_dlc_standard_cu_standard_cu\",\"workerSpec\":1,\"headBillingItem\":\"sv_dlc_standard_cu_standard_cu\",\"headSpec\":2,\"gpu\":\"\",\"gpuNum\":0,\"cpu\":1,\"mem\":4,\"headCpu\":2,\"headMem\":8}",
        "ResourcePartitionId": "dlc-p-sclwuvta",
        "ResourcePartitionName": "测试 partation",
        "ServiceId": "svc-20260812163724-g9px",
        "Status": "Stopped",
        "SubAccountUin": "700002655694",
        "Uin": "700002655694",
        "UpdateTime": 1786682033080,
        "RequestId": "5bda4ff8-9d3c-4117-a8c3-7cab028c93f1"
    }
}

5. 开发者资源

腾讯云 API 平台

腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。

API Inspector

用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。

SDK

云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。

命令行工具

6. 错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码

错误码 描述
FailedOperation.ExternalService 外部服务异常