VPC Endpoint Service
The VPC endpoint service allows you to access the cluster through the private domain name. When the VPC endpoint service is enabled, the system creates a VPC endpoint for you by default. The VPC endpoint service is now available for the open beta test (OBT). Therefore, you need to apply for the OBT before using it.
Enabling the VPC Endpoint Service
- Log in to the CSS management console.
- On the Create Cluster page, set Advanced Settings to Custom. Enable the VPC endpoint service.
- Create Private Domain Name: If this function is enabled, the system automatically creates a private domain name for you, which you can use to access the cluster.
- Whitelist: Add an authorized account ID to the VPC endpoint service whitelist, then you can access the cluster using the domain name or the node IP address.
For multiple accounts, click
to add them. You can also click Delete in the Operation column to delete the accounts that are not allowed for access.
- If the authorization account ID is set to *, all users are allowed to access the cluster.
- You can view authorized account IDs on the My Credentials page.
Managing VPC Endpoint Service
In addition to enable VPC Endpoint Service while creating a cluster, you can enable it by performing the following steps after cluster creation.
- Log in to the CSS management console.
- On the Clusters page, click the name of the target cluster.
- Click the VPC Endpoint Service tab, and turn on the button next to VPC Endpoint Service.
indicates disabling the VPC endpoint service and
indicates enabling the VPC endpoint service.In the displayed dialog box, you can determine whether to enable the private domain name as required. After a private domain name is created, you can access the cluster using the private domain name.
Figure 1 Enabling the VPC endpoint service
- After you enable the VPC endpoint service, you can use the private domain name or node IP address generated by the endpoint to access the cluster. For details, see Accessing the Cluster Using the Private Domain Name or Node IP Address.
- If you disable the VPC endpoint service, all users cannot access the cluster using the private domain name.
- Click Yes to enable the VPC endpoint service.
- (Optional) Click Update next to Whitelist to update the existing whitelist.
- Manage connections of the VPC endpoint.
The VPC Endpoint Service page displays all VPC endpoints connected to the current VPC endpoint service. You can accept or reject the connection with these endpoints. If you reject the connection with a VPC endpoint, you cannot access the cluster through the private domain name generated by the VPC endpoint.
Accessing the Cluster Using the Private Domain Name or Node IP Address
- Obtain the private domain name or node IP address.
- Current user
Log in to the CSS console, click the target cluster name and go to the cluster details page. Click the VPC Endpoint Service tab and view the private domain name, as shown in Figure 2.
- Other user
If you have applied for the VPC endpoint service, log in to the VPC Endpoint console and click the target ID to go to the Summary page and view the private domain name. See Figure 3.
- Current user
- Run the cURL command to execute the API or call the API by using a program before accessing the cluster. For details about Elasticsearch operations and APIs, see the Elasticsearch Reference.
The ECS must meet the following requirements:
- Robust disk space is allocated for the ECS.
- The ECS and the cluster must be in the same VPC. After enabling the VPC endpoint service, you can access the cluster accross the VPC.
- The security group of the ECS must be the same as that of the cluster.
If this requirement is not met, modify the ECS security group or configure the inbound and outbound rules of the ECS security group to allow the ECS security group to be accessed by all security groups of the cluster. For details, see Configuring Security Group Rules.
- For security group rule settings of the target CSS cluster, set Protocol to TCP and Port Range to 9200 or a port range including port 9200 for both the outbound and inbound directions.
For example, run the following cURL command to view the index information in the cluster. In this example, the private network address is vpcep-7439f7f6-2c66-47d4-b5f3-790db4204b8d.region01.huaweicloud.com and port 9200 is used to access the cluster.
- If the cluster you access does not have the security mode enabled, run the following command:
curl 'http://vpcep-7439f7f6-2c66-47d4-b5f3-790db4204b8d.region01.huaweicloud.com:9200/_cat/indices'
- If the cluster you access has the security mode enabled, access the cluster using HTTPS and add the username, password and -u to the cURL command.
curl -u username:password -k 'https://vpcep-7439f7f6-2c66-47d4-b5f3-790db4204b8d.region01.huaweicloud.com:9200/_cat/indices'
Last Article: Configuring Parameters
Next Article: Kibana Public Access


Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.