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

专线连接

复制全文
下载 pdf
Qos策略
ModifyDirectConnectTrafficQosRuleAttributes - 修改流分类规则
复制全文
下载 pdf
ModifyDirectConnectTrafficQosRuleAttributes - 修改流分类规则
调用ModifyDirectConnectTrafficQosRuleAttributes修改指定默认流分类规则的信息。​
使用说明​
  • 仅支持修改默认流分类规则的重标记DSCP,其他信息不支持修改。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action String 必选 示例值:ModifyDirectConnectTrafficQosRuleAttributes​
接口名称。当前 API 的名称为 ModifyDirectConnectTrafficQosRuleAttributes。​
​
Version String 必选 示例值:2020-04-01​
接口版本。当前 API 的版本为 2020-04-01。​
​
DirectConnectTrafficQosRuleId String 必选 示例值:dqr-1jfwefksx5****​
默认流分类规则的ID。​
您可调用DescribeDirectConnectTrafficQosRules查询流分类规则的ID,查询结果中参数DirectConnectTrafficQosRuleName值为Default且参数Priority值为65535的一条即为默认流分类规则。​
​
RemarkingDscp Integer 必选 示例值:53​
修改流量中的 DSCP 值。取值范围:0~63,如果不生效时取值为-1。​
​
​
​
返回参数​
本接口无特有的返回参数。更多信息请见返回结构。​
请求示例​
​
GET /?Action=ModifyDirectConnectTrafficQosRuleAttributes&Version=2020-04-01&DirectConnectTrafficQosRuleId=dqr-in0gq79lqygw8gbssy0q****&RemarkingDscp=45 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": "20241107160755EC1FDE4A8330156****",​
"Action": "ModifyDirectConnectTrafficQosRuleAttributes",​
"Version": "2020-04-01",​
"Service": "directconnect",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "20241107160755EC1FDE4A8330156****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
DryRunOperation​
Exception raised to indicate a successfully authorized action when the DryRun flag is set to true.​
该请求设置为DryRun操作,操作授权已获得许可,但未被实际执行。​
400​
InvalidDirectConnectTrafficQosPolicy.InvalidStatus​
The specified direct connect traffic qos policy is not in the correct status for the request.​
指定的QoS策略所处的状态无法响应该请求。​
400​
InvalidDirectConnectTrafficQosQueue.InvalidStatus​
The specified direct connect traffic qos queue is not in the correct status for the request.​
指定的QoS流队列所处的状态无法响应该请求。​
400​
InvalidDirectConnectTrafficQosRule.CustomRuleUnsupported​
It is not supported to modify the direct connect traffic qos rule with custom priority.​
不支持修改自定义QoS流分类规则。​
400​
InvalidDirectConnectTrafficQosRule.InvalidRemarkingDscp​
The specified remarking dscp of the direct connect traffic qos rule is invalid. Remarking dscp only support -1, 0~63.​
指定的QoS流分类规则重标记DSCP值无效,仅允许-1或0-63范围内的整数。​
400​
InvalidDirectConnectTrafficQosRule.InvalidStatus​
The specified direct connect traffic qos rule is not in the correct status for the request.​
指定的QoS流分类规则所处的状态无法响应该请求。​
404​
InvalidDirectConnectTrafficQosRule.NotFound​
The specified direct connect traffic qos rule does not exist.​
指定的QoS流分类规则不存在。​
​
​
最近更新时间:2026.01.23 17:09:49
这个页面对您有帮助吗?
有用
有用
无用
无用