調(diào)用ModifyForwardEntry接口修改指定的DNAT條目。
接口說(shuō)明
-
ModifyForwardEntry 接口屬于異步接口,即系統(tǒng)會(huì)先返回一個(gè)請(qǐng)求 ID,但 DNAT 條目并未修改完成,系統(tǒng)后臺(tái)的修改任務(wù)仍在進(jìn)行。您可以調(diào)用 DescribeForwardTableEntries 查詢 DNAT 條目的狀態(tài):
-
當(dāng) DNAT 條目處于 Pending 狀態(tài)時(shí),表示 DNAT 條目正在修改中,在該狀態(tài)下,您只能執(zhí)行查詢操作,不能執(zhí)行其他操作。
-
當(dāng) DNAT 條目處于 Available 狀態(tài)時(shí),表示 DNAT 條目修改完成。
-
-
ModifyForwardEntry 接口在同一個(gè) DNAT 條目下不支持并發(fā)修改指定的 DNAT 條目。
調(diào)試
您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。
授權(quán)信息
下表是API對(duì)應(yīng)的授權(quán)信息,可以在RAM權(quán)限策略語(yǔ)句的Action
元素中使用,用來(lái)給RAM用戶或RAM角色授予調(diào)用此API的權(quán)限。具體說(shuō)明如下:
- 操作:是指具體的權(quán)限點(diǎn)。
- 訪問(wèn)級(jí)別:是指每個(gè)操作的訪問(wèn)級(jí)別,取值為寫(xiě)入(Write)、讀取(Read)或列出(List)。
- 資源類型:是指操作中支持授權(quán)的資源類型。具體說(shuō)明如下:
- 對(duì)于必選的資源類型,用背景高亮的方式表示。
- 對(duì)于不支持資源級(jí)授權(quán)的操作,用
全部資源
表示。
- 條件關(guān)鍵字:是指云產(chǎn)品自身定義的條件關(guān)鍵字。
- 關(guān)聯(lián)操作:是指成功執(zhí)行操作所需要的其他權(quán)限。操作者必須同時(shí)具備關(guān)聯(lián)操作的權(quán)限,操作才能成功。
操作 | 訪問(wèn)級(jí)別 | 資源類型 | 條件關(guān)鍵字 | 關(guān)聯(lián)操作 |
---|---|---|---|---|
vpc:ModifyForwardEntry | update |
|
| 無(wú) |
請(qǐng)求參數(shù)
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ForwardTableId | string | 是 | DNAT 條目所屬的 DNAT 列表的 ID。 | ftb-8vbx8xu2lqj9qb334**** |
ForwardEntryId | string | 是 | 要修改的 DNAT 條目的 ID。 | fwd-8vbn3bc8roygjp0gy**** |
ExternalIp | string | 否 |
| 116.85.XX.XX |
ExternalPort | string | 否 |
| 80 |
InternalIp | string | 否 |
| 10.0.0.78 |
InternalPort | string | 否 |
| 80 |
IpProtocol | string | 否 | 協(xié)議類型,取值:
| TCP |
ForwardEntryName | string | 否 | 修改后的 DNAT 條目名稱。 長(zhǎng)度為 2~128 個(gè)字符,必須以字母或中文開(kāi)頭,但不能以 | test |
RegionId | string | 是 | NAT 網(wǎng)關(guān)所在的地域 ID。 您可以通過(guò)調(diào)用 DescribeRegions 接口獲取地域 ID。 | cn-hangzhou |
ClientToken | string | 否 | 客戶端 Token,用于保證請(qǐng)求的冪等性。 從您的客戶端生成一個(gè)參數(shù)值,確保不同請(qǐng)求間該參數(shù)值唯一。ClientToken 只支持 ASCII 字符。 說(shuō)明
若您未指定,則系統(tǒng)自動(dòng)使用 API 請(qǐng)求的 RequestId 作為 ClientToken 標(biāo)識(shí)。每次 API 請(qǐng)求的 RequestId 不一樣。
| 123e4567-e89b-12d3-a456-426655440000 |
PortBreak | boolean | 否 | 是否開(kāi)啟端口突破,取值:
| false |
返回參數(shù)
示例
正常返回示例
JSON
格式
{
"RequestId": "2315DEB7-5E92-423A-91F7-4C1EC9AD97C3"
}
錯(cuò)誤碼
HTTP status code | 錯(cuò)誤碼 | 錯(cuò)誤信息 | 描述 |
---|---|---|---|
400 | UnsupportedFeature.PortSegment | The feature of PortSegment is not supported. | - |
400 | ExclusiveParam.%sAnd%s | The param of %s and %s are mutually exclusive. | 參數(shù) %s 和 %s 相互排斥。 |
400 | InvalidIp.NotInNatgw | The specified Ip not belong to natgateway. | 該 IP 地址不屬于該 NAT 網(wǎng)關(guān)。 |
400 | DuplicatedParam.InternalPort | The param of %s is duplicated. | %s的參數(shù)重復(fù)。 |
400 | DuplicatedParam.ExternalPort | The param of %s is duplicated. | %s的參數(shù)重復(fù)。 |
400 | OperationFailed.AnyPortConfig | Operation failed because any port correspondence any protocol | 操作失敗,因?yàn)槿魏味丝趯?duì)應(yīng)任何協(xié)議 |
400 | OperationUnsupported.ForwardEntry | Duplicated destination ip port is unsupported. | 不支持重復(fù)的目標(biāo)IP端口。 |
400 | IncorrectStatus.NatIp | The status of %s [%s] is incorrect. | NatIp當(dāng)前狀態(tài)不正確。 |
400 | Forbidden.IpHasBeenUsedInSnat | The source ip can't be used. Because it has been used in snat. | - |
400 | IncorrectStatus.ForwardEntry | The status of %s [%s] is incorrect. | 要?jiǎng)h除的DNAT條目實(shí)例狀態(tài)不對(duì) |
400 | InvalidExternalIp.Malformed | The specified ExternalIp is not a valid IP address. | 該公網(wǎng)IP不合法。 |
400 | InvalidInternalIp.Malformed | The specified InternalIp is not a valid IP address. | 該目標(biāo)私網(wǎng)IP不合法。 |
400 | InvalidExternalPort.Malformed | The specified ExternalPort is not a valid port. | 該公網(wǎng)端口不合法。 |
400 | InvalidInternalPort.Malformed | The specified InternalPort is not a valid port. | 該私網(wǎng)端口不合法。 |
400 | Forbidden.DestnationIpOutOfVpcCIDR | The specified Destination Ip is Out of VPC CIDR. | 該私網(wǎng)IP不在VPC的網(wǎng)段范圍內(nèi),請(qǐng)您填寫(xiě)在VPC的網(wǎng)段范圍內(nèi)的私網(wǎng)IP。 |
400 | Forbidden.DestinationIpOutOfVswitchCIDR | The specified Internal Ip is Out of VSwitch CIDR. | - |
400 | InvalidProtocal.ValueNotSupported | The specified IpProtocol does not support. | 該協(xié)議類型不支持。 |
400 | IncorretForwardEntryStatus | Some Forward entry status blocked this operation.. | 無(wú)法執(zhí)行該操作。DNAT表中有DNAT條目的狀態(tài)處于Pending或Modifying狀態(tài)。 |
400 | QuotaExceeded | Forward entry quota exceeded in this route table. | 同一個(gè)路由表中自定義路由條目不能超過(guò)200條,可以在配額管理頁(yè)面申請(qǐng)調(diào)整數(shù)量。 |
400 | ForwardEntry.Duplicated | The specified ExternalIp, IpProtocol, ExternalPort,InternalIp, InternalPort is duplicated | - |
400 | Forbidden.ExternalIp.UsedInSnatTable | The specified ExternalIp is already used in SnatTable | 該公網(wǎng)IP已經(jīng)被SNAT使用,請(qǐng)更換其他公網(wǎng)IP或?qū)?dāng)前公網(wǎng)IP的SNAT規(guī)則刪除。 |
400 | Forbidden.Already.Bounded | The specified instance already bounded | 實(shí)例已經(jīng)被綁定,請(qǐng)不要重復(fù)綁定。 |
400 | InvalidIp.NotFound | The specified ip does not exist. | - |
400 | InvalidParameter.Name.Malformed | The specified Name is not valid. | 該名稱不合法,請(qǐng)您按照正確的格式書(shū)寫(xiě)名稱。 |
400 | IncorretForwardEntryStatus | The Specified forwardEntry is not stable status, can not operation | - |
400 | IncorretStatus.ForwardEntry | The Specified forwardEntry is not stable status, can not operation | - |
400 | IllegalParam.AnyPortNotZero | Any port port must be zero. | 參數(shù)非法,DNAT轉(zhuǎn)發(fā)協(xié)議為Any時(shí),源端口和目標(biāo)端口必須為0 |
400 | Duplicated.DestinationPort | The specified param DestinationPort is duplicated. | - |
400 | InvalidForwardEntryId.NotFound | Specified forward entry ID does not exist | 該DNAT條目不存在。 |
400 | OperationUnsupported.EipInBinding | Create snat entry with eip in associating status is unsupported. | 創(chuàng)建snat不可以使用綁定中的eip |
400 | QuotaExceeded.ForwardEntrySessionManytoOne | The dnat session quota is exceed. | dnat session 多對(duì)一的配額超限。 |
404 | ResourceNotFound.NatIp | The specified resource of %s is not found. | NatIp資源找不到。 |
404 | ResourceNotFound.ForwardEntry | The specified resource of %s is not found. | 找不到指定的%s資源。 |
404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | 指定的RegionId不存在。 |
404 | InvalidExternalIp.NotFound | Specified External Ip address does not found on the VRouter | 該公網(wǎng)IP不存在。 |
404 | InvalidForwardTableId.NotFound | Specified forward table does not exist. | 指定的 DNAT 表不存在,請(qǐng)您檢查輸入?yún)?shù)是否正確。 |
訪問(wèn)錯(cuò)誤中心查看更多錯(cuò)誤碼。
變更歷史
變更時(shí)間 | 變更內(nèi)容概要 | 操作 |
---|---|---|
2023-03-01 | OpenAPI 錯(cuò)誤碼發(fā)生變更 | 查看變更詳情 |