本接口用于删除 SNAT 规则。
下表列出了接口特定的请求参数以及公共请求参数 Action 和 Version。 其他公共参数,请参见公共参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | DeleteSNatRule | 接口名称。当前 API 的名称为 DeleteSNatRule。 |
Version | String | 是 | 2021-04-30 | 接口版本。当前 API 的版本为 2021-04-30。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
natgw_identity | String | 是 | natgw-xf6lpcbnxbl**** | NAT 网关的 ID。您可以调用 ListNatGateways 接口查询 NAT 网关的 ID。 |
snat_rule_identity | String | 是 | snatrule-kdmmc8kc27w**** | SNAT 规则的 ID。您可以通过 ListSNatRules 接口查询 SNAT 规则的 ID。 |
该接口无特有的返回参数。
POST https://veenedge.volcengineapi.com/?Action=DeleteSNatRule&Version=2021-04-30 <其他公共参数> { "natgw_identity": "natgw-xf6lpcbnxbl****", "snat_rule_identity": "snatrule-gbr745k9g75****" }
{ "ResponseMetadata": { "RequestId": "20250915164123D30032AB91551E35****", "Action": "DeleteSNatRule", "Version": "2021-04-30", "Service": "veenedge", "Region": "cn-north-1" } }
如果响应正文中包含 Error 字段,则表示 API 请求失败。关于错误码的更多信息,参见错误码。