Creates a data source to migrate data to MaxCompute using MaxCompute Migration Assist (MMA).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:CreateMmsDataSource |
create |
*All Resource
|
None | None |
Request syntax
POST /api/v1/mms/datasources HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| name |
string |
No |
The name of the data source. |
demo |
| type |
string |
No |
The type of the data source. Valid values:
|
BIGQUERY |
| networklink |
string |
No |
The ID of the MaxCompute network connectivity. |
vpc-uf6pc2vordian33gobzfr:cn-shanghai |
| config |
object |
No |
The configurations of the data source. |
|
|
any |
No |
The configuration items of the data source. |
"bigquery.project.id": "xx" |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
ApiRes |
||
| requestId |
string |
The request ID. |
B42CA730-8187-50F1-9FE0-6733297036DB |
| data |
object |
The returned results. |
|
| dataSourceId |
integer |
The ID of the data source. |
18 |
Examples
Success response
JSON format
{
"requestId": "B42CA730-8187-50F1-9FE0-6733297036DB",
"data": {
"dataSourceId": 18
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.