检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Querying Transit Subnets Function This API is used to query transit subnets. Constraints You can type a question mark (?) and an ampersand (&) at the end of the URI to define multiple search criteria. All optional parameters can be filtered. For details, see the example request. Calling
Creating a Transit Subnet Function This API is used to create a transit subnet. Calling Method For details, see Calling APIs. URI POST /v3/{project_id}/private-nat/transit-subnets Table 1 Path Parameters Parameter Mandatory Type Description project_id Yes String Specifies the project
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
Deleting a Transit Subnet Function This API is used to delete a transit subnet. Calling Method For details, see Calling APIs. URI DELETE /v3/{project_id}/private-nat/transit-subnets/{transit_subnet_id} Table 1 Path Parameters Parameter Mandatory Type Description project_id Yes String
DNAT Rules of Public NAT Gateways Permission API Action IAM Project Enterprise Project Creating a DNAT Rule POST /v2/{project_id}/dnat_rules nat:dnatRules:create √ √ Creating DNAT Rules in Batches POST /v2/{project_id}/dnat_rules/batch nat:dnatRules:create √ √ Querying DNAT Rules
SNAT Rules of Public NAT Gateways Permission API Action IAM Project Enterprise Project Creating an SNAT Rule POST /v2/{project_id}/snat_rules nat:snatRules:create √ √ Querying SNAT Rules GET /v2/{project_id}/snat_rules nat:snatRules:list √ √ Querying Details About an SNAT Rule GET
SNAT Rules of Private NAT Gateways Permission API Action IAM Project Enterprise Project Creating an SNAT Rule POST /v3/{project_id}/private-nat/snat-rules nat:privateNatSnatRules:create √ √ Querying an SNAT Rule GET /v3/{project_id}/private-nat/snat-rules/{snat_rule_id} nat:privateNatSnatRules
DNAT Rules of Private NAT Gateways Permission API Action IAM Project Enterprise Project Creating a DNAT Rule POST /v3/{project_id}/private-nat/dnat-rules nat:privateNatDnatRules:create √ √ Querying a DNAT Rule GET /v3/{project_id}/private-nat/dnat-rules/{dnat_rule_id} nat:privateNatDnatRules
Click in the upper left corner and choose Networking > NAT Gateway in the service list. On the displayed page, click the name of the NAT gateway for which you want to add the SNAT rule. On the SNAT Rules tab, click Add SNAT Rule. Configure the parameters as prompted.
- To view the inbound and outbound bandwidths of a NAT gateway, perform the following steps: On the Huawei Cloud console, choose Networking > Management & Governance > NAT Gateway. On the displayed page, click the name of the public NAT gateway used for migration.
Preserving Your Network with NAT Gateways During Cloud Migration Overview Enabling Mutual Access Between Servers in Overlapping Subnets on the Cloud Using a Specified IP Address to Access Hosts Outside a VPC
Binding an EIP to an ECS Binding an EIP to a BMS NAT Gateway Use a public NAT gateway to enable servers to share one or more EIPs to access the Internet.
Parent Topic: Private NAT Gateways
Creating and deleting NAT gateways in a single day will result in separate full-day costs for each gateway. For details, see NAT Gateway Billing or NAT Gateway Price Calculator. Migration over the Internet incurs costs for the EIPs used by your migration clusters.
Querying the Details of a Transit Subnet Function This API is used to query the details of a specified transit subnet. Calling Method For details, see Calling APIs. URI GET /v3/{project_id}/private-nat/transit-subnets/{transit_subnet_id} Table 1 Path Parameters Parameter Mandatory
Figure 1 Disabling the Internet Record the NAT gateway name and the EIP bound to the SNAT rule. After the SNAT rule is disabled, the EIP is unbound from the SNAT rule. You need to disable the corresponding EIP and NAT gateway on the EIP list and NAT gateway list.
"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
Step 5: Configure a NAT Gateway Create a NAT gateway. Log in to the console and search for NAT Gateway in the Service List. The Public NAT Gateways page of the network console is displayed. Click Buy Public NAT Gateway and configure the required parameters.
Configuring NAT Gateway on Huawei Cloud Perform the following operations to create a public NAT gateway with an EIP bound: Buy a public NAT gateway.