This topic describes the endpoints that are used in different regions and different network connection modes. This topic also describes the network connectivity and billing rules when MaxCompute communicates with other Alibaba Cloud services.

Background information

MaxCompute provides the MaxCompute service and Tunnel service.
  • MaxCompute service: The connection address is an endpoint, which varies based on the region and network connection mode that you select. You can send all requests except data upload and download requests to MaxCompute. For example, you can send a request to create a table, delete a function, or run a computing job.

    MaxCompute also supports external tables. After you create an external table, you can use MaxCompute to read data from Object Storage Service (OSS), Tablestore, Hologres, ApsaraDB for HBase, or ApsaraDB RDS. For more information, see OSS external tables, Access Tablestore data, and Hologres external tables.

  • Tunnel service: The connection address is a Tunnel endpoint, which varies based on the region and network connection mode that you select. The Tunnel service allows you to upload data to or download data from on-premises or cloud data sources.

For more information about the network connection modes, see Network connection modes.

For more information about the MaxCompute endpoints and Tunnel endpoints that are used in different regions and network connection modes, see Endpoints in different regions (Internet), Endpoints in different regions (classic network), and Endpoints in different regions (VPC).

Scenarios

You must configure a MaxCompute endpoint or Tunnel endpoint in the following scenarios:
  • Connect to MaxCompute by using a tool
    • Use the MaxCompute client (odpscmd) to connect to MaxCompute projects. In this case, you must configure the odps_config.ini file. For more information about how to install and configure the MaxCompute client, see Install and configure the MaxCompute client.
    • Use MaxCompute Studio to connect to MaxCompute projects. For more information, see Manage project connections.
    • Use DataWorks to connect to MaxCompute data sources. For more information about how to configure MaxCompute data sources in DataWorks, see Add a MaxCompute data source.
  • Connect to MaxCompute projects by configuring code
    • Use an SDK to connect to MaxCompute projects. For more information, see Overview and SDK for Python.
    • Use a Java Database Connectivity (JDBC) driver to connect to MaxCompute projects. For more information, see JDBC.
    • Use the SQLTask class with the Tunnel service to export the execution results of SQL statements. For more information, see Use SQLTask and Tunnel to export data.

Usage notes

Before you use the Tunnel service, take note of the following points:
  • If you want to access the Tunnel service over the classic network or a virtual private cloud (VPC) of Alibaba Cloud, you must configure the endpoint of the classic network or the VPC. If you do not configure the endpoint of the classic network or the VPC, your traffic may be routed to the Internet, and you are charged for data downloads over the Internet.
  • The billing rules for the Tunnel service vary based on the regions and network connection modes that you select. For more information about the billing rules, see Billing rules.

Network connection modes

You can access the MaxCompute service and Tunnel service in the following network connection modes:
  • Internet
  • Classic network
  • VPC
Before you use MaxCompute to read data from and write data to OSS or Tablestore, take note of the following points:
  • If MaxCompute and Tablestore or OSS are deployed in the same region, all the preceding connection modes are supported. We recommend that you use the classic network or VPC for better performance.
  • If MaxCompute and Tablestore or OSS are not deployed in the same region, we recommend that you use the Internet. If you use the classic network or VPC, connectivity issues may occur.

Billing rules

The following table describes the billing rules for the MaxCompute service and Tunnel service.

Service type Billing rule
MaxCompute service You are charged for data computing when you develop different types of jobs or run SQL jobs to read data from and write data to data sources by using external tables. The billing rules vary based on the billing method that you select when you create a MaxCompute project. For more information, see Computing pricing.
Tunnel service You are not charged when you use the Tunnel service to upload data.
When you use the Tunnel service to download data from cloud data sources or on-premises data sources in a region, the following billing rules apply:
  • If your Elastic Compute Service (ECS) instance and MaxCompute project are in the same region, you can download data over the classic network or a VPC free of charge.
  • If your ECS instance and MaxCompute project are not in the same region or if the two are in the same region but your ECS instance cannot access MaxCompute, you are charged when you download data across regions over the Internet. For more information about the billing rules, see Download pricing (pay-as-you-go).
    Note The deployment and network connection mode of the Tunnel service may vary based on regions. Therefore, permanent connectivity for the Tunnel service cannot be guaranteed if you use the classic network or VPC for cross-region access.

Endpoints in different regions (Internet)

Note HTTP and HTTPS endpoints are supported. If you want to encrypt requests, use HTTPS endpoints.
District Region MaxCompute available or not Public endpoint Public Tunnel endpoint
China China (Hangzhou) Yes http://service.cn-hangzhou.maxcompute.aliyun.com/api http://dt.cn-hangzhou.maxcompute.aliyun.com
China China (Shanghai) Yes http://service.cn-shanghai.maxcompute.aliyun.com/api http://dt.cn-shanghai.maxcompute.aliyun.com
China China (Beijing) Yes http://service.cn-beijing.maxcompute.aliyun.com/api http://dt.cn-beijing.maxcompute.aliyun.com
China China (Shenzhen) Yes http://service.cn-shenzhen.maxcompute.aliyun.com/api http://dt.cn-shenzhen.maxcompute.aliyun.com
China China (Hong Kong) Yes http://service.cn-hongkong.maxcompute.aliyun.com/api http://dt.cn-hongkong.maxcompute.aliyun.com
Asia Pacific Singapore (Singapore) Yes http://service.ap-southeast-1.maxcompute.aliyun.com/api http://dt.ap-southeast-1.maxcompute.aliyun.com
Asia Pacific Australia (Sydney) Yes http://service.ap-southeast-2.maxcompute.aliyun.com/api http://dt.ap-southeast-2.maxcompute.aliyun.com
Asia Pacific Malaysia (Kuala Lumpur) Yes http://service.ap-southeast-3.maxcompute.aliyun.com/api http://dt.ap-southeast-3.maxcompute.aliyun.com
Asia Pacific Indonesia (Jakarta) Yes http://service.ap-southeast-5.maxcompute.aliyun.com/api http://dt.ap-southeast-5.maxcompute.aliyun.com
Asia Pacific Japan (Tokyo) Yes http://service.ap-northeast-1.maxcompute.aliyun.com/api http://dt.ap-northeast-1.maxcompute.aliyun.com
Europe & Americas Germany (Frankfurt) Yes http://service.eu-central-1.maxcompute.aliyun.com/api http://dt.eu-central-1.maxcompute.aliyun.com
Europe & Americas US (Silicon Valley) Yes http://service.us-west-1.maxcompute.aliyun.com/api http://dt.us-west-1.maxcompute.aliyun.com
Europe & Americas US (Virginia) Yes http://service.us-east-1.maxcompute.aliyun.com/api http://dt.us-east-1.maxcompute.aliyun.com
Europe & Americas UK (London) Yes http://service.eu-west-1.maxcompute.aliyun.com/api http://dt.eu-west-1.maxcompute.aliyun.com
Middle East & India India (Mumbai) Yes http://service.ap-south-1.maxcompute.aliyun.com/api http://dt.ap-south-1.maxcompute.aliyun.com
Middle East & India UAE (Dubai) Yes http://service.me-east-1.maxcompute.aliyun.com/api http://dt.me-east-1.maxcompute.aliyun.com

Endpoints in different regions (classic network)

Note HTTP and HTTPS endpoints are supported. If you want to encrypt requests, use HTTPS endpoints.
District Region MaxCompute available or not Classic network endpoint Classic network Tunnel endpoint
China China (Hangzhou) Available http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api http://dt.cn-hangzhou.maxcompute.aliyun-inc.com
China China (Shanghai) Yes http://service.cn-shanghai.maxcompute.aliyun-inc.com/api http://dt.cn-shanghai.maxcompute.aliyun-inc.com
China China (Beijing) Yes http://service.cn-beijing.maxcompute.aliyun-inc.com/api http://dt.cn-beijing.maxcompute.aliyun-inc.com
China China (Shenzhen) Yes http://service.cn-shenzhen.maxcompute.aliyun-inc.com/api http://dt.cn-shenzhen.maxcompute.aliyun-inc.com
China China (Hong Kong) Yes http://service.cn-hongkong.maxcompute.aliyun-inc.com/api http://dt.cn-hongkong.maxcompute.aliyun-inc.com
Asia Pacific Singapore (Singapore) Yes http://service.ap-southeast-1.maxcompute.aliyun-inc.com/api http://dt.ap-southeast-1.maxcompute.aliyun-inc.com
Asia Pacific Australia (Sydney) Yes http://service.ap-southeast-2.maxcompute.aliyun-inc.com/api http://dt.ap-southeast-2.maxcompute.aliyun-inc.com
Asia Pacific Malaysia (Kuala Lumpur) Yes http://service.ap-southeast-3.maxcompute.aliyun-inc.com/api http://dt.ap-southeast-3.maxcompute.aliyun-inc.com
Asia Pacific Indonesia (Jakarta) Yes http://service.ap-southeast-5.maxcompute.aliyun-inc.com/api http://dt.ap-southeast-5.maxcompute.aliyun-inc.com
Asia Pacific Japan (Tokyo) Yes http://service.ap-northeast-1.maxcompute.aliyun-inc.com/api http://dt.ap-northeast-1.maxcompute.aliyun-inc.com
Europe & Americas Germany (Frankfurt) Yes http://service.eu-central-1.maxcompute.aliyun-inc.com/api http://dt.eu-central-1.maxcompute.aliyun-inc.com
Europe & Americas US (Silicon Valley) Yes http://service.us-west-1.maxcompute.aliyun-inc.com/api http://dt.us-west-1.maxcompute.aliyun-inc.com
Europe & Americas US (Virginia) Yes http://service.us-east-1.maxcompute.aliyun-inc.com/api http://dt.us-east-1.maxcompute.aliyun-inc.com
Europe & Americas UK (London) Yes http://service.uk-all.maxcompute.aliyun-inc.com/api http://dt.uk-all.maxcompute.aliyun-inc.com
Middle East & India India (Mumbai) Yes http://service.ap-south-1.maxcompute.aliyun-inc.com/api http://dt.ap-south-1.maxcompute.aliyun-inc.com
Middle East & India UAE (Dubai) Yes http://service.me-east-1.maxcompute.aliyun-inc.com/api http://dt.me-east-1.maxcompute.aliyun-inc.com

Endpoints in different regions (VPC)

Note HTTP and HTTPS endpoints are supported. If you want to encrypt requests, use HTTPS endpoints.
District Region MaxCompute available or not VPC endpoint VPC Tunnel endpoint
China China (Hangzhou) Yes http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api http://dt.cn-hangzhou.maxcompute.aliyun-inc.com
China China East 2 Finance Yes http://service.cn-shanghai-finance-1.maxcompute.aliyun-inc.com/api http://dt.cn-shanghai-finance-1.maxcompute.aliyun-inc.com
China China (Beijing) Yes http://service.cn-beijing.maxcompute.aliyun-inc.com/api http://dt.cn-beijing.maxcompute.aliyun-inc.com
China China (Shenzhen) Yes http://service.cn-shenzhen.maxcompute.aliyun-inc.com/api http://dt.cn-shenzhen.maxcompute.aliyun-inc.com
China China (Hong Kong) Yes http://service.cn-hongkong.maxcompute.aliyun-inc.com/api http://dt.cn-hongkong.maxcompute.aliyun-inc.com
Asia Pacific Singapore (Singapore) Yes http://service.ap-southeast-1.maxcompute.aliyun-inc.com/api http://dt.ap-southeast-1.maxcompute.aliyun-inc.com
Asia Pacific Australia (Sydney) Yes http://service.ap-southeast-2.maxcompute.aliyun-inc.com/api http://dt.ap-southeast-2.maxcompute.aliyun-inc.com
Asia Pacific Malaysia (Kuala Lumpur) Yes http://service.ap-southeast-3.maxcompute.aliyun-inc.com/api http://dt.ap-southeast-3.maxcompute.aliyun-inc.com
Asia Pacific Indonesia (Jakarta) Yes http://service.ap-southeast-5.maxcompute.aliyun-inc.com/api http://dt.ap-southeast-5.maxcompute.aliyun-inc.com
Asia Pacific Japan (Tokyo) Yes http://service.ap-northeast-1.maxcompute.aliyun-inc.com/api http://dt.ap-northeast-1.maxcompute.aliyun-inc.com
Europe & Americas Germany (Frankfurt) Yes http://service.eu-central-1.maxcompute.aliyun-inc.com/api http://dt.eu-central-1.maxcompute.aliyun-inc.com
Europe & Americas US (Silicon Valley) Yes http://service.us-west-1.maxcompute.aliyun-inc.com/api http://dt.us-west-1.maxcompute.aliyun-inc.com
Europe & Americas US (Virginia) Yes http://service.us-east-1.maxcompute.aliyun-inc.com/api http://dt.us-east-1.maxcompute.aliyun-inc.com
Europe & Americas UK (London) Yes http://service.uk-all.maxcompute.aliyun-inc.com/api http://dt.uk-all.maxcompute.aliyun-inc.com
Middle East & India India (Mumbai) Yes http://service.ap-south-1.maxcompute.aliyun-inc.com/api http://dt.ap-south-1.maxcompute.aliyun-inc.com
Middle East & India UAE (Dubai) Yes http://service.me-east-1.maxcompute.aliyun-inc.com/api http://dt.me-east-1.maxcompute.aliyun-inc.com