Updated on 2025-09-15 GMT+08:00

Listing Datasource Authentications

Function

This API is used to list datasource authentications in a project.

URI

  • URI format

    GET /v3/{project_id}/datasource/auth-infos

  • Parameter descriptions
    Table 1 URI parameter

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID, which is used for resource isolation. For details about how to obtain its value, see Obtaining a Project ID.

    Table 2 query parameter descriptions

    Parameter

    Mandatory

    Type

    Description

    limit

    No

    String

    The maximum number of connections to be queried. The default value is 100.

    offset

    No

    String

    The offset of the query result. The default value is 0. Note that the connections are sorted by creation time.

    auth_info_name

    Yes

    String

    Authentication information name, which is unique in a project

Request Parameters

None

Response Parameters

Table 3 Response parameters

Parameter

Type

Description

is_success

Boolean

Whether the request is successfully executed. true indicates that the request is successfully executed.

message

String

System prompt. If the execution succeeds, this parameter may be left blank.

count

int

Number of certificates

auth_infos

List

Authentication information list. For details, see Table 4.

Table 4 auth_infos parameter descriptions

Parameter

Type

Description

auth_info_name

String

Username for logging in to the security cluster

user_name

String

Password for logging in to the security cluster

certificate_location

String

OBS path of the certificate specified during authentication creation

datasource_type

String

Data source type. Options:

  • CSS: applies to 6.5.4 or later CSS clusters with the security mode enabled.
  • KRB: applies to MRS security clusters with Kerberos authentication enabled.
  • Kafka_SSL: applies to Kafka data sources with SSL enabled.
  • passwd: applies to GaussDB(DWS), RDS, DDS, and DCS data sources.

create_time

Int

Timestamp when the authentication is created

update_time

Int

Timestamp when the authentication is updated

krb5_conf

String

OBS path of the krb5 configuration file

keytab

String

OBS path of the keytab configuration file

truststore_location

String

OBS path of the truststore configuration file

keystore_location

String

OBS path of the keystore configuration file

owner

String

Username

Example Request

None

Example Response

{
	"count": 19,
	"auth_infos": [{
		"auth_info_name": "lan2",
		"datasource_type": "Kafka_SSL",
		"create_time": 1578896427789,
		"update_time": 1578898059677,
		"owner": "ei_dlics_d00352221",
		"truststore_location": "obs://lan-1/cer/truststore.jks",
		"keystore_location": "obs://lan-1/cer/keystore.jks"
	}, {
		"auth_info_name": "lan3",
		"datasource_type": "Kafka_SSL",
		"create_time": 1578899029971,
		"update_time": 1578901678150,
		"owner": "ei_dlics_d00352221",
		"truststore_location": "obs://lan-1/cer/truststore1.jks",
		"keystore_location": "obs://lan-1/cer/keystore.jks"
	}]
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.