Updated on 2023-12-14 GMT+08:00

Obtaining the Datasource Authentication List (Discarded)

Function

This API is used to view the datasource authentication list in a project.

This API has been discarded and is not recommended.

URI

  • URI format

    GET /v2.0/{project_id}/datasource/auth-infos

  • Parameter description
    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 parameters

    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

None

Response

Table 3 Parameters

Parameter

Type

Description

is_success

Boolean

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

message

String

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

count

int

Number of certificates

auth_infos

List

Authentication information list. For details, see Table 4.

Table 4 auth_infos parameters

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

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

For details, see Error Codes.