Creates an APS data source.
Operation description
For the service registration of this service, refer to Endpoint.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:CreateApsDatasoure |
none |
*DBClusterLakeVersion
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
amv-xxxxx |
| RegionId |
string |
Yes |
The region ID. |
cn-shanghai |
| DatasourceType |
string |
Yes |
The data source type. |
KAFKA |
| DatasourceName |
string |
Yes |
The data source name. |
sls-****** |
| DatasourceDescription |
string |
No |
The data source description. |
description |
| Mode |
string |
No |
The mode. |
ALI_CLOUD_INSTANCE |
| SlsInfo |
object |
No |
The Simple Log Service (SLS) information for the data source to be created. |
- |
| SourceRegionId |
string |
No |
The region ID of the source cluster. |
cn-beijing |
| Project |
string |
No |
The Simple Log Service (SLS) project. |
test-project |
| Store |
string |
No |
sls logstore. |
test-store |
| Across |
boolean |
No |
Specifies whether cross-account access is enabled. |
false |
| AcrossUid |
string |
No |
The UID of the cross-account. |
xxxx |
| AcrossRole |
string |
No |
The role name for cross-account access. |
yyy |
| KafkaInfo |
object |
No |
The Kafka information. |
- |
| KafkaClusterId |
string |
No |
The Kafka instance ID. |
****** |
| KafkaTopic |
string |
No |
The assigned Kafka topic name. |
test |
| HiveInfo |
object |
No |
The Hive data source information. |
- |
| MetaStoreUri |
string |
No |
The MetaStore endpoint. |
****** |
| Vswitch |
string |
No |
The vSwitch ID. |
vsw-bp1*****k |
| SecurityGroup |
string |
No |
The security group. |
sg-uf*******h |
| ClusterId |
string |
No |
The instance ID. |
****** |
| HostConfig |
string |
No |
The host configuration. |
****** |
| RdsMysqlInfo |
object |
No |
The ApsaraDB RDS for MySQL data source information. |
- |
| InstanceId |
string |
No |
The instance ID. |
rm-xxxxxxx |
| UserName |
string |
No |
The username. |
Username. |
| Password |
string |
No |
The password. |
****** |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| ConnectUrl |
string |
No |
The read-only instance endpoint. |
****** |
| SecurityGroup |
string |
No |
The security group. |
sg-****** |
| PolarDBMysqlInfo |
object |
No |
The PolarDB for MySQL data source information. |
- |
| InstanceId |
string |
No |
The instance ID. |
pc-bp********* |
| UserName |
string |
No |
The username. |
test-user-name |
| Password |
string |
No |
The password. |
*** |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| ConnectUrl |
string |
No |
The custom RDS endpoint. |
**** |
| SecurityGroup |
string |
No |
The security group. |
sg-****** |
| Across |
boolean |
No |
Specifies whether cross-account access is enabled. Valid values:
|
false |
| AcrossUid |
string |
No |
The UID of the cross-account. |
123456789* |
| AcrossRole |
string |
No |
The cross-account role. |
test-role |
| PolarDBXInfo |
object |
No |
The PolarDB-X data source information. |
- |
| InstanceId |
string |
No |
The OceanBase cluster ID. |
- |
| DatabricksInfo |
object |
No |
The Databricks data source information. |
- |
| AccessToken |
string |
No |
The access token. |
****** |
| WorkspaceURL |
string |
No |
The workspace URL. |
xxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code returned. A value of 200 indicates that the request was successful. |
200 |
| Data |
string |
The detailed resource usage of the cluster. |
69 |
| RequestId |
string |
The request ID. |
65D2***-45C1-5C18-********** |
| Success |
boolean |
The precheck result. Valid values:
|
True |
| Code |
string |
The API status or POP error code. |
200 |
| Message |
string |
The additional information of the call result. Valid values:
|
OK |
| DBClusterId |
string |
The cluster ID. |
amv-7xxxxx |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"Data": "69",
"RequestId": "65D2***-45C1-5C18-**********",
"Success": true,
"Code": "200",
"Message": "OK",
"DBClusterId": "amv-7xxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.