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 data transfer 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.
Tunnel data transfer service: The connection address is a Tunnel endpoint, which varies based on the region and network connection mode that you select. The Tunnel data transfer 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 (VPC), and Endpoints in different regions (internal network for connecting cloud products).
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 SDK for Java and Examples of using the SDK for Python: SQL statements.
Use a Java Database Connectivity (JDBC) driver to connect to MaxCompute projects. For more information, see JDBC.
Use the SQLTask class with the Tunnel data transfer service to export the execution results of SQL statements. For more information, see Use SQLTask and Tunnel to export data.
Precautions
Before you use the Tunnel data transfer service, take note of the following points:
If you do not configure a Tunnel endpoint, the MaxCompute client automatically obtains a Tunnel endpoint from MaxCompute. MaxCompute returns a Tunnel endpoint to the MaxCompute client based on factors such as the network type requested by the MaxCompute client and the workloads of Tunnel endpoints. The network types requested by the MaxCompute client include Internet and virtual private cloud (VPC).
The Tunnel endpoint that the MaxCompute client automatically obtains from MaxCompute is not fixed. We recommend that you plan security policies for the network in which the MaxCompute client resides, including but not limited to network whitelists, firewall rules, and VPC security group rules. This ensures that the MaxCompute client can access the obtained Tunnel endpoint as expected.
NoteTunnel endpoints that the MaxCompute client dynamically obtains from MaxCompute include long-term and short-term Tunnel endpoints. Short-term Tunnel endpoints serve for the high availability of MaxCompute. MaxCompute automatically creates and deletes short-term Tunnel endpoints. We recommend that you do not save short-term Tunnel endpoints. For more information about long-term Tunnel endpoints, see Endpoints in different regions (Internet) and Endpoints in different regions (internal network for connecting cloud products).
If you have configured a Tunnel endpoint, the MaxCompute client uses the Tunnel endpoint that you configured instead of obtaining a Tunnel endpoint from MaxCompute.
You must configure a Tunnel endpoint that resides in the same region as the MaxCompute client and has the same network type as the MaxCompute client to ensure that the Tunnel endpoint can be normally accessed.
The billing rules for the Tunnel data transfer service vary based on the region and the network type that you select. For more information about the billing rules, see Billing rules.
To avoid compatibility issues, we recommend that you use data integration tools or services that are compatible with MaxCompute, such as Data Integration of DataWorks.
The MaxCompute classic network will be discontinued on November 30, 2024 (Wednesday). It will be replaced by the internal network for connecting cloud products. Please confirm and switch to the VPC or the internal network to avoid any disruption to your business due to network connection interruptions.
Network connection modes
You can access the MaxCompute service and Tunnel data transfer service in the following network connection modes:
Access MaxCompute service from Internet.
Tunnel data transfer service.
Access MaxCompute service and Tunnel data transfer service from a VPC.
Access MaxCompute service and Tunnel data transfer service from the internal network for connecting cloud products.
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 VPC or the internal network for connecting cloud products 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 VPC or the internal network for connecting cloud products, connectivity issues may occur.
Billing rules
The following table describes the billing rules for the MaxCompute service and Tunnel data transfer 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 data transfer service to upload data. When you use the Tunnel data transfer service to download data from cloud data sources or on-premises data sources in a region, the following billing rules apply:
|
Endpoints in different regions (Internet)
HTTP and HTTPS endpoints are supported. HTTPS uses TLS v1.2 to establish a secure connection.
The Tunnel endpoints provided in the following table can be configured only for the tunnel endpoint
parameter.
District | Region | MaxCompute available or not | Public endpoint | Public Tunnel endpoint |
China | China (Hangzhou) | Yes | https://service.cn-hangzhou.maxcompute.aliyun.com/api | https://dt.cn-hangzhou.maxcompute.aliyun.com |
China | China (Shanghai) | Yes | https://service.cn-shanghai.maxcompute.aliyun.com/api | https://dt.cn-shanghai.maxcompute.aliyun.com |
China | China (Beijing) | Yes | https://service.cn-beijing.maxcompute.aliyun.com/api | https://dt.cn-beijing.maxcompute.aliyun.com |
China | China (Ulanqab) | Yes | https://service.cn-wulanchabu.maxcompute.aliyun.com/api | https://dt.cn-wulanchabu.maxcompute.aliyun.com |
China | China (Shenzhen) | Yes | https://service.cn-shenzhen.maxcompute.aliyun.com/api | https://dt.cn-shenzhen.maxcompute.aliyun.com |
China | China (Hong Kong) | Yes | https://service.cn-hongkong.maxcompute.aliyun.com/api | https://dt.cn-hongkong.maxcompute.aliyun.com |
Asia Pacific | Singapore | Yes | https://service.ap-southeast-1.maxcompute.aliyun.com/api | https://dt.ap-southeast-1.maxcompute.aliyun.com |
Asia Pacific | Australia (Sydney) Closing Down | Yes | https://service.ap-southeast-2.maxcompute.aliyun.com/api | https://dt.ap-southeast-2.maxcompute.aliyun.com |
Asia Pacific | Malaysia (Kuala Lumpur) | Yes | https://service.ap-southeast-3.maxcompute.aliyun.com/api | https://dt.ap-southeast-3.maxcompute.aliyun.com |
Asia Pacific | Indonesia (Jakarta) | Yes | https://service.ap-southeast-5.maxcompute.aliyun.com/api | https://dt.ap-southeast-5.maxcompute.aliyun.com |
Asia Pacific | Japan (Tokyo) | Yes | https://service.ap-northeast-1.maxcompute.aliyun.com/api | https://dt.ap-northeast-1.maxcompute.aliyun.com |
Europe and Americas | Germany (Frankfurt) | Yes | https://service.eu-central-1.maxcompute.aliyun.com/api | https://dt.eu-central-1.maxcompute.aliyun.com |
Europe and Americas | US (Silicon Valley) | Yes | https://service.us-west-1.maxcompute.aliyun.com/api | https://dt.us-west-1.maxcompute.aliyun.com |
Europe and Americas | US (Virginia) | Yes | https://service.us-east-1.maxcompute.aliyun.com/api | https://dt.us-east-1.maxcompute.aliyun.com |
Europe and Americas | UK (London) | Yes | https://service.eu-west-1.maxcompute.aliyun.com/api | https://dt.eu-west-1.maxcompute.aliyun.com |
Middle East and India | UAE (Dubai) | Yes | https://service.me-east-1.maxcompute.aliyun.com/api | https://dt.me-east-1.maxcompute.aliyun.com |
Middle East and India | SAU (Riyadh - Partner Region) | Yes | https://service.me-central-1.maxcompute.aliyun.com/api | https://dt.me-central-1.maxcompute.aliyun.com |
Endpoints in different regions (VPC)
HTTP and HTTPS endpoints are supported. HTTPS uses TLS v1.2 to establish a secure connection.
The Tunnel endpoints provided in the following table can be configured only for the tunnel endpoint
parameter.
District | Region | MaxCompute available or not | VPC endpoint | VPC Tunnel endpoint |
China | China (Hangzhou) | Yes | https://service.cn-hangzhou-vpc.maxcompute.aliyun-inc.com/api | https://dt.cn-hangzhou-vpc.maxcompute.aliyun-inc.com |
China | China East 2 Finance | Yes | https://service.cn-shanghai-finance-1-vpc.maxcompute.aliyun-inc.com/api | https://dt.cn-shanghai-finance-1-vpc.maxcompute.aliyun-inc.com |
China | China (Beijing) | Yes | https://service.cn-beijing-vpc.maxcompute.aliyun-inc.com/api | https://dt.cn-beijing-vpc.maxcompute.aliyun-inc.com |
China | China (Ulanqab) | Yes | https://service.cn-wulanchabu-vpc.maxcompute.aliyun-inc.com/api | https://dt.cn-wulanchabu-vpc.maxcompute.aliyun-inc.com |
China | China (Shenzhen) | Yes | https://service.cn-shenzhen-vpc.maxcompute.aliyun-inc.com/api | https://dt.cn-shenzhen-vpc.maxcompute.aliyun-inc.com |
China | China (Hong Kong) | Yes | https://service.cn-hongkong-vpc.maxcompute.aliyun-inc.com/api | https://dt.cn-hongkong-vpc.maxcompute.aliyun-inc.com |
Asia Pacific | Singapore | Yes | https://service.ap-southeast-1-vpc.maxcompute.aliyun-inc.com/api | https://dt.ap-southeast-1-vpc.maxcompute.aliyun-inc.com |
Asia Pacific | Australia (Sydney) Closing Down | Yes | https://service.ap-southeast-2.maxcompute.aliyun-inc.com/api | https://dt.ap-southeast-2.maxcompute.aliyun-inc.com |
Asia Pacific | Malaysia (Kuala Lumpur) | Yes | https://service.ap-southeast-3-vpc.maxcompute.aliyun-inc.com/api | https://dt.ap-southeast-3-vpc.maxcompute.aliyun-inc.com |
Asia Pacific | Indonesia (Jakarta) | Yes | https://service.ap-southeast-5-vpc.maxcompute.aliyun-inc.com/api | https://dt.ap-southeast-5-vpc.maxcompute.aliyun-inc.com |
Asia Pacific | Japan (Tokyo) | Yes | https://service.ap-northeast-1-vpc.maxcompute.aliyun-inc.com/api | https://dt.ap-northeast-1-vpc.maxcompute.aliyun-inc.com |
Europe and Americas | Germany (Frankfurt) | Yes | https://service.eu-central-1-vpc.maxcompute.aliyun-inc.com/api | https://dt.eu-central-1-vpc.maxcompute.aliyun-inc.com |
Europe and Americas | US (Silicon Valley) | Yes | https://service.us-west-1-vpc.maxcompute.aliyun-inc.com/api | https://dt.us-west-1-vpc.maxcompute.aliyun-inc.com |
Europe and Americas | US (Virginia) | Yes | https://service.us-east-1-vpc.maxcompute.aliyun-inc.com/api | https://dt.us-east-1-vpc.maxcompute.aliyun-inc.com |
Europe and Americas | UK (London) | Yes | https://service.eu-west-1-vpc.maxcompute.aliyun-inc.com/api | https://dt.eu-west-1-vpc.maxcompute.aliyun-inc.com |
Middle East and India | UAE (Dubai) | Yes | https://service.me-east-1-vpc.maxcompute.aliyun-inc.com/api | https://dt.me-east-1-vpc.maxcompute.aliyun-inc.com |
Middle East and India | SAU (Riyadh - Partner Region) | Yes | https://service.me-central-1-vpc.maxcompute.aliyun-inc.com/api | https://dt.me-central-1-vpc.maxcompute.aliyun-inc.com |
Endpoints in different regions (internal network for connecting cloud products)
HTTP and HTTPS endpoints are supported. HTTPS uses TLS v1.2 to establish a secure connection.
The Tunnel endpoints provided in the following table can be configured only for the tunnel endpoint
parameter.
District | Region | MaxCompute available or not | Classic network endpoint | Classic network Tunnel endpoint |
China | China (Hangzhou) | Yes | https://service.cn-hangzhou-intranet.maxcompute.aliyun-inc.com/api | https://dt.cn-hangzhou-intranet.maxcompute.aliyun-inc.com |
China | China (Shanghai) | Yes | https://service.cn-shanghai-intranet.maxcompute.aliyun-inc.com/api | https://dt.cn-shanghai-intranet.maxcompute.aliyun-inc.com |
China | China (Beijing) | Yes | https://service.cn-beijing-intranet.maxcompute.aliyun-inc.com/api | https://dt.cn-beijing-intranet.maxcompute.aliyun-inc.com |
China | China (Ulanqab) | Yes | https://service.cn-wulanchabu-intranet.maxcompute.aliyun-inc.com/api | https://dt.cn-wulanchabu-intranet.maxcompute.aliyun-inc.com |
China | China (Shenzhen) | Yes | https://service.cn-shenzhen-intranet.maxcompute.aliyun-inc.com/api | https://dt.cn-shenzhen-intranet.maxcompute.aliyun-inc.com |
China | China (Hong Kong) | Yes | https://service.cn-hongkong-intranet.maxcompute.aliyun-inc.com/api | https://dt.cn-hongkong-intranet.maxcompute.aliyun-inc.com |
Asia Pacific | Singapore | Yes | https://service.ap-southeast-1-intranet.maxcompute.aliyun-inc.com/api | https://dt.ap-southeast-1-intranet.maxcompute.aliyun-inc.com |
Asia Pacific | Australia (Sydney) Closing Down | Yes | https://service.ap-southeast-2.maxcompute.aliyun-inc.com/api | https://dt.ap-southeast-2.maxcompute.aliyun-inc.com |
Asia Pacific | Malaysia (Kuala Lumpur) | Yes | https://service.ap-southeast-3-intranet.maxcompute.aliyun-inc.com/api | https://dt.ap-southeast-3-intranet.maxcompute.aliyun-inc.com |
Asia Pacific | Indonesia (Jakarta) | Yes | https://service.ap-southeast-5-intranet.maxcompute.aliyun-inc.com/api | https://dt.ap-southeast-5-intranet.maxcompute.aliyun-inc.com |
Asia Pacific | Japan (Tokyo) | Yes | https://service.ap-northeast-1-intranet.maxcompute.aliyun-inc.com/api | https://dt.ap-northeast-1-intranet.maxcompute.aliyun-inc.com |
Europe and Americas | Germany (Frankfurt) | Yes | https://service.eu-central-1-intranet.maxcompute.aliyun-inc.com/api | https://dt.eu-central-1-intranet.maxcompute.aliyun-inc.com |
Europe and Americas | US (Silicon Valley) | Yes | https://service.us-west-1-intranet.maxcompute.aliyun-inc.com/api | https://dt.us-west-1-intranet.maxcompute.aliyun-inc.com |
Europe and Americas | US (Virginia) | Yes | https://service.us-east-1-intranet.maxcompute.aliyun-inc.com/api | https://dt.us-east-1-intranet.maxcompute.aliyun-inc.com |
Europe and Americas | UK (London) | Yes | https://service.eu-west-1-intranet.maxcompute.aliyun-inc.com/api | https://dt.eu-west-1-intranet.maxcompute.aliyun-inc.com |
Middle East and India | UAE (Dubai) | Yes | https://service.me-east-1-intranet.maxcompute.aliyun-inc.com/api | https://dt.me-east-1-intranet.maxcompute.aliyun-inc.com |
Middle East and India | SAU (Riyadh - Partner Region) | Yes | https://service.me-central-1-intranet.maxcompute.aliyun-inc.com/api | https://dt.me-central-1-intranet.maxcompute.aliyun-inc.com |