{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"BatchOperateResult":{"description":"批量操作返回体。","properties":{"response":{"description":"提交请求成功后返回的响应列表。","items":{"$ref":"#/definitions/ServerId"},"type":"array"}},"required":["response"]},"BatchResetServersPasswordRequestBody":{"description":"This is a auto create Body Object","properties":{"dry_run":{"description":"是否只预检此次请求。\n\n- true:发送检查请求,不会重置密码。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应结果。\n- false:发送正常请求,通过检查后并且进行重置密码请求。\n\n默认值:false","example":false,"type":"boolean"},"new_password":{"description":"新密码。\n\n当dry_run字段为true时,该字段为非必填字段,否则为必填字段。\n\n新密码的校验规则:\n\n- 允许输入的字符包括:!@%-_=+[]:./?\n- 禁止输入的字符包括:汉字及【】:;“”‘’、,。《》?¥...()—— ·!~`#&^,{}*();\"'<>|\\ $\n- 复杂度上必须包含大写字母(A-Z)、小写字母(a-z)、数字(0-9)、以及允许的特殊字符中的3种以上搭配\n- 不能包含用户名 \"Administrator\" 和“root”及逆序字符\n- 不能包含用户名 \"Administrator\" 中连续3个字符","example":"Test@123","type":"string","x-admin":""},"servers":{"description":"待批量重置密码的弹性云服务器ID信息。","items":{"$ref":"#/definitions/ServerId"},"maxItems":1000,"minItems":1,"type":"array","x-admin":""}},"required":["new_password","servers"]},"ServerId":{"description":"","properties":{"id":{"description":"云服务器ID。","example":"616fb98f-46ca-475e-917e-2563e5a86666","type":"string"}},"required":["id"]}},"description":null,"group_id":"395cf9dd07ff44ddb50f92797b2a85de","host":"ecs.cn-north-4.myhuaweicloud.com","id":"6342b684908f46f4b6eabb2a2707cbff","info_version":"v2","method":"put","name":"BatchResetServersPassword","parameters":{"X-Auth-Token":{"description":"用户Token。\n\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."},"project_id":{"description":"项目ID。","in":"path","name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"}},"paths":{"/v1/{project_id}/cloudservers/os-reset-passwords":{"put":{"consumes":[],"deprecated":false,"description":"批量重置弹性云服务器管理帐号(root用户或Administrator用户)的密码。","operationId":"BatchResetServersPassword","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/X-Auth-Token"},{"description":"This is a auto create Body Object","in":"body","name":"BatchResetServersPasswordRequestBody","required":true,"schema":{"$ref":"#/definitions/BatchResetServersPasswordRequestBody"}}],"produces":[],"responses":{"200":{"description":"OK","examples":{"application/json":{"response":[{"id":"616fb98f-46ca-475e-917e-2563e5a8cd19"},{"id":"516fb98f-46ca-475e-917e-2563e5a8cd12"}]}},"schema":{"$ref":"#/definitions/BatchOperateResult"}}},"summary":"批量重置弹性云服务器密码","tags":["批量操作"],"x-apiexplorer-hide":"false","x-constraint":"- 使用此API,需预先安装重置密码插件。一键式重置密码插件的下载与安装,请参见《弹性云服务器用户指南》的“安装一键式重置密码插件”章节。\n- 弹性云服务器的重置密码请求下发后,脚本执行失败,该API不会报错。\n- 弹性云服务器开机或重启后,新密码生效。\n- 该接口支持虚拟机状态为开机或者关机状态下执行。","x-first-open-time":"2018-11-30","x-hybridcloud":"false","x-is-registered":"Y","x-name":"批量重置弹性云服务器密码","x-open-region-cloud":"hc,hk,ctc","x-order":21,"x-publishpath":"","x-request-examples-1":{"dry_run":true,"new_password":"Test@123","servers":[{"id":"1bd0eb17-4466-4c15-a9ce-87727ad311b5"},{"id":"fd6b6e9d-64a1-40fa-b7dc-f491be42fdd2"}]},"x-request-examples-description-1":"","x-request-examples-text-1":"{\n \"new_password\": \"Test@123\",\n \"dry_run\": true,\n \"servers\": [\n {\n \"id\": \"1bd0eb17-4466-4c15-a9ce-87727ad311b5\"\n },\n {\n \"id\": \"fd6b6e9d-64a1-40fa-b7dc-f491be42fdd2\"\n }\n ]\n}","x-request-examples-url-1":"PUT https://{endpoint}/v1/{project_id}/cloudservers/os-reset-passwords","x-scope":"Commercial","x-source":"SelfDeveloped","x-support-sdk":"Y","x-version":"v1"}}},"product_short":"ECS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"批量重置弹性云服务器密码","tags":"批量操作","uri":null,"version":"2.0"}