调用GetMetaDBInfo获取引擎实例的基本元数据信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetMetaDBInfo |
要执行的操作。 |
AppGuid | String | 是 | odps.some_engine_name |
引擎ID,格式为引擎类型.引擎名称。 |
RegionId | String | 是 | cn-shanghai |
地域ID。 |
ClusterId | String | 否 | abc |
EMR集群的clusterId。 |
DatabaseName | String | 否 | abc |
EMR集群的数据库。 |
DataSourceType | String | 否 | emr |
数据类型,包括odps和emr。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Data | Struct |
业务数据。 |
|
AppGuid | String | odps.engine_name |
引擎ID,格式为引擎类型.引擎名称。 |
ClusterBizId | String | abc |
emr集群id,针对查询emr数据情况 |
Comment | String | 备注 |
备注 |
CreateTime | Long | 1541576644000 |
创建引擎的时间。 |
Endpoint | String | http://service.odpsstg.aliyun-inc.com/ |
服务地址Endpoint。 |
EnvType | Integer | 1 |
环境类型:0表示非生产表,1表示生产表。 |
Location | String | hdfs:// |
emr数据库对应数据存储地址。针对emr情况 |
ModifyTime | Long | 1541576644000 |
修改引擎的时间。 |
Name | String | abc |
数据库名称 |
OwnerId | String | 23 |
工作空间Owner的云账号ID。 |
OwnerName | String | 323 |
工作空间Owner的名称。 |
ProjectId | Long | 22 |
工作空间ID。 |
ProjectName | String | test |
工作空间的名称。 |
ProjectNameCn | String | 测试项目 |
工作空间的显示名称。 |
TenantId | Long | 233 |
租户ID。 |
Type | String | hive |
数据库类型 |
RequestId | String | 0bc1411515937**** |
请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=GetMetaDBInfo
&AppGuid=odps.some_engine_name
&RegionId=cn-shanghai
&<公共请求参数>
正常返回示例
XML
格式
<RequestId>0bc1411515937****</RequestId>
<Data>
<ModifyTime>1541576644000</ModifyTime>
<Comment>备注</Comment>
<OwnerName>323</OwnerName>
<ProjectName>test</ProjectName>
<ProjectNameCn>测试项目</ProjectNameCn>
<CreateTime>1541576644000</CreateTime>
<ProjectId>22</ProjectId>
<AppGuid>odps.engine_name</AppGuid>
<EnvType>1</EnvType>
<Name>abc</Name>
<TenantId>233</TenantId>
<Type>hive</Type>
<Endpoint>http://service.odpsstg.aliyun-inc.com/</Endpoint>
<OwnerId>23</OwnerId>
<ClusterBizId>abc</ClusterBizId>
<Location>hdfs://</Location>
</Data>
JSON
格式
{"RequestId":"0bc1411515937****","Data":{"ModifyTime":"1541576644000","Comment":"备注","OwnerName":"323","ProjectName":"test","ProjectNameCn":"测试项目","CreateTime":"1541576644000","ProjectId":"22","AppGuid":"odps.engine_name","EnvType":"1","Name":"abc","TenantId":"233","Type":"hive","Endpoint":"http://service.odpsstg.aliyun-inc.com/","OwnerId":"23","ClusterBizId":"abc","Location":"hdfs://"}}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
403 | Forbidden.Access | Access is forbidden. Activate DataWorks first. | 您被限制访问,请开通DataWorks企业版或旗舰版。 |
500 | InternalError.System | An internal system error occurred. Try again later. | 系统内部错误,请稍后再试。 |
500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | 系统内部错误,请稍后再试。 |
403 | ResourceNotAuthorized.Api | You are not authorized to access the resources. | 您无法访问未取得授权的资源。 |
429 | Throttling.Api | The request for this resource has exceeded your available limit. | 对该资源的请求已超过您的可用上限。 |
429 | Throttling.Api.Risk | The request for this resource has exceeded your daily available limit. | 对该资源的请求已超过您的每日可用上限。 |
429 | Throttling.System | The DataWorks system is busy. Try again later. | DataWorks系统繁忙,请稍后再试。 |
429 | Throttling.User | Your request is too frequent. Try again later. | 您的请求过于频繁,请尝试放缓请求速度。 |
500 | InternalError.Meta.NoCalcEngine | An error occurred while retrieving the compute engine based on the MaxCompute project. | 根据ODPS项目{0}获取计算引擎失败。 |
500 | InternalError.Meta.TenantTimeOut | Failed to connect to the interface network. | 接口网络不通。 |
500 | InternalError.Meta.Unknown | An unknown error occurred while processing your request. | 未知错误。 |
403 | Forbidden.Meta.NoTenant | The user is not the owner of any tenants. | 当前的用户不是任何租户的所有者。 |
400 | Invalid.Meta.AppNotExist | The MaxCompute project does not exist. | MaxCompute项目不存在。 |
400 | InvalidParameter.Meta.CommonError | The specified parameter is invalid. | 请求参数错误。 |
400 | InvalidParameter.Meta.GuidFormat | The GUID format is invalid. | Guid信息错误。 |
400 | InvalidParameter.Meta.Illegal | The app guid parameter is invalid. | App参数错误。 |
400 | InvalidParameter.Meta.IllegalDate | The date format is invalid. | 日期格式错误。 |
400 | InvalidParameter.Meta.IllegalPageError | The parameter for paging is invalid. | 分页信息错误。 |
400 | InvalidParameter.Meta.NotExist | The object does not exist. | 数据不存在。 |
访问错误中心查看更多错误码。