調用UpdateTransitRouterVpnAttachmentAttribute介面修改企業版轉寄路由器下VPN串連的名稱、描述資訊、是否允許自動發布路由。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cen:UpdateTransitRouterVpnAttachmentAttribute |
update |
*TransitRouterVpnAttachment
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的等冪性。 從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。 說明
若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 不一樣。 |
123e4567-e89b-12d3-a456-42665544**** |
| DryRun |
boolean |
否 |
是否只預檢此次請求。取值:
|
false |
| TransitRouterAttachmentId |
string |
是 |
VPN 串連 ID。 |
tr-attach-a6p8voaodog5c0**** |
| TransitRouterAttachmentName |
string |
否 |
VPN 串連的新名稱。 名稱可以為空白或長度為 1~128 個字元,不能以 http://或 https://開頭。 |
nametest |
| TransitRouterAttachmentDescription |
string |
否 |
VPN 串連新的描述資訊。 描述可以為空白或長度為 1~256 個字元,不能以 http://或 https://開頭。 |
desctest |
| AutoPublishRouteEnabled |
boolean |
否 |
是否允許轉寄路由器執行個體自動向 IPsec 串連發布路由條目。取值:
|
true |
| OrderType |
string |
否 |
PayByCenOwner |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回結果。 |
||
| RequestId |
string |
請求 ID。 |
1AB038F2-96E5-560B-9F6E-734311D466FA |
樣本
正常返回樣本
JSON格式
{
"RequestId": "1AB038F2-96E5-560B-9F6E-734311D466FA"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidTransitRouterAttachmentId.NotFound | TransitRouterAttachmentId is not found. | 網路連接執行個體ID不存在。 |
| 400 | IncorrectStatus.TransitRouterAttachmentId | The resource is not in a valid state for the attachment operation. | 當前該Attachment不處於穩態,不支援該操作。 |
| 400 | InvalidParameter | Invalid parameter. | 參數不合法。 |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | 帳號無許可權操作。 |
| 400 | InvalidParameter.OrderType | The specified parameter OrderType is invalid. | 請求參數OrderType不合法。 |
| 400 | InvalidOperation.OrderTypeMustMatchGrantCrossAccount | The OrderType must be the same as the OrderType in the grant cross-account record. | 更新後的網路執行個體串連的付費方必須與跨帳號授權記錄的付費方一致。 |
| 400 | OperationFailed.GrantCrossAccountNotExist | Cross-account authorization does not exist. | 跨帳號授權不存在。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。