重置配置管理员密码
场景描述
VDN属性“启用密码初始化后下次登录必须修改”为“是”情况下,调用该接口重置配置管理员密码。
接口方法
该接口仅支持PUT方法。
接口URI
https://ip:port/agentgateway/resource/config/vdn/resetConfigAdminPwd
其中,ip为CC-Gateway服务器地址,port为CC-Gateway服务器的HTTPS端口号。
日志中的方法名
resetConfigAdminPwd
请求消息
- 消息头
表1 消息头参数说明 序号
名称
参数类型
是否必选
说明
1
Content-Type
string
True
消息主体编码方式,缺省值:application/json; charset=UTF-8
2
Guid
string
True
Guid的取值为C5 智能辅助类接口鉴权方式接口返回的guid。
- 消息体
表2 消息体参数说明 序号
名称
参数类型
是否必选
说明
1
oldPassword
string
True
旧密码,长度最小8位,最大32位。
2
newPassword
string
True
新密码,长度最小8位,最大32位。
3
newConfirmPwd
string
True
新密码确认,长度最小8位,最大32位。
响应消息
|
序号 |
名称 |
参数类型 |
说明 |
|---|---|---|---|
|
1 |
message |
string |
描述 |
|
2 |
retcode |
string |
错误码。取值如下:
|
报文样例
- 消息头
Content-Type:application/json; charset=UTF-8 Guid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.AgentGateway1
- 请求参数
{ "oldPassword": "XXXXXXXX", "newPassword": "XXXXXXXX", "newConfirmPwd": "XXXXXXXX" } - 响应参数
{ "message": "success", "retcode": "0" }