通道巡航控制。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | CruiseControl | 接口名称。当前 API 的名称为 CruiseControl 。 |
Version | String | 是 | 2023-10-01 | 接口版本。当前 API 的版本为 2023-10-01 。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 |
| 巡航指令,可选枚举值包括:
|
PresetID | Integer | 否 | 3 | 预置位编号,取值范围:[0, 255],适用于 Add 和 Remove 指令;当 Action=Remove 且 PresetID=0 时, 表示删除 TrackID 对应的整条巡航路径 |
Speed | Float | 否 | 200 | 巡航速度,取值范围:[1, 4095],适用于 SetSpeed 指令 |
StaySeconds | Float | 否 | 4 | 预置位停留时间,单位:秒,[1~4095],取值范围:[1, 4095],适用于 SetStay 指令 |
本接口无特有的返回参数。更多信息请见返回结构。
POST https://open.volcengineapi.com?Action=CruiseControl&Version=2023-10-01 { "Action": "SetSpeed", "PresetID": 3, "Speed": 200, "StaySeconds": 4 }
{ "ResponseMetadata": { "RequestId": "202112081549400102121450322701D9BA", "Action": "CruiseControl", "Version": "2023-10-01", "Service": "aiotvideo", "Region": "cn-north-1" } }
您可访问公共错误码,获取更多错误码信息。