Creates a job to pull metadata from a data source.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:CreateMmsFetchMetadataJob |
create |
*Project
|
None | None |
Request syntax
POST /api/v1/mms/datasources/{sourceId}/scans HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| sourceId |
integer |
Yes |
The ID of the data source. |
2000021 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Specifies the scope of metadata to update. This parameter can be empty. |
|
| dbName |
string |
No |
Updates metadata for the specified source database, schema, or dataset. |
default |
| tableNames |
array |
No |
Updates metadata for the specified source tables. |
|
|
string |
No |
The name of a source table. |
table1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The return value. |
||
| requestId |
string |
The request ID. |
CC4D05E8-0613-5A8E-9339-A0EBD097A69E |
| data |
object |
The returned result. |
|
| scanId |
integer |
The ID of the asynchronous task that syncs metadata. |
1000002 |
Examples
Success response
JSON format
{
"requestId": "CC4D05E8-0613-5A8E-9339-A0EBD097A69E",
"data": {
"scanId": 1000002
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.