Skip to main content

Update Account and Password

Interface Overview

Change the password of a data source account

Interface Address

/cloudcanal/console/api/v1/openapi/datasource/updateaccountandpassword

Request Manner

POST

Request Parameters

ParameterNameParameter DescriptionRequestTypeWhether RequiredDataType
dataSourceAddDataData source configuration, standard JSON formatBodyTrueString
securityFileSecurity file, such as the SSL truststore file or Kerberos krb5 fileBodyFalseMultipartFile
secretFileSecret key file, such as the JAAS username and password file or Kerberos keytab fileBodyFalseMultipartFile

DataSourceAddData Indicates the parameter description

ParameterNameParameter DescriptionType(Java)NotNull
dataSourceIdTarget data source IDBodyTrue
securityTypeData source security key type

KERBEROS
USER_PASSWD_WITH_TLS
USER_PASSWD
ONLY_USER
ONLY_PASSWD
NONE
StringTrue
userNameAccountStringDepending on securityType chosen
passwordPasswordStringDepending on securityType chosen

Public response result

ParameterNameParameter DescriptionType(Java)NotNull
code1: success, 0: failureStringTrue
dataObjectFalse
msgStringFalse
requestIdStringTrue

Response Example

{
"requestId": "4f9f0b23-2b4a-11ec-8c7e-d98fc83f029e",
"code": "1",
"msg": "request success",
"data": []
}