检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
"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
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.
The VPC, NAT gateway, Direct Connect connection, and ECS must be in the same region. Tasks Create a service VPC and a transit VPC. Configure a Direct Connect connection. Buy a private NAT gateway. Procedure Create a service VPC and a transit VPC.
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 3: Check the Default Route Scenarios After the public NAT gateway is purchased, go to the route table list, locate the default route table of the VPC where you deploy the public NAT gateway, and check whether there is a default route with the next hop set to the 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.
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
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.
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
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.
Parent topic: Using Multiple Public NAT Gateways Together in Performance-Demanding Scenarios
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.
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.
"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
"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
"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
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.