An endpoint is the entry point for accessing an Alibaba Cloud service. It defines the network address, including the protocol, hostname, and port, that you use to make API requests to services, such as Alibaba Cloud Model Studio, Elastic Compute Service (ECS), and Object Storage Service (OSS).
Endpoint classification
Endpoint types by network environment
Endpoints can be classified based on the network environment from which they are accessed.
Network environment | Description | Characteristics |
Public endpoint | An address that can be accessed over the Internet. |
|
VPC endpoint | An address that can only be accessed from within an Alibaba Cloud VPC. |
|
Endpoint types by deployment model
Endpoints can also be categorized based on how the underlying service is deployed.
Deployment model | Description | Characteristics |
Central endpoint | The service is deployed in one or a few core regions, and all user requests are processed in these regions. |
|
Regional endpoint | The service is deployed in multiple regions, and user requests are processed within the specific region they are sent to. |
|
Endpoint formats
Central endpoints
Central endpoints: The format is [product_code].aliyuncs.com for single-region deployments and [product_code].[region_id].aliyuncs.com for multi-region deployments.
VPC endpoints: The format is [product_code].vpc-proxy.aliyuncs.com. However, since this can vary by service, you should always verify the correct endpoint for your specific cloud service. For more information, see the "View the endpoints of a cloud service" section in this topic.
Regional endpoints
Public endpoints: The format is [product_code].[region_id].aliyuncs.com. For example, the endpoint for ECS in the China (Hangzhou) region is ecs.cn-hangzhou.aliyuncs.com.
VPC endpoints: The format is [product_code]-vpc.[region_id].aliyuncs.com. For example, the endpoint for ECS in the China (Hangzhou) region is ecs-vpc.cn-hangzhou.aliyuncs.com.
How to choose an endpoint
Use case | Recommended endpoint |
Accessing services from the Internet or across different regions. | Use a public endpoint. Note You cannot connect to a VPC endpoint in another region, even if you establish VPC peering connections or use Cloud Enterprise Network (CEN) for communication between VPCs. For example, you cannot connect to ecs-vpc.cn-hangzhou.aliyuncs.com from an ECS instance in the cn-chengdu region. |
Communication between resources within the same region, such as an ECS instance accessing an ApsaraDB RDS instance. | Use a VPC endpoint. |
Quickly testing or developing from a local environment. | Use a public endpoint. |
An application on an ECS instance without a public IP address needs to call other cloud services in the same region. | Use a VPC endpoint. |
View the endpoints of a cloud service
View the Endpoints topic in the API Reference section of the service documentation in Help Center.
Go to the OpenAPI Portal, navigate to the desired cloud service, and find the supported endpoints on its main page.