データベースのリストを照会します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
dataworks:* |
get |
*すべてのリソース。
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ProjectId |
integer |
必須 |
DataWorks ワークスペースの ID。 ListProjects を呼び出してワークスペース ID を取得できます。 |
123 |
| DataSourceType |
string |
必須 |
データの型。現在、emr のみがサポートされています。 |
emr |
| PageNum |
integer |
任意 |
ページ番号。 |
1 |
| PageSize |
integer |
任意 |
ページサイズ。デフォルト値: 10。最大値: 100。 |
10 |
| ClusterId |
string |
任意 |
EMR クラスターの ID。EMR コンソール にログインしてクラスター ID を取得できます。 |
abc |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンス構造体。 |
||
| RequestId |
string |
リクエスト ID。 |
abc |
| DatabaseInfo |
object |
データベース情報。 |
|
| TotalCount |
integer |
データベースの総数。 |
10 |
| DbList |
array<object> |
データベースのリスト。 |
|
|
object |
レスポンス構造体。 |
||
| Type |
string |
データベースのタイプ。 |
HIVE |
| CreateTimeStamp |
integer |
データベースが作成された時間。値はタイムスタンプです。タイムスタンプは、タイムゾーンに基づいて日付に変換できます。 |
1388776825 |
| UUID |
string |
データベースの一意な識別子。 |
32342 |
| ModifiedTimeStamp |
integer |
データベースが最後に更新された時間。 |
1388776837 |
| Name |
string |
データベースの名前。 |
name |
| OwnerId |
string |
オーナーの ID。 |
1232 |
| Location |
string |
データベースのストレージの場所。 |
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. | MaxCompute プロジェクトが存在しません。 |
| 400 | InvalidParameter.Meta.CommonError | The specified parameter is invalid. | リクエストパラメーターが無効です。 |
| 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. | |
| 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. | API ネットワークが到達不能です。 |
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。