Updated on 2024-01-09 GMT+08:00

Updating Datasource Authentication

Function

This API is used to update authentication information.

URI

  • URI format

    PUT /v3/{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.

Request

Parameter

Mandatory

Type

Description

auth_info_name

Yes

String

Name of the updated datasource authentication

user_name

No

String

New username for logging in to the security cluster

password

No

String

New password for logging in to the security cluster

krb5_conf

No

String

OBS path of the krb5 configuration file

keytab

No

String

OBS path of the keytab configuration file

truststore_location

No

String

OBS path of the truststore configuration file

truststore_password

No

String

Password of the truststore configuration file

keystore_location

No

String

OBS path of the keystore configuration file

keystore_password

No

String

Password of the keystore configuration file

Response

Table 2 Response parameters

Parameter

Type

Description

is_success

Boolean

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

message

String

None

Example Request

Change the username and password for CSS datasource authentication.

{
    "auth_info_name": "test001",
    "user_name": "root",
    "password": "********"
}

Example Response

{
  "is_success": true,
  "message": "Update success."
}

Status Codes

Status Code

Description

200

OK

Error Codes

For details, see Error Codes.