最近更新时间:2024.04.18 19:19:25
首次发布时间:2021.12.28 08:28:52
调用 ModifySnatEntryAttributes 接口,修改SNAT规则的名称、关联的公网IP。
参数名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifySnatEntryAttributes | 要执行的操作,取值:ModifySnatEntryAttributes。 |
Version | String | 是 | 2020-04-01 | API的版本信息,当前版本为:2020-04-01。 |
SnatEntryId | String | 是 | snat-fgeb3efghxs**** | SNAT规则的ID。 |
SnatEntryName | String | 否 | snat-01 | SNAT规则的名称。
|
EipId | String | 否 | eip-dukg5oxruwg****,eip-dukg5oxruwi**** | SNAT规则关联的公网IP,多个公网IP的ID之间用英文逗号分隔。
说明 当SNAT规则关联多个公网IP时,建议将公网IP加入共享带宽包,避免业务因其中的单个公网IP带宽达到上限而导致流量丢包。 |
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 2021062415303301022514515207C4**** | 请求ID。 |
GET /?Action=ModifySnatEntryAttributes&Version=2020-04-01&SnatEntryId=snat-2fedi096gdiww59gp680r****&EipId=eip-2feaac9wtccn459gp67qe**** HTTP/1.1 Host: open.volcengineapi.com Service: natgateway Region: cn-beijing
{ "ResponseMetadata": { "RequestId": "2021062415303301022514515207C4****", "Action": "ModifySnatEntryAttributes", "Version": "2020-04-01", "Service": "natgateway", "Region": "cn-beijing" }, "Result":{ "RequestId": "2021062415303301022514515207C4****" } }
公共错误码,请参见 公共错误码 。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidEip.InstanceMismatch | The specified elastic ip and instance mismatch. | 指定的公网IP和实例不匹配。 |
400 | InvalidNatGateway.InvalidStatus | The specified NAT gateway is not in the correct status for the request. | 指定的NAT网关所处的状态无法响应该请求。 |
400 | LimitExceeded.EipsPerSnatEntry | You've reached the limit on the number of EIPs per snat entry. | 已达到每条SNAT规则支持关联公网IP的数量上限。 |
404 | InvalidSnatEntry.NotFound | The specified SNAT entry does not exist. | 指定的SNAT规则不存在。 |
404 | InvalidEip.NotFound | The specified EIP does not exist. | 指定的公网IP不存在。 |
409 | InvalidSnatEntry.EipConflict | The specified EIP conflicts with that of another EIP in the snat entry. | SNAT规则中的公网IP冲突。 |
412 | InvalidNatGateway.Expired | The specified NatGateway has expired. | 指定的NAT网关实例已到期。 |