检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Procedure Go to the private NAT gateway list page. On the Private NAT Gateways page, click Transit IP Addresses. Figure 1 Assign Transit IP Address Configure required parameters. For details, see Table 1.
Buy an EIP (EIP-Test) in the CN-Hong Kong region, buy a public NAT gateway (NAT-Test), and add an SNAT rule for each of the following CIDR blocks: For details, see Assigning an EIP and Binding It to an ECS and Adding an SNAT Rule.
The protocol number of TCP, UDP, and ANY are 6, 17, and 0, respectively. private_ip_address String Specifies the port IP address that the NAT gateway uses.
Scenario 3: Unbinding an EIP from a NAT Gateway and Binding a New EIP to the NAT Gateway Assign an EIP by referring to 2. If you already have an EIP that you require, skip this step. Modify an SNAT rule. For details, see Modifying an SNAT Rule.
the transit IP address. network_interface_id No Array of strings Specifies the port ID of the resource that the NAT gateway is bound to.
NAT Gateway supports the following actions that can be defined in custom policies: Public NAT Gateways, including actions supported by all v2 APIs of the NAT gateway, such as creating, updating, and deleting NAT gateways.
The protocol number of TCP, UDP, and ANY are 6, 17, and 0, respectively. private_ip_address String Specifies the port IP address that the NAT gateway uses.
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.
A private NAT gateway is available. You have performed operations in Enabling Mutual Access Between Servers in Overlapping Subnets on the Cloud.
This will ensure you learn about NAT Gateway resource issues in a timely manner, so you can handle faults quickly and prevent services from being interrupted. For details about supported metrics and how to create alarm rules, see Supported Metrics. Parent topic: Security
To enable servers in a VPC, regardless of if they are in the same AZ, to share an EIP, use a public NAT gateway. For more information, see NAT Gateway User Guide.
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.
Table 4 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.
Cost Composition NAT Gateway costs consist of costs of resources and resource packages, depending on the billing items of NAT gateways. For details, see Billing Items. Huawei Cloud Cost Center helps you manage resource costs with ease.
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.
After the retention period ends, the NAT gateways will be released, and that data cannot be restored. Figure 1 Lifecycle of a pay-per-use NAT gateway For details about the grace period and retention period, see What Is a Grace Period of Huawei Cloud? How Long Is It?
Table 1 Parameter description Parameter Mandatory Type Description id No String Specifies the SNAT rule ID. limit No Integer Specifies the number of records on each page. tenant_id No String Specifies the project ID. nat_gateway_id No String Specifies the public NAT gateway ID. network_id
Table 1 Parameter description Parameter Type Description id String Specifies the DNAT rule ID. limit Integer Specifies the number of records on each page. tenant_id String Specifies the project ID. nat_gateway_id String Specifies the public NAT gateway ID. port_id String Specifies
Supported range: 0 to 65535 nat_gateway_id String Specifies the public NAT gateway ID. global_eip_id String Specifies the global EIP ID.