ListEndpointByRegion - 查询地域连接地址

更新时间:
复制 MD 格式

查询指定地域支持的 MaxCompute 服务连接地址和 Tunnel 数据传输地址。结果按公网、VPC 和阿里云产品互联网络分组。只返回该地域已配置的网络类型。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /api/v1/endpoints HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

region

string

否

要查询的 MaxCompute 地域 ID。省略时使用请求上下文中的地域。

cn-hangzhou

返回参数

名称

类型

描述

示例值

object

接口响应,包含请求标识与地域连接地址。

requestId

string

本次调用的请求 ID。

EFAB5AA9-394A-5B28-81FB-A32F03C4DD13

httpCode

integer

请求失败时返回的 HTTP 状态码。

400

errorCode

string

请求失败时返回的错误码。

InvalidArgument

errorMsg

string

请求失败时返回的错误说明。

The specified parameter is invalid.

data

object

该地域各类网络的 MaxCompute 服务与 Tunnel 地址。

region

string

这些连接地址所属的 MaxCompute 地域 ID。

cn-hangzhou

vpc

object

专有网络(VPC)的 MaxCompute 服务及 Tunnel 连接地址。

mcEndpoint

string

专有网络(VPC)访问 MaxCompute 服务的连接地址。

https://service.cn-hangzhou-vpc.maxcompute.aliyun-inc.com/api

tunnelEndpoint

string

专有网络(VPC)进行 Tunnel 数据传输的连接地址。

https://dt.cn-hangzhou-vpc.maxcompute.aliyun-inc.com

external

object

公网的 MaxCompute 服务及 Tunnel 连接地址。

mcEndpoint

string

公网访问 MaxCompute 服务的连接地址。

https://service.cn-hangzhou.maxcompute.aliyun.com/api

tunnelEndpoint

string

公网进行 Tunnel 数据传输的连接地址。

https://dt.cn-hangzhou.maxcompute.aliyun.com

classic

object

阿里云产品互联网络的 MaxCompute 服务及 Tunnel 连接地址。接口沿用 classic 字段名。

mcEndpoint

string

阿里云产品互联网络访问 MaxCompute 服务的连接地址。

https://service.cn-hangzhou-intranet.maxcompute.aliyun-inc.com/api

tunnelEndpoint

string

阿里云产品互联网络进行 Tunnel 数据传输的连接地址。

https://dt.cn-hangzhou-intranet.maxcompute.aliyun-inc.com

示例

正常返回示例

JSON格式

{
  "requestId": "EFAB5AA9-394A-5B28-81FB-A32F03C4DD13",
  "httpCode": 400,
  "errorCode": "InvalidArgument",
  "errorMsg": "The specified parameter is invalid.",
  "data": {
    "region": "cn-hangzhou",
    "vpc": {
      "mcEndpoint": "https://service.cn-hangzhou-vpc.maxcompute.aliyun-inc.com/api",
      "tunnelEndpoint": "https://dt.cn-hangzhou-vpc.maxcompute.aliyun-inc.com"
    },
    "external": {
      "mcEndpoint": "https://service.cn-hangzhou.maxcompute.aliyun.com/api",
      "tunnelEndpoint": "https://dt.cn-hangzhou.maxcompute.aliyun.com"
    },
    "classic": {
      "mcEndpoint": "https://service.cn-hangzhou-intranet.maxcompute.aliyun-inc.com/api",
      "tunnelEndpoint": "https://dt.cn-hangzhou-intranet.maxcompute.aliyun-inc.com"
    }
  }
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。