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

专线连接

复制全文
下载 pdf
Qos策略
ModifyDirectConnectTrafficQosPolicyAttributes - 修改QoS策略
复制全文
下载 pdf
ModifyDirectConnectTrafficQosPolicyAttributes - 修改QoS策略
调用ModifyDirectConnectTrafficQosPolicyAttributes修改QoS策略。​
使用说明​
您可调用此接口,通过配置参数AddInstanceIds.N为QoS策略关联物理专线,通过配置参数RemoveInstanceIds.N为QoS策略解绑已关联的物理专线。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action String 必选 示例值:ModifyDirectConnectTrafficQosPolicyAttributes​
接口名称。当前 API 的名称为 ModifyDirectConnectTrafficQosPolicyAttributes。​
​
Version String 必选 示例值:2020-04-01​
接口版本。当前 API 的版本为 2020-04-01。​
​
DirectConnectTrafficQosPolicyId String 必选 示例值:dcq-123456​
QoS策略的ID。​
​
DirectConnectTrafficQosPolicyName String 可选 示例值:dcq-name​
QoS策略名称。​
  • 以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、下划线(_)和短划线(-)。​
  • 长度限制为1 ~ 128个字符。​
  • 不填保持原有配置。​
​
Description String 可选 示例值:dcq-describe​
QoS策略的描述。​
  • 以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、空格( )、下划线(_)、中划线(-)、等号(=)、英文逗号(,)、中文逗号(,)、中文句号(。)。​
  • 长度限制为0 ~ 255个字符。​
  • 不填保持原有配置。​
​
AddInstanceIds.N String 可选 示例值:dcc-ojk17q****​
QoS策略待关联的物理专线的ID信息。​
  • 参数 - N:表示物理专线ID的序号。​
  • 多个ID之间用&分隔。​
  • 不填保持原有配置。​
说明​
QoS策略仅支持关联独享物理专线,不支持关联共享物理专线。​
​
RemoveInstanceIds.N String 可选 示例值:dcc-jjfftzh4b****​
QoS策略待解绑的物理专线的ID信息。​
  • 参数 - N:表示物理专线ID的序号。​
  • 多个ID之间用&分隔。​
  • 不填保持原有配置。​
​
​
​
返回参数​
本接口无特有的返回参数。更多信息请见返回结构。​
请求示例​
​
GET /?Action=ModifyDirectConnectTrafficQosPolicyAttributes&Version=2020-04-01&DirectConnectTrafficQosPolicyId=dcq-123456&DirectConnectTrafficQosPolicyName=dcq-name&Description=dcq-describe&AddInstanceIds.1=dcc-ojk17q****&RemoveInstanceIds.1=dcc-jjfftzh4b**** HTTP/1.1​
Host: directconnect.cn-beijing.volcengineapi.com​
X-Date: 20250804T033538Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250804/cn-beijing/directconnect/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20241107160027257DCF867CC69261****",​
"Action": "ModifyDirectConnectTrafficQosPolicyAttributes",​
"Version": "2020-04-01",​
"Service": "directconnect",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "20241107160027257DCF867CC69261****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
DryRunOperation​
Exception raised to indicate a successfully authorized action when the DryRun flag is set to true.​
该请求设置为DryRun操作,操作授权已获得许可,但未被实际执行。​
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​
InvalidDirectConnectConnection.InvalidStatus​
The specified direct connect connection is not in the correct status for the request.​
指定的物理专线所处的状态无法响应该请求。​
400​
InvalidDirectConnectTrafficQosPolicy.ConflictQos​
The specified direct connect connection has associate with other traffic qos policy.​
指定的物理专线已绑定QoS策略,不支持重复操作。​
400​
InvalidDirectConnectTrafficQosPolicy.DirectConnectConnectionWithDifferentQos​
In the direct connect gateway with multiple direct connect connections scene, it is not supported to associate with different qos policy in all direct connect connections.​
多条物理专线关联同一个专线网关场景下,多条物理专线仅可绑定同一个QoS策略。​
400​
InvalidDirectConnectTrafficQosPolicy.DirectConnectConnectionWithSharedVif​
It is not supported to associate the qos policy for direct connect connection associated with shared direct connect virtual interfaces.​
关联了共享虚拟接口的物理专线不支持绑定QoS策略。​
400​
InvalidDirectConnectTrafficQosPolicy.InvalidStatus​
The specified direct connect traffic qos policy is not in the correct status for the request.​
指定的QoS策略所处的状态无法响应该请求。​
400​
InvalidDirectConnectTrafficQosPolicy.MisMatchQos​
The specified direct connect connection doesn't associate with the specified traffic qos policy.​
物理专线未绑定指定的QoS策略,不支持解绑操作。​
400​
InvalidDirectConnectTrafficQosPolicy.SameDirectConnectConnectionUnsupported​
It is not supported to associate and disassociate the same direct connect connection to the specified traffic qos policy.​
同一物理专线不支持同时绑定和解绑QoS策略。​
400​
InvalidDirectConnectTrafficQosPolicy.SharedConnectionUnsupported​
It is not supported to associate the shared direct connect connection to the specified traffic qos policy.​
共享专线不支持绑定QoS策略。​
400​
InvalidName.Malformed​
The specified name is malformed.​
指定的名称格式不合法。请修复名称格式后重试。​
400​
InvalidName.Malformed​
The specified name is malformed. Ensure the maximum length of name is 128.​
指定的名称格式不合法。名称长度不能超过128个字符。​
403​
InvalidDirectConnectTrafficQosPolicy.SharedDirectConnectConnectionForbidden​
You are not authorized to associate the specified traffic qos policy with direct connect connection with shared connection.​
无权限将QoS策略绑定到已创建共享专线的物理专线上。​
404​
InvalidDirectConnectConnection.NotFound​
The specified direct connect connection does not exist.​
指定的物理专线不存在。​
404​
InvalidDirectConnectTrafficQosPolicy.NotFound​
The specified direct connect traffic qos policy does not exist.​
指定的QoS策略不存在。​
​
​
最近更新时间:2026.01.23 17:00:41
这个页面对您有帮助吗?
有用
有用
无用
无用