检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Check the ECS security group configurations of the backend service and verify that the required port has been enabled. Check whether the backend service address is a public IP address. If yes, enable outbound access on the Gateways > Access Console > Gateway Information page.
If the backend address is an ECS address, the security group to which the ECS belongs may block the request in the inbound or outbound direction.
Perform the following procedure to add a DNS server IP address to the subnet configurations of the ECS in the VPC. Click in the upper left corner to select a region. In the service list, choose Compute > Elastic Cloud Server. Click the name of the ECS you want to use.
For example, six ECSs have been deployed, and a load balance channel has been created to reach ECS 01 and ECS 04. In this situation, APIG can access these two ECSs through the channel.
Public services, such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), Object Storage Service (OBS), Virtual Private Cloud (VPC), Elastic IP (EIP), and Image Management Service (IMS), are shared within the same region.
"vpc:ports:update", "vpc:ports:delete", "vpc:publicIps:update", "FunctionGraph:function:listVersion", "FunctionGraph:function:list", "FunctionGraph:function:getConfig", "ecs
Default: 1 member_type String Member type of the VPC channel. ip ecs Default: ecs type Integer VPC channel type. The default type is server. 2: Server type 3: Microservice type If vpc_channel_type is empty, the load balance channel type is determined by the type field.
Create another pay-per-use ECS and select the same VPC, subnet, and security group as the dedicated gateway. If the data center can connect to the ECS, the data center can also connect to the dedicated gateway. Exposing APIs with the Dedicated Gateway.
If the backend service is ECS, check whether the security group rules configured for the ECS block API requests. Check whether the request protocol is correct. Check whether the backend service URL is reachable. For details, see FAQs.
Check whether the Swagger file exists. 404 APIG.3092 The ECS does not exist. The ECS does not exist. The ECS has already been deleted, or the ECS ID is incorrect. 404 APIG.3094 Instance task does not exist. Instance task does not exist.
Default: 1 member_type String Member type of the VPC channel. ip ecs Default: ecs type Integer VPC channel type. The default type is server. 2: Server type 3: Microservice type If vpc_channel_type is empty, the load balance channel type is determined by the type field.
NOTE: If you have enabled public outbound access for a gateway, the IP address or domain name can be a public IP address (ECS EIP, public IP address of your own server, or ELB address), a public domain name, or a private network IP address. Private domain names cannot be used.
Resource Planning Table 1 Resource plan Resource Quantity VPC 2 Dedicated gateway 1 Load balancer 1 ECS 1 Parent topic: Exposing Backend Services Across VPCs Using a Dedicated Gateway
Create an ECS in VPC 2, and deploy the backend service on the ECS. Debug the API. Verify that the connection to the private network load balancer is successful. Video Tutorial This video shows how to open a service in a private network load balancer using APIG.
Default: 1 member_type Yes String Member type of the VPC channel. ip ecs Default: ecs type No Integer VPC channel type. The default type is server. 2: Server type 3: Microservice type If vpc_channel_type is empty, the load balance channel type is determined by the type field.
For example, six ECSs have been deployed in a VPC, and a VPC channel has been created to reach ECS 01 and ECS 04. APIG can access these two ECSs through the VPC channel. Figure 1 Accessing ECSs in a VPC channel through APIG Prerequisites You have created a cloud server.
Default: 1 member_type Yes String Member type of the VPC channel. ip ecs Default: ecs type No Integer VPC channel type. The default type is server. 2: Server type 3: Microservice type If vpc_channel_type is empty, the load balance channel type is determined by the type field.
NOTE: If you have enabled public outbound access for a gateway, the IP address or domain name can be a public IP address (ECS EIP, public IP address of your own server, or ELB address), a public domain name, or a private network IP address. Private domain names cannot be used.
Creating an ECS Log in to the cloud server console. Click Buy ECS. Configure the basic settings and click Next: Configure Network. Table 9 Basic settings Parameter Description Billing Mode Select Pay-per-use. Region Select the region where the ECS is located.