{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"UpdateDeviceCertificate":{"properties":{"description":{"description":"凭证描述,最大字符串长度为500。","example":"this is for device","type":"string"},"new_password":{"description":"设置的新密码。长度为8位~32位的字符串,至少包含以下两种字符:大写字母、小写字母、数字和特殊字符(@#_-*)。不能与凭证用户名或与其倒序相同,且不能与原密码相同。","example":"********","type":"string"},"password":{"description":"凭证密码,如果要修改密码,则必须带有原密码。","example":"********","type":"string"}}},"UpdateResponse":{"properties":{"result":{"description":"处理成功时返回","example":"success","type":"string"}}}},"description":null,"group_id":"5346b7c1dc284228a28795d5bcbd550d","host":"vis.cn-north-4.myhuaweicloud.com","id":"2a3638eaf7fd46f089c22e2c4de183d9","info_version":"v1","method":"put","name":"UpdateDeviceCertificate","parameters":{"Authorization":{"description":"使用AK/SK方式认证时必选,携带的鉴权信息。","in":"header","maxLength":256,"minLength":1,"name":"Authorization","required":false,"type":"string","x-example":"SDK-HMAC-SHA256 Access=xxx, SignedHeaders=content-type;host;x-sdk-date, Signature=xxx"},"X-Auth-Token":{"description":"普通租户的token。","in":"header","maxLength":10240,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string"},"X-Project-Id":{"description":"使用AK/SK方式认证时必选,携带项目ID信息。","in":"header","maxLength":64,"minLength":1,"name":"X-Project-Id","required":false,"type":"string","x-example":"70b76xxxxxx34253880af501cdxxxxxx"},"X-Sdk-Date":{"description":"使用AK/SK方式认证时必选,请求的发生时间。","in":"header","maxLength":256,"minLength":1,"name":"X-Sdk-Date","required":false,"type":"string","x-example":"20191115T033655Z"},"project_id":{"description":"项目ID,获取方法请参考[获取项目ID](https://support.huaweicloud.com/api-vis/vis_03_0005.html)","in":"path","maxLength":32,"minLength":32,"name":"project_id","required":true,"type":"string"}},"paths":{"/v1/{project_id}/credentials/codes/{username}":{"put":{"consumes":[],"deprecated":false,"description":"该接口用于更新GB/T28181用户名密码凭证。","operationId":"UpdateDeviceCertificate","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/X-Auth-Token"},{"$ref":"#/parameters/Authorization"},{"$ref":"#/parameters/X-Sdk-Date"},{"$ref":"#/parameters/X-Project-Id"},{"description":"凭证用户名","in":"path","name":"username","required":true,"type":"string","x-example":"0000"},{"description":"更新设备凭证请求体\"","in":"body","name":"UpdateDeviceCertificate","required":false,"schema":{"$ref":"#/definitions/UpdateDeviceCertificate"}}],"produces":[],"responses":{"200":{"description":"正常","examples":{"application/json":{"result":"success"}},"schema":{"$ref":"#/definitions/UpdateResponse"}},"404":{"description":"找不到资源或没有开通服务","examples":{"application/json":{"error_code":"VIS.0102","error_msg":"The username of GB28181 password is not found."}}}},"summary":"更新GB/T28181凭证","tags":["凭证管理"],"x-apiexplorer-hide":"N","x-is-registered":"Y","x-name":"更新GB/T28181凭证","x-request-examples-1":{"new_password":"********","password":"********"},"x-request-examples-url-1":"PUT /v1/3266392d188c47d09948b1**********/credentials/codes/0000","x-support-sdk":"Y"}}},"product_short":"VIS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"更新GB/T28181凭证","tags":"凭证管理","uri":null,"version":"2.0"}