属性定义
数据源类型type为: maxcompute
支持的配置模式(ConnectionPropertiesMode):UrlMode(连接串模式)
本账号访问身份模式
名称 | 类型 | 示例值 | 是否必填 | 描述和注意点 |
project | String | hello_mc_project | 是 | MaxCompute项目名称。 |
regionId | String | cn-shanghai | 是 | MaxCompute项目所属的地域标识,例如
|
endpointMode | String | SelfAdaption | 是 | 用于表达访问地址的配置模式:
|
endpoint | String | http://service.cn-shanghai.maxcompute.aliyun-inc.com/api | 否 |
|
tunnelServer | String | http://dt.cn-shanghai.maxcompute.aliyun-inc.com | 否 |
|
authType | String | Executor | 是 | 数据源访问身份,枚举值有(忽略大小写):
|
authIdentity | String | 1150698034967265 | 否 | 同账号场景下,对应的任务提交人的云账号ID。 |
envType | String | Dev | 是 | envType表示数据源环境信息
|
跨账号模式
名称 | 类型 | 示例值 | 是否必填 | 描述和注意点 |
project | String | hello_mc_project | 是 | MaxCompute项目名称。 |
regionId | String | cn-shanghai | 是 | MaxCompute项目所属的地域标示,例如
|
endpointMode | String | SelfAdaption | 是 | 用于表达访问地址的配置模式,分别有自适应和自定义2类:
|
endpoint | String | http://service.cn-shanghai.maxcompute.aliyun-inc.com/api | 否 |
|
tunnelServer | String | http://dt.cn-shanghai.maxcompute.aliyun-inc.com | 否 |
|
authType | String | RamRole | 是 | 固定为RamRole。 |
crossAccountOwnerId | String | 1150698034967265 | 是 | 跨阿里云主账号的对方主账号ID,跨账号情况下必填。 |
crossAccountRoleName | String | mc-accross-role-name | 是 | 跨账号场景下填写的对方账号下的角色名称。 |
envType | String | Dev | 是 | envType表示数据源环境信息。
|
AK模式
名称 | 类型 | 示例值 | 是否必填 | 描述和注意点 |
project | String | hello_mc_project | 是 | MaxCompute项目名称。 |
endpoint | String | http://service.cn-shanghai.maxcompute.aliyun-inc.com/api | 是 |
|
tunnelServer | String | http://dt.cn-shanghai.maxcompute.aliyun-inc.com | 否 |
|
authType | String | Ak | 是 | 固定为Ak。 |
accessId | String | xxxxx | 是 | AK模式下访问数据源,使用的AccessID,AK模式时必填。 |
accessKey | String | xxxxx | 是 | AK模式下访问数据源,使用的AccessKey,AK模式时必填。 |
envType | String | Dev | 是 | envType表示数据源环境信息。
|
数据源配置示例
访问身份执行者模式
{
"endpoint": "http://service.cn-shanghai.maxcompute.aliyun-inc.com/api",
"envType": "Prod",
"project": "skyfire_20221228",
"dsVersion": "2",
"authType": "Executor",
"endpointMode": "Custom",
"regionId": "cn-shanghai"
}
跨账号模式
{
"project": "skyfire_20221228",
"crossAccountOwnerId": "1150698034967265",
"crossAccountRoleName": "mc-accross-role-name",
"endpointMode": "SelfAdaption",
"envType": "Prod",
"dsVersion": "2",
"authType": "RamRole",
"regionId": "cn-shanghai"
}
AK模式
{
"accessId": "mc_demo",
"endpoint": "http://service.cn-shanghai.maxcompute.aliyun-inc.com/api",
"accessKey": "***",
"envType": "Prod",
"project": "mc_demo",
"authType": "Ak"
}