メタデータベースの一覧をクエリします。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ProjectId |
integer |
必須 |
DataWorks ワークスペースの ID です。ID を照会するには、ListProjects 操作を呼び出します。 |
123 |
| DataSourceType |
string |
必須 |
データソースのタイプです。値は emr に設定します。 |
emr |
| PageNum |
integer |
任意 |
ページ番号です。 |
1 |
| PageSize |
integer |
任意 |
1 ページあたりの表示件数です。デフォルト値は 10、最大値は 100 です。 |
10 |
| ClusterId |
string |
任意 |
E-MapReduce (EMR) クラスターの ID です。ID を照会するには、EMR コンソール にログインします。 |
abc |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスパラメーターです。 |
||
| RequestId |
string |
リクエスト ID です。 |
abc |
| DatabaseInfo |
object |
メタデータベースの情報です。 |
|
| TotalCount |
integer |
返されたメタデータベースの合計件数です。 |
10 |
| DbList |
array<object> |
メタデータベースです。 |
|
|
object |
|||
| Type |
string |
メタデータベースのタイプです。 |
HIVE |
| CreateTimeStamp |
integer |
メタデータベースが作成されたタイムスタンプです。ご利用のタイムゾーンに基づいて、タイムスタンプを日付に変換できます。 |
1388776825 |
| UUID |
string |
メタデータベースの UUID です。 |
32342 |
| ModifiedTimeStamp |
integer |
メタデータベースが更新されたタイムスタンプです。 |
1388776837 |
| Name |
string |
メタデータベースの名前です。 |
name |
| OwnerId |
string |
オーナー ID です。 |
1232 |
| Location |
string |
メタデータベースの URL です。 |
hdfs://localhost:777/user/hadoop/test.txt |
例
成功レスポンス
JSONJSON
{
"RequestId": "abc",
"DatabaseInfo": {
"TotalCount": 10,
"DbList": [
{
"Type": "HIVE",
"CreateTimeStamp": 1388776825,
"UUID": "32342",
"ModifiedTimeStamp": 1388776837,
"Name": "name",
"OwnerId": "1232",
"Location": "hdfs://localhost:777/user/hadoop/test.txt"
}
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | Invalid.Meta.AppNotExist | The MaxCompute project does not exist. | |
| 400 | InvalidParameter.Meta.CommonError | The specified parameter is invalid. | |
| 400 | InvalidParameter.Meta.Illegal | The app guid parameter is invalid. | |
| 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. | |
| 500 | InternalError.System | An internal system error occurred. Try again later. | |
| 500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 500 | InternalError.Meta.NoCalcEngine | An error occurred while retrieving the compute engine based on the MaxCompute project. | |
| 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. | |
| 403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | |
| 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. | |
| 429 | Throttling.User | Your request is too frequent. Try again later. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。