Creates a real-time data source.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gpdb:CreateStreamingDataSource |
create |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. Note
You can call the DescribeRegions operation to query available region IDs. |
cn-beijing |
| DataSourceName |
string |
Yes |
The name of the data source. |
test-kafka |
| DataSourceType |
string |
Yes |
The data source type. Valid values:
|
kafka |
| DataSourceDescription |
string |
No |
The description of the data source. |
test-kafka |
| DBInstanceId |
string |
Yes |
The instance ID. |
CreateExternalDataSource |
| DataSourceConfig |
string |
Yes |
The data source configurations. |
{"broker_list":"broker0:9091,broker1:9091","topic":"topic"} |
| ServiceId |
integer |
Yes |
The ID of the real-time data service. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| DataSourceId |
integer |
The ID of the data source. |
1 |
| RequestId |
string |
The request ID. |
B4CAF581-2AC7-41AD-8940-D56DF7AADF5B |
Examples
Success response
JSON format
{
"DataSourceId": 1,
"RequestId": "B4CAF581-2AC7-41AD-8940-D56DF7AADF5B"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.