检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Private NAT Private Gateways Are in Specified VPCs Rule Details Table 1 Rule details Parameter Description Rule Name private-nat-gateway-authorized-vpc-only Identifier private-nat-gateway-authorized-vpc-only Description If a private NAT gateway is not in a specified VPC, this gateway
"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2" "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2/model" region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2/region" ) func main() { // The AK and SK used for authentication are
URI DELETE /v2/{project_id}/nat_gateways/{nat_gateway_id}/snat_rules/{snat_rule_id} Table 1 Path Parameters Parameter Mandatory Type Description project_id Yes String Specifies the project ID. nat_gateway_id Yes String Specifies the public NAT gateway ID. snat_rule_id Yes String Specifies
URI DELETE /v2/{project_id}/nat_gateways/{nat_gateway_id}/dnat_rules/{dnat_rule_id} Table 1 Path Parameters Parameter Mandatory Type Description project_id Yes String Specifies the project ID. nat_gateway_id Yes String Specifies the public NAT gateway ID. dnat_rule_id Yes String Specifies
Table 5 PrivateSnat Parameter Type Description id String Specifies the SNAT rule ID. project_id String Specifies the project ID. gateway_id String Specifies the private NAT gateway ID. cidr String Specifies the CIDR block that matches the SNAT rule.
Procedure Go to the private NAT gateway list page. In the Transit IP Addresses tab, locate the transit IP address you want to release and click Release in the Operation column. Click OK.
Step 6: Add the Default Route Scenarios If the VPC already has one or more NAT gateways configured, a route table must be created for the second public NAT gateway.
The time is in yyyy-mm-dd hh:mm:ss.SSSSSS format. nat_gateway_id No Array of strings Specifies the public NAT gateway ID. network_id No String Specifies the network ID used by the SNAT rule. Configure either network_id or cidr. source_type No Integer 0: VPC.
Supported range: 0 to 65535 nat_gateway_id String Specifies the public NAT gateway ID. global_eip_id String Specifies the global EIP ID.
For details, see Using a Public NAT Gateway and Direct Connect to Accelerate Internet Access.
by Tag Querying Tags of All Transit IP Addresses in a Specified Project Querying Tags of a Transit IP Address Adding a Tag to a Transit IP Address Batch Adding or Deleting Tags to or from a Transit IP Address Deleting a Tag from a Transit IP Address Parent Topic: APIs for Private NAT
The actual pricing is subject to that settled on the NAT Gateway console. We suggest that you delete private NAT gateways that are no longer needed to avoid charges. For more information about private NAT gateways, click here.
See the NAT Gateway console for the actual prices. To avoid incurring any unnecessary fees, you are advised to delete any private NAT gateways that you no longer need. For more information about private NAT gateways, see What Is NAT Gateway?
Parent topic: Using Multiple Public NAT Gateways Together in Performance-Demanding Scenarios
Deleting a DNAT Rule Function This API is used to delete a specified DNAT rule. Calling Method For details, see Calling APIs. URI DELETE /v3/{project_id}/private-nat/dnat-rules/{dnat_rule_id} Table 1 Path Parameters Parameter Mandatory Type Description project_id Yes String Specifies
Deleting an SNAT Rule Function This API is used to delete a specified SNAT rule. Calling Method For details, see Calling APIs. URI DELETE /v3/{project_id}/private-nat/snat-rules/{snat_rule_id} Table 1 Path Parameters Parameter Mandatory Type Description project_id Yes String Specifies
Click NAT Mapping Settings on the right of Direct Connect Access Address. The NAT Mapping Settings page is displayed. Determine whether to enable NAT mapping. : not enabled : enabled Configure NAT mapping. To configure address mapping, perform 6 to 8.
Table 4 NatGatewaySnatRuleResponseBody Parameter Type Description id String Specifies the SNAT rule ID. tenant_id String Specifies the project ID. nat_gateway_id String Specifies the public NAT gateway ID. cidr String Specifies a CIDR block or a host IP address.
Supported range: 0 to 65535 nat_gateway_id String Specifies the public NAT gateway ID. global_eip_id String Specifies the global EIP ID.
Exporting DNAT Rules Go to the public NAT gateway list page. On the displayed page, click the name of the public NAT gateway from which you want to export DNAT rules. On the public NAT gateway details page, click the DNAT Rules tab.