Modifies an AnalyticDB Pipeline Service (APS) data source.
Operation description
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| adb:ModifyApsDatasoure | update | *DBClusterLakeVersion acs:adb:{#regionId}:{#AccountId}:dbcluster/{#DBClusterId} |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| DBClusterId | string | Yes | The cluster ID. | amv-******* |
| RegionId | string | Yes | The region ID. | cn-shanghai |
| DatasourceId | long | Yes | The data source ID. | 1 |
| DatasourceName | string | No | The name of the data source. | sls-****** |
| DatasourceDescription | string | No | The description of the data source. | test |
| SlsInfo | object | No | The information about Simple Log Service (SLS). | |
| SourceRegionId | string | No | The region ID. | cn-beijing |
| Across | boolean | No | Specifies whether to use a cross-account resource as the data source. Valid values:
| false |
| AcrossUid | string | No | The cross-account UID. | 123456 |
| AcrossRole | string | No | The name of the cross-account role. | test-role |
| KafkaInfo | object | No | The information about the Kafka instance. | |
| KafkaClusterId | string | No | The ID of the Kafka instance. | - |
| KafkaTopic | string | No | The topic of the Kafka instance. | test-topic |
| LakehouseId | object | No | The lakehouse ID. | |
| Vswitch | string | No | The name of the vSwitch. | vsw-****** |
| SecurityGroup | string | No | The name of the security group. | sg-****** |
| VpcId | string | No | The virtual private cloud (VPC) ID. | vpc-****** |
| RdsMysqlInfo | object | No | The parameter is no longer supported. | |
| UserName | string | No | The parameter is no longer supported. | - |
| Password | string | No | The parameter is no longer supported. | - |
| RegionId | string | No | The parameter is no longer supported. | - |
| ConnectUrl | string | No | The parameter is no longer supported. | - |
| PolarDBMysqlInfo | object | No | The parameter is no longer supported. | |
| UserName | string | No | The parameter is no longer supported. | - |
| Password | string | No | The parameter is no longer supported. | - |
| RegionId | string | No | The parameter is no longer supported. | - |
| ConnectUrl | string | No | The parameter is no longer supported. | - |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "A3EB3BCD-D974-52D4-B75C-BB06505916CB",
"Data": 150,
"HttpStatusCode": 200,
"Success": "True",
"Code": "InvalidInput\n",
"Message": "OK"
}Error codes
For a list of error codes, visit the Service error codes.
