Fastone-集群数据集管理+导入导出+aksk

1集群数据集管理 1.1新增数据集

POST/api/v1/linkedDatasetsrequestBody: { "name": "test" }responseBody: { "id": 1, "name": "test", "type": "S3", "region": "north-west" "prefix": "test" }

1.2绑定数据集
POST/api/v1/linkedDatasetsrequestBody: { "name": "my-dataset", "prefix": "folder2" }responseBody: { "id": 2, "name": "my-dataset", "type": "S3", "region": "north-west", "prefix": "folder2" }

1.3查看指定数据集
GET/api/v1/linkedDatasets/{id}responseBody: { "id": 1, "name": "test", "type": "S3", "region": "north-west", "prefix": "test" }

1.4查看当前用户下的所有数据集
GET/api/v1/linkedDatasetsresponse: [ { "id": 1, "type": "S3", "region": "north-west", "name": "test", "prefix": "test" }, { "id": 2, "type": "S3", "region": "north-west", "name": "my-dataset", "prefix": "folder2" } ]

1.5删除数据集
DELETE /api/v1/linkedDatasets/{id}

2.aksk
GET/api/v1/users/{id}/akskresponse: { "accessKey": "accessKey", "secretKey": "secretKey", "region": "north-west", "provider": "AWS" }

3.数据集导入导出 3.1 导入或导出
POST/api/v1/linkedDatasets/{id}/transactionrequest: { "transactionType": "IMPORT | EXPORT", "clusterPath": "/home", "clusterId": 2 }

3.2 导入导出状态
GET/api/v1/linkedDatasets/{id}/transaction/status?clusterId=1&transactionType=IMPORT|EXPORT { "state": "NONE | PROCESSING | COMPLETE | FAILED" "msg": "This is detail msg about dataset transaction" }

    推荐阅读