{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"JobResult":{"description":"任务类响应通用返回体。","properties":{"job_id":{"description":"提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。","example":"70a599e0-31e7-49b7-b260-868f44166666","type":"string"}},"required":["job_id"]},"ReinstallServerWithoutCloudInitOption":{"description":"重装操作系统body。","properties":{"adminpass":{"description":"云服务器管理员帐户的初始登录密码。\n\n其中,Windows管理员帐户的用户名为Administrator。\n\n建议密码复杂度如下:\n\n- 长度为8-26位。\n- 密码至少必须包含大写字母、小写字母、数字和特殊字符(!@$%^-_=+[{}]:,./?)中的三种。\n\n> 说明:\n> \n- 对于Windows弹性云服务器,密码不能包含用户名或用户名的逆序,不能包含用户名中超过两个连续字符的部分。\n- adminpass和keyname不能同时为空。","example":"!QAZxsw2","type":"string"},"keyname":{"description":"密钥名称。\n\n密钥可以通过密钥创建接口进行创建(请参见[创建和导入SSH密钥](https://support.huaweicloud.com/api-dew/CreateKeypair.html)),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-dew/ListKeypairs.html) )。","example":"KeyPair-1234","type":"string"},"metadata":{"$ref":"#/definitions/ReinstallSeverMetadataWithoutCloudInitOption","description":"重装云服务器的元数据。"},"mode":{"description":"取值为withStopServer ,支持开机状态下切换弹性云服务器操作系统。\nmode取值为withStopServer时,对开机状态的弹性云服务器执行切换操作系统操作,系统自动对云服务器先执行关机,再切换操作系统。","example":"withStopServer","type":"string"},"userid":{"description":"用户ID。当传入keyname参数时,此参数为必选。","example":"7e25b1da389f4697a79df3a0e5bd6666","type":"string"}}},"ReinstallServerWithoutCloudInitRequestBody":{"description":"This is a auto create Body Object","properties":{"os-reinstall":{"$ref":"#/definitions/ReinstallServerWithoutCloudInitOption","description":"重装弹性云服务器。"}},"required":["os-reinstall"]},"ReinstallSeverMetadataWithoutCloudInitOption":{"description":"","properties":{"__system__cmkid":{"description":"metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。\n\n> 说明:\n\n- 请参考[查询密钥列表](https://support.huaweicloud.com/api-dew/ListKeys.html),通过HTTPS请求获取密钥ID。","example":"1189efbf-d48b-46ad-a823-94b942e2a000","type":"string","x-admin":"False","x-internal":"False","x-obc":"Y","x-open-region-cloud":"hc,hk,otc,tlf,ctc"},"__system__encrypted":{"default":"0","description":"metadata中的表示加密功能的字段,0代表不加密,1代表加密。\n\n该字段不存在时,云硬盘默认为不加密。","example":"0","type":"string","x-admin":"False","x-internal":"False","x-obc":"Y","x-open-region-cloud":"hc,hk,otc,tlf,ctc"}}}},"description":null,"group_id":"395cf9dd07ff44ddb50f92797b2a85de","host":"ecs.cn-north-4.myhuaweicloud.com","id":"6a9ab2831ec542bba848071b55a53c9d","info_version":"v2","method":"post","name":"ReinstallServerWithoutCloudInit","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"},"server_id":{"description":"云服务器ID。","in":"path","name":"server_id","required":true,"type":"string","x-example":"e6b99563-xxxx-xxxx-xxxx-1820d4fd2a67"}},"paths":{"/v1/{project_id}/cloudservers/{server_id}/reinstallos":{"post":{"consumes":[],"deprecated":false,"description":"重装弹性云服务器的操作系统。\n\n该接口支持未安装Cloud-init或Cloudbase-init的镜像。","operationId":"ReinstallServerWithoutCloudInit","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/server_id"},{"$ref":"#/parameters/X-Auth-Token"},{"description":"This is a auto create Body Object","in":"body","name":"ReinstallServerWithoutCloudInitRequestBody","required":true,"schema":{"$ref":"#/definitions/ReinstallServerWithoutCloudInitRequestBody"}}],"produces":[],"responses":{"200":{"description":"OK","examples":{"application/json":{"job_id":"70a599e0-31e7-49b7-b260-868f441e862b"}},"schema":{"$ref":"#/definitions/JobResult"}}},"summary":"重装弹性云服务器操作系统(未安装Cloud init)","tags":["状态管理"],"x-apiexplorer-hide":"false","x-constraint":"- 关机状态或者重装操作系统失败的弹性云服务器,才能执行重装操作。\n- 不包含系统盘的弹性云服务器不能执行重装操作。\n- 执行重装操作系统任务时,请勿并行执行其他任务,否则可能会引起重装操作系统失败。\n- 该接口支持未安装Cloud-init或Cloudbase-init的镜像。","x-first-open-time":"2018-3-30","x-hybridcloud":"true","x-is-registered":"Y","x-name":"重装弹性云服务器操作系统(未安装Cloud init)","x-open-region-cloud":"hc,hk","x-order":9,"x-publishpath":"","x-registered_to":"apicom","x-request-examples-1":{"os-reinstall":{"keyname":"KeyPair-350b","userid":"7e25b1da389f4697a79df3a0e5bd494e"}},"x-request-examples-description-1":"","x-request-examples-text-1":"{\n \"os-reinstall\": {\n \"keyname\": \"KeyPair-350b\", \n \"userid\": \"7e25b1da389f4697a79df3a0e5bd494e\"\n }\n}","x-request-examples-url-1":"POST https://{endpoint}/v1/{project_id}/cloudservers/{server_id}/reinstallos","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":"重装弹性云服务器操作系统(未安装Cloud init)","tags":"状态管理","uri":null,"version":"2.0"}