public class ReinstallInstanceRequest
extends com.aliyun.tea.TeaModel
| Modifier and Type | Field and Description |
|---|---|
String |
hostname
实例的主机名。不得超过64个字符。
仅支持输入字母、数字、-和英文句点(.)
|
String |
imageId
指定有效的镜像ID
可通过以下方式获取可用的镜像ID:
通过调用接口 DescribeImages, 传入InstanceType获取当前机型支持的镜像列表,取返回信息中的ImageId字段。
也可以不指定镜像,如果不指定镜像,则以当前系统镜像进行安装。
|
String |
instanceId
需要进行重装的实例ID
|
String |
ipxeUrl
IpxeUrl。
传入参数后,imageId不生效。
|
Nic |
nic
网卡名称配置
|
List<Partition> |
partitions
磁盘分区配置
|
String |
password
实例的密码。必须是 8-16 个字符,包含大写字母、小写字母、数字和特殊字符。特殊符号可以是:
`~!@$^*\-_=+|;:,.?
密钥与密码不能同时指定。
密钥与密码必须并且只能指定其中一个。
|
RaidConfig |
raidConfig
raid配置
|
List<String> |
sshKeys
密钥列表。
密钥与密码不能同时指定。
使用了密钥登录,密码登录将会被禁止。
密钥最多支持3个。
Windows实例,忽略该参数。默认为空。即使填写了该参数,仍旧只执行password的内容。
|
| Constructor and Description |
|---|
ReinstallInstanceRequest() |
@Validation(required=true) public String instanceId
public String imageId
public String ipxeUrl
@Validation(minLength=1,
maxLength=64)
public String hostname
@Validation(minLength=8,
maxLength=16)
public String password
public List<String> sshKeys
public RaidConfig raidConfig
public Nic nic
Copyright © 2025. All rights reserved.