调用ModifyDirectConnectTrafficQosPolicyAttributes修改QoS策略。
您可调用此接口,通过配置参数AddInstanceIds.N
为QoS策略关联物理专线,通过配置参数RemoveInstanceIds.N
为QoS策略解绑已关联的物理专线。
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifyDirectConnectTrafficQosPolicyAttributes | 要执行的操作,取值:ModifyDirectConnectTrafficQosPolicyAttributes。 |
Version | String | 是 | 2020-04-01 | API版本信息。 |
DirectConnectTrafficQosPolicyId | String | 是 | dcq-123456 | QoS策略的ID。 |
DirectConnectTrafficQosPolicyName | String | 否 | dcq-name | QoS策略名称。
|
Description | String | 否 | dcq-describe | QoS策略的描述。
|
AddInstanceIds.N | List of Stiing | 否 | AddInstanceIds.1=dcc-ojk17q****&AddInstanceIds.2=dcc-2bfa2du7f**** | QoS策略待关联的物理专线的ID信息。
说明 QoS策略仅支持关联独享物理专线,不支持关联共享物理专线。 |
RemoveInstanceIds.N | List of Stiing | 否 | RemoveInstanceIds.1=dcc-jjfftzh4b****&RemoveInstanceIds.2=dcc-55nh68**** | QoS策略待解绑的物理专线的ID信息。
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 0ED8D006-F706-4D23-88ED-E11ED28**** | 请求ID。 |
GET /?Action=ModifyDirectConnectTrafficQosPolicyAttributes&DirectConnectTrafficQosPolicyId=dcq-12aso41dvse8017q7y2mq****&AddInstanceIds.1=dcc-12b4hutl8r47417q7y23b****&Version=2020-04-01 HTTP/1.1 Host: open.volcengineapi.com ServiceName: directconnect Region: cn-beijing
{ "ResponseMetadata": { "RequestId": "20241107160027257DCF867CC69261****", "Action": "ModifyDirectConnectTrafficQosPolicyAttributes", "Version": "2020-04-01", "Service": "directconnect", "Region": "cn-beijing" }, "Result": { "RequestId": "20241107160027257DCF867CC69261****" } }
Http code | 错误码 | 错误信息 | 描述信息 |
---|---|---|---|
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策略不存在。 |