public class ImportImageRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
ImportImageRequest.ImportImageRequestDiskDeviceMapping |
static class |
ImportImageRequest.ImportImageRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
architecture
The system architecture.
|
String |
bootMode
The boot mode of the image.
|
String |
description
The description of the image.
|
String |
detectionStrategy
The mode in which to check the source image.
|
List<ImportImageRequest.ImportImageRequestDiskDeviceMapping> |
diskDeviceMapping
Details about the custom images.
|
String |
imageName
The name of the image.
|
String |
licenseType
The type of the license that you want to use to activate the OS after the image is imported.
|
String |
OSType
The operating system platform.
|
Long |
ownerId |
String |
platform
The operating system distribution.
|
String |
regionId
The region ID of the source custom image.
|
String |
resourceGroupId
The ID of the resource group to which to assign the custom image.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
roleName
The name of the RAM role used to import the source image.
|
List<ImportImageRequest.ImportImageRequestTag> |
tag
The tags of the image.
|
构造器和说明 |
---|
ImportImageRequest() |
@NameInMap(value="Architecture") public String architecture
The system architecture. Valid values:
* i386
* x86\_64
* arm64
Default value: x86\_64.
@NameInMap(value="BootMode") public String bootMode
The boot mode of the image. Valid values:
* BIOS
* UEFI
Default value: BIOS. If you set the `Architecture` parameter to arm64, the BootMode parameter can only be set to UEFI.
> You must be aware of the boot modes supported by the specified image. The modified boot mode needs to be supported by the image. This way, instances that use this image can start.
@NameInMap(value="Description") public String description
The description of the image. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.
@NameInMap(value="DetectionStrategy") public String detectionStrategy
The mode in which to check the source image. Specify this parameter when you need to check the source image. Only Linux images can be checked. Set the value to Standard, which indicates standard check mode.
The following items are checked in standard check mode:
* Virtio: whether the virtio driver is installed.
* Fstab: whether mounting configurations in the fstab file are correct.
* Grub: whether GRand Unified Bootloader (GRUB) configurations are correct.
* SystemImage: whether the image is valid. Do not import images that are in the ISO format or empty.
* CloudInit: whether cloud-init is installed.
* NVMe: whether the NVMe driver is installed.
* Selinux: whether SElinux is enabled.
* OnlineResizeFS: whether the root partition can be automatically resized.
* Dhcp: whether Dynamic Host Configuration Protocol (DHCP) is enabled for network interface controllers (NICs).
* RtcTimeMode: the RTC time mode.
* Platform: the platform. Example: Linux or Windows.
* OSVersion: the operating system version. Example: Centos 7.9.
* Architecture: the architecture. Example: ARM or x86\_64.
* BootMode: the boot mode. Example: UEFI or Legacy.
* KernelVersion: the kernel version.
* CloudAssistant: whether the Cloud Assistant client is installed.
* SecurityCenterAgent: whether the Security Center is installed.
@NameInMap(value="DiskDeviceMapping") public List<ImportImageRequest.ImportImageRequestDiskDeviceMapping> diskDeviceMapping
Details about the custom images.
@NameInMap(value="ImageName") public String imageName
The name of the image. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `acs:` or `aliyun`. The name cannot contain `http://` or `https://`. The name can contain letters, digits, periods (.), colons (:), underscores (\_), and hyphens (-).
@NameInMap(value="LicenseType") public String licenseType
The type of the license that you want to use to activate the OS after the image is imported. Valid values:
* Auto: ECS checks the operating system of the source image and allocates a license to the operating system. ECS first checks whether the operating system distribution specified by `Platform` has a license allocated through an official Alibaba Cloud channel. If yes, the allocated license is used. If not, the license that comes with the source operating system is used.
* Aliyun: The license allocated through an official Alibaba Cloud channel is used for the operating system distribution specified by `Platform`.
* BYOL: The license that comes with the source operating system is used. In this case, make sure that your license key can be used in Alibaba Cloud.
Default value: Auto.
@NameInMap(value="OSType") public String OSType
The operating system platform. Valid values:
* windows
* linux
Default value: linux.
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Platform") public String platform
The operating system distribution. Valid values:
* CentOS
* CentOS Stream
* Ubuntu
* SUSE
* openSUSE
* Debian
* CoreOS
* Aliyun
* Anolis
* AlmaLinux
* FreeBSD
* Fedora
* Rocky Linux
* UOS
* Kylin
* Others Linux
* Customized Linux
* Windows Server 2022
* Windows Server 2019
* Windows Server 2016
* Windows Server 2012
* Windows Server 2008
* Windows Server 2003
Default value: Others Linux.
@NameInMap(value="RegionId") public String regionId
The region ID of the source custom image. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions.
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which to assign the custom image.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="RoleName") public String roleName
The name of the RAM role used to import the source image.
@NameInMap(value="Tag") public List<ImportImageRequest.ImportImageRequestTag> tag
The tags of the image.
public static ImportImageRequest build(Map<String,?> map) throws Exception
Exception
public ImportImageRequest setArchitecture(String architecture)
public String getArchitecture()
public ImportImageRequest setBootMode(String bootMode)
public String getBootMode()
public ImportImageRequest setDescription(String description)
public String getDescription()
public ImportImageRequest setDetectionStrategy(String detectionStrategy)
public String getDetectionStrategy()
public ImportImageRequest setDiskDeviceMapping(List<ImportImageRequest.ImportImageRequestDiskDeviceMapping> diskDeviceMapping)
public List<ImportImageRequest.ImportImageRequestDiskDeviceMapping> getDiskDeviceMapping()
public ImportImageRequest setImageName(String imageName)
public String getImageName()
public ImportImageRequest setLicenseType(String licenseType)
public String getLicenseType()
public ImportImageRequest setOSType(String OSType)
public String getOSType()
public ImportImageRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ImportImageRequest setPlatform(String platform)
public String getPlatform()
public ImportImageRequest setRegionId(String regionId)
public String getRegionId()
public ImportImageRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public ImportImageRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ImportImageRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public ImportImageRequest setRoleName(String roleName)
public String getRoleName()
public ImportImageRequest setTag(List<ImportImageRequest.ImportImageRequestTag> tag)
public List<ImportImageRequest.ImportImageRequestTag> getTag()
Copyright © 2023. All rights reserved.