調用ModifyRouteDistributionStrategy修改路由發布策略。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
smartag:ModifyRouteDistributionStrategy |
update |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
Smart Access Gateway執行個體的地區 ID。 |
cn-shanghai |
| SmartAGId |
string |
是 |
Smart Access Gateway執行個體 ID。 |
sag-erx3qta5xg5zyq**** |
| HcInstanceId |
string |
否 |
健全狀態檢查執行個體 ID。 |
hc-sztovuprqzgm50**** |
| SourceType |
string |
是 |
路由來源類型:
|
local |
| DestCidrBlock |
string |
是 |
目標網段。 |
172.XX.XX.0/24 |
| RouteSource |
string |
是 |
路由來源:
|
OSPF |
| RouteDistribution |
string |
是 |
路由發布策略:
|
publish |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
24C58BD0-1679-4942-9D42-00B635DAAADB |
樣本
正常返回樣本
JSON格式
{
"RequestId": "24C58BD0-1679-4942-9D42-00B635DAAADB"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | SAG.InstanceIdEmpty | You must specify the SAG instance ID. | Smart Access Gateway執行個體ID為空白。 |
| 400 | SAG.InstanceNoFound | The specified SAG instance does not exist. | Smart Access Gateway執行個體不存在。 |
| 400 | RD.InvalidDestCidrBlock | The specified destination CIDR block is invalid. | 非法的目標地址網段。 |
| 400 | RD.InvalidHcInstanceId | The specified network health check instance ID is invalid. | 非法的健全狀態檢查執行個體。 |
| 400 | RD.InvalidRouteDistribution | The specified route distribution policy is invalid. | 非法的路由發布策略。 |
| 400 | RD.InvalidRouteSource | The specified route source is invalid. | 非法路由來源。 |
| 400 | RD.InvalidSourceType | The specified route source type is invalid. | 非法的路由來源類型。 |
| 400 | HC.InstanceNoFound | The specified network health check instance does not exist. | 健全狀態檢查執行個體不存在。 |
| 400 | SAG.Arrearage | The specified SAG instance has overdue payments. Renew the instance first. | Smart Access Gateway執行個體已經欠費,請先續約。 |
| 400 | SAG.NoActive | The specified SAG instance has not been activated. | Smart Access Gateway執行個體還未啟用,請先啟用。 |
| 400 | SAG.SoftwareNotSupportFeature | The specified SAG Software instance does not support this feature. | Smart Access Gateway軟體版執行個體不支援當前特性。 |
| 500 | InternalError | An error occurred while processing your request. | 請求失敗,發生未知錯誤。 |
| 403 | FeatureNotSupport | The current edition of the smart access gateway does not support this feature. | Smart Access Gateway目前的版本不支援該功能特性。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。