呼叫 UpdateCenInterRegionTrafficQosQueueAttribute 介面修改流量排程策略下佇列的名稱、描述、跨地域頻寬、DSCP 值的設定。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cen:UpdateCenInterRegionTrafficQosQueueAttribute |
update |
*CenInstance
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的冪等性。 由用戶端產生該參數值,要保證在不同請求間唯一,最大值不超過 64 個 ASCII 字元。 |
123e4567-e89b-12d3-a456-426655**** |
| DryRun |
boolean |
否 |
是否只預檢此次請求。取值:
|
false |
| QosQueueId |
string |
是 |
佇列 ID。 |
qos-queue-nv2vfzqkewhk4t**** |
| QosQueueName |
string |
否 |
佇列的新名稱。 名稱可以為空或長度為 1~128 個字元,不能以 http:// 或 https:// 開頭。 |
nametest |
| QosQueueDescription |
string |
否 |
佇列新的描述資訊。 描述可以為空或長度為 1~256 個字元,不能以 http:// 或 https:// 開頭。 |
desctest |
| RemainBandwidthPercent |
string |
否 |
按頻寬百分比模式分配時,目前佇列可使用的跨地域頻寬的百分比。 輸入數字即可,無需輸入百分號(%)。 |
1 |
| Bandwidth |
integer |
否 |
按頻寬絕對值模式分配時,目前佇列可使用的跨地域頻寬的絕對值,單位 Mbps。 輸入數字即可,無需輸入單位。 |
1 |
| Dscps |
array |
否 |
目前佇列待比對的流量封包的 DSCP 值。 |
|
|
integer |
否 |
目前佇列待比對的流量封包的 DSCP 值。取值範圍:0~63。 一次最多支援輸入 20 個 DSCP 值。 |
5 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
傳回結果。 |
||
| RequestId |
string |
請求 ID。 |
6DF9A765-BCD2-5C7E-8C32-C35C8A361A39 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "6DF9A765-BCD2-5C7E-8C32-C35C8A361A39"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | IncorrectStatus.TrafficQosPolicy | The status of TrafficQosPolicy is incorrect. | TrafficQosPolicy 目前狀態不支援此操作。 |
| 400 | InvalidTrafficQosQueueId.NotFound | The instance of TrafficQosQueueId is not found. | 未找到流量排程策略 ID 指定的策略執行個體。 |
| 400 | IllegalParam.BandwidthGuaranteeModeMismatch | The BandwidthGuaranteeMode does not match the Bandwidth or RemainBandwidthPercent. | 頻寬保障類型和頻寬絕對值或百分比的類型不相符。 |
| 400 | IllegalParam.AttachmentBandwidthExceed | The entered bandwidth causes the total QoS guaranteed bandwidth to exceed the cross-region bandwidth allocation value. | 輸入的頻寬使得 QoS 總保障頻寬超過了跨地域頻寬分配的值。 |
| 400 | IllegalParam.Bandwidth | Bandwidth is illegal | 頻寬套件 ID 不合法。 |
| 400 | IllegalParam.RemainBandwidthPercent | The specified RemainBandwidthPercent is invalid. | 參數中指定的 RemainBandwidthPercent 不合法。 |
| 400 | InvalidParameter | Invalid parameter. | 參數不合法。 |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | 帳號無權限操作。 |
| 400 | MissingParam.TrafficQosPolicyQueueId | The parameter TrafficQosPolicyQueueId is mandatory. | |
| 400 | ParamMismatch.QueueTypeAndBandwidthPercent | The parameters QueueType and BandwidthPercent are incompatible. | 參數 QueueType 與 BandwidthPercent 不相符。 |
| 400 | InvalidOperation.NotSupportLinkType | The operation is invalid because the specified queue link type is not supported. | 不支援指定的連結類型。 |
| 400 | InvalidOperation.DefaultQueueOnlySupportSetLinkType | The operation is invalid because only the LinkType can be configured for the default queue in HierarchicalQoS. | 優先順序排程模式的預設佇列僅支援設定連結類型。 |
| 400 | InvalidOperation.SetFlatQueueLinkType | The operation is invalid because the FlatQueuing QoS does not support setting the LinkType. | 基礎限速模式下的佇列不支援設定 LinkType。 |
| 400 | InvalidParameter.QosQueueId | The specified parameter QosQueueId is invalid. | 輸入的參數 QosQueueId 不合法。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。