データ移行タスクの情報をクエリします。
デバッグ
リクエストヘッダー
この操作では、共通のリクエストヘッダーのみを使用します。 詳細については、「共通リクエストヘッダー」をご参照ください。
リクエスト構文
GET /openapi/instances/{InstanceId}/data-task HTTP/1.1
リクエストパラメーター
| パラメーター | タイプ | 位置 | 必須 | 例 | 説明 |
| InstanceId | String | Path | Yes | es-cn-oew1oxiro000f**** | インスタンス ID。 |
レスポンスパラメーター
| パラメーター | タイプ | 例 | 説明 |
| RequestId | String | 5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D*** | リクエスト ID。 |
| Result | Array of Result | レスポンスパラメーター。 |
|
| createTime | String | 2020-07-30 06:32:18 | コマンドタスクが作成された時刻。 |
| taskId | String | et_cn_mfv1233r47272**** | タスク ID。 |
| status | String | SUCCESS | バッチタスクのステータス。 |
| sinkCluster | Object | 移行先クラスターの情報。 |
|
| index | String | product_info | ターゲットインデックス。 |
| type | String | _doc | インデックスのタイプ。 |
| endpoint | String | http://192.168.xx.xx:4101 | 移行先クラスターのパブリックエンドポイント。 |
| vpcId | String | vpc-2ze55voww95g82gak**** | クラスターが属する VPC の ID。 |
| vpcInstancePort | String | 9200 | クラスターのアクセス ポート番号。 |
| vpcInstanceId | String | es-cn-09k1rnu3g0002****-worker | 現在のクラスターまたは SLB (Server Load Balancer) インスタンスの ID。 |
| dataSourceType | String | 1 | 移行先クラスターのタイプ。 デフォルト値は Elasticsearch です。 |
| sourceCluster | Object | 移行元クラスターの情報。 |
|
| index | String | product_info | 移行するデータのインデックス。 |
| settings | String | {\n \"index\": {\n \"replication\": {\n}.....}} | クラスターの設定。 |
| mapping | String | {\"_doc\":{\"properties\":{\"user\":{\"properties\":{\"last\":{\"type\":\"text\",...}}}}}} | クラスターのマッピング構成。 |
| type | String | _doc | インデックスのタイプ。 |
| routing | String | _id | インデックスのルーティングフィールド。 デフォルトでは、プライマリキーフィールドが使用されます。 |
| dataSourceType | String | elasticsearch | 移行元クラスターのタイプ。 デフォルト値は Elasticsearch です。 |
例
リクエストの例
GET /openapi/instances/es-cn-oew1oxiro000f****/data-task HTTP/1.1
共通リクエストヘッダー
正常なレスポンスの例
JSON 形式
HTTP/1.1 200 OK
Content-Type:application/json
{
"Result" : [ {
"taskId" : "et_cn_mfv1233r47272****",
"sourceCluster" : {
"dataSourceType" : "elasticsearch",
"endpoint" : "http://192.168.xx.xx:4101",
"vpcInstancePort" : 9200,
"vpcId" : "vpc-2ze55voww95g82gak****",
"vpcInstanceId" : "es-cn-09k1rnu3g0002****-worker",
"index" : "product_info",
"type" : "products"
},
"sinkCluster" : {
"dataSourceType" : "elasticsearch",
"index" : "product_info01",
"type" : "_doc",
"settings" : "{\n \"index\": {\n \"replication\": {\n}.....}}",
"mapping" : "{\"_doc\":{\"properties\":{\"user\":{\"properties\":{\"last\":{\"type\":\"text\",...}}}}}}"
},
"status" : "SUCCESS",
"createTime" : "2020-08-03 08:36:19"
}, {
"taskId" : "et_cn_vb9g57i4h4eyp****",
"sourceCluster" : {
"dataSourceType" : "elasticsearch",
"endpoint" : "http://192.168.xx.xx:4096",
"vpcInstancePort" : 9200,
"vpcId" : "vpc-2ze55voww95g82gak****",
"vpcInstanceId" : "es-cn-oew1oxiro000f****-worker",
"index" : "my_index",
"type" : "_doc"
},
"sinkCluster" : {
"dataSourceType" : "elasticsearch",
"index" : "my_index003",
"type" : "_doc",
"settings" : "{\n \"index\": {\n \"replication\": {\n}.....}}",
"mapping" : "{\"_doc\":{\"properties\":{\"user\":{\"properties\":{\"last\":{\"type\":\"text\",...}}}}}}"
},
"status" : "SUCCESS",
"createTime" : "2020-07-30 06:32:18"
} ],
"RequestId" : "8FB71A9A-1ACE-40DA-ADC0-2B3DB44F****"
}
エラーコード
エラーコードの一覧については、「サービスエラーコード」をご参照ください。