Retrieves the details of a MaxCompute Migration Assist (MMA) job that fetches metadata.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:GetMmsFetchMetadataJob |
get |
*Project
|
None | None |
Request syntax
GET /api/v1/mms/datasources/{sourceId}/scans/{scanId} HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| sourceId |
integer |
Yes |
The data source ID. |
2000015 |
| scanId |
integer |
Yes |
The ID of the asynchronous task for metadata synchronization. |
1000002 |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
ApiRes |
||
| requestId |
string |
The request ID. |
5CA6292A-E301-5CD8-B4E2-AF060F99147B |
| data |
object |
The returned data. |
|
| id |
integer |
The ID of the asynchronous task. |
1000002 |
| sourceId |
integer |
The data source ID. |
2000015 |
| status |
string |
The status of the asynchronous task for metadata synchronization. |
SCAN_DOING |
| progress |
number |
The progress of metadata synchronization. Valid values: 1 to 10000. |
5000 |
| result |
string |
The result of metadata synchronization. |
{"databases":5,"tables":75,"partitions":215} |
| errorMsg |
string |
The error message. |
unexpected exception |
| startTime |
string |
The time when metadata synchronization started. |
2024-12-16 19:09:37 |
| endTime |
string |
The time when metadata synchronization ended. |
2024-12-16 19:10:07 |
Examples
Success response
JSON format
{
"requestId": "5CA6292A-E301-5CD8-B4E2-AF060F99147B",
"data": {
"id": 1000002,
"sourceId": 2000015,
"status": "SCAN_DOING",
"progress": 5000,
"result": "{\"databases\":5,\"tables\":75,\"partitions\":215}",
"errorMsg": "unexpected exception",
"startTime": "2024-12-16 19:09:37",
"endTime": "2024-12-16 19:10:07"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.