调用DeleteDirectConnectTrafficQosPolicy删除指定的QoS策略。
待删除的QoS策略未关联任何物理专线,且待删除的QoS策略下除默认流队列(名为Default)之外,不存在其他流队列。如有请先解绑QoS策略关联的全部物理专线,并删除流队列,然后再删除QoS策略,您可调用ModifyDirectConnectTrafficQosPolicyAttributes解绑物理专线,调用DeleteDirectConnectTrafficQosQueue删除流队列。
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DeleteDirectConnectTrafficQosPolicy | 要执行的操作,取值:DeleteDirectConnectTrafficQosPolicy。 |
Version | String | 是 | 2020-04-01 | API版本信息。 |
DirectConnectTrafficQosPolicyId | String | 是 | dcq-a2du7fojk17**** | 待删除的QoS策略的ID。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 0ED8D006-F706-4D23-88ED-E11ED28**** | 请求ID。 |
GET /?Action=DeleteDirectConnectTrafficQosPolicy&Version=2020-04-01&DirectConnectTrafficQosPolicyId=dcq-2fezrjmq3vif459gp67**** HTTP/1.1 Host: open.volcengineapi.com ServiceName: directconnect Region: cn-beijing
{ "ResponseMetadata": { "RequestId": "202411071550407A413E6A9D8BD4****", "Action": "DeleteDirectConnectTrafficQosPolicy", "Version": "2020-04-01", "Service": "directconnect", "Region": "cn-beijing" }, "Result": { "RequestId": "202411071550407A413E6A9D8BD4****" } }
Http code | 错误码 | 错误信息 | 描述信息 |
---|---|---|---|
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 | InvalidDirectConnectTrafficQosPolicy.WithAssociation | The specified traffic qos policy is in use. If you are trying to delete the traffic qos policy, ensure that its associated direct connect connections have been detached. | 指定的QoS策略在使用中。如果尝试删除该QoS策略,请确保其关联的所有物理专线已解绑。 |
400 | InvalidDirectConnectTrafficQosPolicy.WithTrafficQosQueue | The specified traffic qos policy is in use. If you are trying to delete the traffic qos policy, ensure that its traffic qos queues have been deleted. | 指定的QoS策略在使用中。如果尝试删除该QoS策略,请确保其关联的所有QoS流队列已删除。 |
400 | QuotaExceeded.DcTrafficQosPolicy | You've reached the limit on the number of traffic qos policies that you can create. | 已达到可创建的QoS策略的数量上限。 |
404 | InvalidDirectConnectTrafficQosPolicy.NotFound | The specified direct connect traffic qos policy does not exist. | 指定的QoS策略不存在。 |