You need to enable JavaScript to run this app.
文档中心
中转路由器

中转路由器

复制全文
下载 pdf
流队列策略
CreateTransitRouterTrafficQosQueueEntry - 添加流队列
复制全文
下载 pdf
CreateTransitRouterTrafficQosQueueEntry - 添加流队列
调用 CreateTransitRouterTrafficQosQueueEntry 接口,为流队列策略添加队列。​
使用说明​
每个流队列策略中包含1个默认队列,您还可以添加64个自定义队列。​
注意事项​
添加队列后,如果分配的带宽小于业务实际需要,可能会影响业务正常转发。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action String 必选 示例值:CreateTransitRouterTrafficQosQueueEntry​
接口名称。当前 API 的名称为CreateTransitRouterTrafficQosQueueEntry。​
​
Version String 必选 示例值:2020-04-01​
接口版本。当前 API 的版本为2020-04-01。​
​
TransitRouterTrafficQosQueuePolicyId String 必选 示例值:tr-tqp-hy13n2l4c6c0v****​
流队列策略的ID。您可以调用DescribeTransitRouterTrafficQosQueuePolicies接口获取流队列策略的ID。​
​
Dscps.N Integer 必选 示例值:1​
队列需要匹配的DSCP值。取值范围为 0~63。​
  • N:表示DSCP值的序号,取值范围为1~64。​
  • 多个DSCP值之间使用“&”分隔。​
​
BandwidthPercent Integer 可选 示例值:10​
队列可使用的跨地域带宽的百分比。取值范围为 0~100。​
取值为0,则成功匹配该队列的流量会被丢弃。​
​
TransitRouterTrafficQosQueueEntryName String 必选 示例值:tqe-02​
队列的名称。​
  • 必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。​
  • 长度限制为1 ~ 128个字符。​
  • 不传入该参数或该参数不传入数值时,默认为空。​
​
Description String 可选 示例值:This traffic qos queue entry is used for test.​
队列的描述信息。​
  • 必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。​
  • 长度限制为0 ~ 255个字符。​
  • 不传入该参数或该参数不传入数值时,默认为空字符串。​
​
ClientToken String 可选 示例值:123e4567-e89b-12d3-a456-42665544****​
客户端Token,用于保证请求的幂等性。​
  • 该参数值由客户端自动生成,确保不同请求的取值唯一,避免当调用API超时或服务器内部错误时,客户端多次重试导致重复性操作。​
  • 取值仅支持ASCII字符,最大不超过64个字符。​
  • 未指定该参数值时,不进行幂等校验。​
​
Priority String 可选 示例值:High​
队列的优先级。​
  • Normal:普通优先级。​
  • High:高优先级。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
TransitRouterTrafficQosQueueEntryId String 示例值:tr-tqe-1i5i8khf9m58gae5kcx6****​
流队列ID。​
​
​
​
请求示例​
​
GET /?Action=CreateTransitRouterTrafficQosQueueEntry&Version=2020-04-01&TransitRouterTrafficQosQueuePolicyId=tr-tqp-hy13n2l4c6c0v****&Dscps.1=1&BandwidthPercent=10&TransitRouterTrafficQosQueueEntryName=tqe-02 HTTP/1.1​
Host: transitrouter.cn-beijing.volcengineapi.com​
X-Date: 20250815T040532Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250815/cn-beijing/transitrouter/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20250815120534155194148038FB8C6D",​
"Action": "CreateTransitRouterTrafficQosQueueEntry",​
"Version": "2020-04-01",​
"Service": "transitrouter",​
"Region": "cn-beijing"​
},​
"Result": {​
"TransitRouterTrafficQosQueueEntryId": "tr-tqe-1i5i8khf9m58gae5kcx6****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
IdempotentParameterMismatch​
Arguments on this idempotent request are inconsistent with arguments used in previous request(s).​
此幂等请求的参数与前一个请求中使用的参数不一致。​
400​
InvalidDescription.Malformed​
The specified description is malformed.​
指定的描述格式不合法。请修复描述格式后重试。​
400​
InvalidDescription.TooLong​
The specified description is malformed. Ensure the maximum length of description is 255.​
指定的描述格式不合法。描述长度不能超过255个字符。​
400​
InvalidName.Malformed​
The specified name is malformed.​
指定的名称格式不合法。请修复名称格式后重试。​
400​
InvalidName.TooLong​
The specified name is malformed. Ensure the maximum length of name is 128.​
指定的名称格式不合法。名称长度不能超过128个字符。​
400​
InvalidParameter.ClientTokenMalformed​
The specified parameter ClientToken is malformed.​
指定的参数ClientToken格式不合法,长度不能超过64个ASCII字符。​
400​
InvalidTransitRouter.InvalidBusinessStatus​
The request is denied because the specified Transit Router is shut down due to arrears.​
指定的中转路由器欠费关停,不支持当前操作。​
400​
InvalidTransitRouter.InvalidStatus​
The specified Transit Router is not in the correct status for the request.​
指定的中转路由器所处状态无法响应该请求。​
400​
InvalidTransitRouterTrafficQosQueueEntry.BandwidthPercentExceed​
The specified bandwidth percentage of the traffic qos queue entry exceeds the available remaining bandwidth percentage.​
指定的流队列限速带宽百分比超出剩余可分配的带宽百分比。​
400​
InvalidTransitRouterTrafficQosQueueEntry.BandwidthPercentNotSupport​
The specified bandwidth percent of the Transit Router traffic qos queue entry is invalid. Only normal priority traffic qos queues support configuring bandwidth percent.​
指定的流队列限速带宽百分比无效,仅允许普通优先级流队列配置限速带宽百分比。​
400​
InvalidTransitRouterTrafficQosQueueEntry.InvalidBandwidthPercent​
The specified bandwidth percent of the Transit Router traffic qos queue entry is invalid. Bandwidth percent only support 0~100.​
指定的流队列限速带宽百分比无效,仅允许0-100范围内的整数。​
400​
InvalidTransitRouterTrafficQosQueueEntry.InvalidDscp​
The specified dscp of the Transit Router traffic qos queue entry is invalid. Dscp only support 0~63.​
指定的流队列DSCP无效,仅允许0-63范围内的整数。​
400​
InvalidTransitRouterTrafficQosQueueEntry.PriorityExist​
The specified Transit Router traffic qos queue policy already has a high priority traffic qos queue.​
指定的流队列策略中已存在高级流队列,不支持重复操作。​
400​
InvalidTransitRouterTrafficQosQueueEntry.PriorityInvalid​
The specified priority of the Transit Router traffic qos queue entry is invalid, only Normal and High are supported.​
指定的流队列优先级无效,仅支持普通和高级。​
400​
QuotaExceeded.TransitRouterTrafficQosQueueEntry​
You've reached the limit on the number of traffic qos queue entries that you can create on one traffic qos queue policy.​
已达到单个流队列策略的流队列数上限。​
404​
InvalidTransitRouterTrafficQosQueuePolicy.NotFound​
The specified Transit Router traffic qos queue policy does not exist.​
指定的流队列策略不存在。​
409​
InvalidTransitRouterTrafficQosQueueEntry.DscpConflict​
The specified dscp of the Transit Router traffic qos queue entry conflicts with another entry.​
指定的流队列DSCP和其它队列冲突。​
412​
IdempotentProcessing​
The request uses the same client token as a previous one that is still in process.​
幂等请求处理中。​
​
​
最近更新时间:2026.01.23 11:50:14
这个页面对您有帮助吗?
有用
有用
无用
无用