You need to enable JavaScript to run this app.
文档中心
专线连接

专线连接

复制全文
下载 pdf
Qos策略
CreateDirectConnectTrafficQosQueue - 为指定的QoS策略添加流队列
复制全文
下载 pdf
CreateDirectConnectTrafficQosQueue - 为指定的QoS策略添加流队列
调用CreateDirectConnectTrafficQosQueue为指定的QoS策略添加流队列。​
使用说明​
更多流队列相关的介绍和约束限制,请参见QoS策略概述。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action String 必选 示例值:CreateDirectConnectTrafficQosQueue​
接口名称。当前 API 的名称为 CreateDirectConnectTrafficQosQueue。​
​
Version String 必选 示例值:2020-04-01​
接口版本。当前 API 的版本为 2020-04-01。​
​
DirectConnectTrafficQosPolicyId String 必选 示例值:dcq-jk17q7y1rk****​
流队列待绑定QoS策略的ID。您可调用DescribeDirectConnectTrafficQosPolicies查询QoS策略的ID信息。​
​
DirectConnectTrafficQosQueueName String 可选 示例值:dqq-name​
流队列的名称。​
  • 以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、下划线(_)和中划线(-)。​
  • 长度限制为1 ~ 128个字符。​
  • 不填默认为流队列的ID。​
​
Description String 可选 示例值:dqq-description​
流队列的描述。​
  • 以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、空格( )、下划线(_)、中划线(-)、等号(=)、英文逗号(,)、中文逗号(,)、中文句号(。)。​
  • 长度限制为0 ~ 255个字符。​
  • 不填默认为空字符串。​
​
QueueType String 必选 示例值:High​
流队列的类型。​
  • High:高优先级队列。高级队列优先进行带宽分配,每个QoS策略只能创建1个高级流队列。​
  • Medium:普通队列根据限速带宽比例,分配高级队列分配后的剩余带宽。​
说明​
每个QoS策略下最多支持创建 1 个类型为High的流队列(不可提升),创建 2 个类型为Medium的流队列(可提升)。更多专线连接QoS策略配置相关的使用限制,请参见约束限制。​
​
BandwidthPercent Integer 可选 示例值:10​
流队列带宽百分比。​
  • 当流队列类型为High时,无需传入此字段。​
  • 当流队列类型为Medium时,此字段必须输入,取值范围为:1~99。​
  • 同一QoS策略下所有类型为 Medium 的流队列的限速带宽之和不能超过99。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
DirectConnectTrafficQosQueueId String 示例值:dqq-in0gopzrph4w8gbssykq****​
流队列的ID。​
​
​
​
请求示例​
​
GET /?Action=CreateDirectConnectTrafficQosQueue&Version=2020-04-01&DirectConnectTrafficQosPolicyId=dcq-12aso41dvse8017q7y2mq****&QueueType=Medium&BandwidthPercent=19 HTTP/1.1​
Host: directconnect.cn-beijing.volcengineapi.com​
X-Date: 20251121T094038Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251121/cn-beijing/directconnect/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20241107160126BCE53F4F1F820D5C****",​
"Action": "CreateDirectConnectTrafficQosQueue",​
"Version": "2020-04-01",​
"Service": "directconnect",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "20241107160126BCE53F4F1F820D5C****",​
"DirectConnectTrafficQosQueueId": "dqq-in0gopzrph4w8gbssykq****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
DryRunOperation​
Exception raised to indicate a successfully authorized action when the DryRun flag is set to true.​
该请求设置为DryRun操作,操作授权已获得许可,但未被实际执行。​
400​
IdempotentParameterMismatch​
Arguments on this idempotent request are inconsistent with arguments used in previous request(s).​
此幂等请求的参数与前一个请求中使用的参数不一致。​
400​
InvalidDescription.Malformed​
The specified description is malformed. Ensure the maximum length of description is 255.​
指定的描述格式不合法。描述长度不能超过255个字符。​
400​
InvalidDescription.Malformed​
The specified description is malformed.​
指定的描述格式不合法。请修复描述格式后重试。​
400​
InvalidDirectConnectTrafficQosPolicy.InvalidStatus​
The specified direct connect traffic qos policy is not in the correct status for the request.​
指定的QoS策略所处的状态无法响应该请求。​
400​
InvalidDirectConnectTrafficQosQueue.BandwidthPercentExceed​
The specified bandwidth percentage of the traffic qos queue exceeds the available remaining bandwidth percentage.​
指定的QoS流队列限速带宽百分比超出剩余可分配的带宽百分比。​
400​
InvalidDirectConnectTrafficQosQueue.InvalidBandwidthPercent​
The specified bandwidth percent of the direct connect traffic qos queue is invalid, Bandwidth percent only support 1~99.​
指定的QoS流队列限速带宽百分比无效,仅允许1-99范围内的整数。​
400​
InvalidDirectConnectTrafficQosQueue.InvalidQueueType​
The specified queue type of the direct connect traffic qos queue is invalid.​
指定的QoS流队列类型无效。​
400​
InvalidDirectConnectTrafficQosQueue.RedundantBandwidthPercent​
It is not supported to allocate bandwidth percent when direct connect traffic qos queue type is not medium.​
仅支持为普通QoS流队列分配带宽百分比。​
400​
InvalidName.Malformed​
The specified name is malformed. Ensure the maximum length of name is 128.​
指定的名称格式不合法。名称长度不能超过128个字符。​
400​
InvalidName.Malformed​
The specified name is malformed.​
指定的名称格式不合法。请修复名称格式后重试。​
400​
InvalidParameter.ClientTokenMalformed​
The specified parameter ClientToken is malformed.​
指定的参数ClientToken格式不合法,长度不能超过64个ASCII字符。​
400​
QuotaExceeded.DcTrafficQosQueue​
You've reached the limit on the number of traffic qos queues that you can create.​
已达到可创建的QoS流队列的数量上限。​
404​
InvalidDirectConnectTrafficQosPolicy.NotFound​
The specified direct connect traffic qos policy does not exist.​
指定的QoS策略不存在。​
409​
InvalidDirectConnectTrafficQosQueue.HighTypeQueueConflict​
A high type direct connect traffic qos queue already exists. You can have only one high type direct connect traffic qos queue per qos.​
每个QoS策略仅可创建1个高级队列,该QoS策略已存在高级流队列。​
412​
IdempotentProcessing​
The request uses the same client token as a previous one that is still in process.​
幂等请求处理中。​
​
​
最近更新时间:2026.01.23 17:00:41
这个页面对您有帮助吗?
有用
有用
无用
无用