All Products
Search
Document Center

AnalyticDB:DescribeJDBCDataSource

Last Updated:Nov 05, 2025

Queries the configurations of a Java Database Connectivity (JDBC) data source.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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 Resources is 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.
OperationAccess levelResource typeCondition keyAssociated operation
gpdb:DescribeJDBCDataSourceget
*DBInstance
acs:gpdb:*:{#accountId}:dbinstance/{#DBInstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DBInstanceIdstringYes

The instance ID.

Note You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
gp-xxx
DataSourceIdstringYes

The data source ID.

123

Response parameters

ParameterTypeDescriptionExample
object
DataSourceIdstring

The data source ID.

123
RequestIdstring

The request ID.

B4CAF581-2AC7-41AD-8940-D56DF7AADF5B
DataSourceNamestring

The name of data soruce

hdfs_pxf
DataSourceDescriptionstring

The description of the service. The description can be up to 256 characters in length.

mysql data source config
DataSourceStatusstring

The status of the service. Valid values:

  • Init
  • Running
  • Exception
Running
StatusMessagestring

The message of the status

""
CreateTimestring

The time when the service was created.

2019-09-08T16:00:00Z
DataSourceTypestring

The type of the data source.

MySQL
JDBCConnectionStringstring

The JDBC connection string.

xxxxxx
JDBCUserNamestring

The name of the database account.

xxxxxx
JDBCPasswordstring

The password of the database account.

xxxxxx
ModifyTimestring

The time when the data source was last modified.

2024-08-27T02:01:10Z
ExternalDataServiceIdstring

The id of the external data service

2989

Examples

Sample success responses

JSONformat

{
  "DataSourceId": 123,
  "RequestId": "B4CAF581-2AC7-41AD-8940-D56DF7AADF5B",
  "DataSourceName": "hdfs_pxf",
  "DataSourceDescription": "mysql data source config",
  "DataSourceStatus": "Running",
  "StatusMessage": "",
  "CreateTime": "2019-09-08T16:00:00Z",
  "DataSourceType": "MySQL",
  "JDBCConnectionString": "xxxxxx",
  "JDBCUserName": "xxxxxx",
  "JDBCPassword": "xxxxxx",
  "ModifyTime": "2024-08-27T02:01:10Z",
  "ExternalDataServiceId": 2989
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-08-20The response structure of the API has changedView Change Details