Listing Datasource Authentications
Function
This API is used to list datasource authentications in a project.
URI
- URI format
- 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 parameter description 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
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. |
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot