All Products
Search
Document Center

MaxCompute:Accessing specific Alibaba Cloud services

Last Updated:Dec 04, 2025

This document describes how to access Alibaba Cloud services, such as Object Storage Service (OSS), Data Lake Formation (DLF), Tablestore, and Hologres, using MaxCompute SQL, User-Defined Functions (UDFs), Spark, MapReduce (MR), PyODPS/Mars, foreign tables, or a data lakehouse architecture. To connect to these services, you must use the internal network addresses that they provide.

Scope

  • Supported top-level domains: aliyuncs.com, aliyun.com, amap.com, dingtalk.com, alicloudapi.com, cainiao.com, alicdn.com, taobao.com, alibaba.com, alipaydev.com, and alibabadns.com.

  • IPv6 addresses are not supported. There is no limit on the number of public IP addresses.

  • If an external network address fails automatic verification, delete the address and resubmit it. If you still need to use the address, submit a ticket to request its configuration. For more information, see Network connection process.

Access OSS and Tablestore using foreign tables

If you create a foreign table for OSS or Tablestore, you can access them through their internal network endpoints.

  • For the internal network endpoints of OSS in each region, see the Internal Endpoint column in the Regions and endpoints document.

  • For the internal network endpoints of Tablestore in each region, see the Classic Network address in Service endpoints.

For an example of how to access a service using a foreign table, see Create a Hologres foreign table.

Access OSS and Tablestore using UDFs

To access OSS or Tablestore by calling a UDF, you must use their public endpoints. Before using a public endpoint, add it to the MaxCompute whitelist.

  1. Add the public endpoints for OSS or Tablestore to the MaxCompute whitelist.

    Submit a ticket to add the public endpoints for OSS or Tablestore to the MaxCompute whitelist.

    You can find the public endpoints for each region as follows:

    • For the public endpoints of OSS in each region, see the Public Endpoint column in the Regions and endpoints document.

    • For the public endpoints of Tablestore in each region, see the Public network address in Service endpoints.

  2. Use the public endpoint to access OSS or Tablestore.

    For an example of a Spark on MaxCompute task, see Spark access to OSS.