public class ImportImageRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
ImportImageRequest.ImportImageRequestDiskDeviceMapping |
static class |
ImportImageRequest.ImportImageRequestFeatures |
static class |
ImportImageRequest.ImportImageRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
architecture
The system architecture.
|
String |
bootMode
The boot mode of the image.
|
String |
description
The image description.
|
String |
detectionStrategy
The mode in which to check the image.
|
List<ImportImageRequest.ImportImageRequestDiskDeviceMapping> |
diskDeviceMapping
The information about the custom image.
|
Boolean |
dryRun |
ImportImageRequest.ImportImageRequestFeatures |
features |
String |
imageName
The image name.
|
String |
licenseType
The type of the license used to activate the operating system 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 image.
|
String |
resourceGroupId
The ID of the resource group to which to assign the image.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
roleName
The name of the RAM role used to import the image.
|
String |
storageLocationArn
The Alibaba Cloud Resource Name (ARN) of the cloud box, which is used to uniquely identify a storage location in the cloud.
|
List<ImportImageRequest.ImportImageRequestTag> |
tag
The image tags.
|
构造器和说明 |
---|
ImportImageRequest() |
@NameInMap(value="Architecture") public String architecture
The system architecture. Valid values:
Default value: x86_64.
example:x86_64
@NameInMap(value="BootMode") public String bootMode
The boot mode of the image. Valid values:
Default value: BIOS. If you set Architecture
to arm64, set this parameter to UEFI.
example:Make sure that you are aware of the boot modes supported by the specified image, as thehe modified boot mode needs to be supported by the image. This way, instances that use this image can start.
BIOS
@NameInMap(value="Description") public String description
The image description. The description must be 2 to 256 characters in length and cannot start with http://
or https://
.
TestDescription
@NameInMap(value="DetectionStrategy") public String detectionStrategy
The mode in which to check the image. If you do not specify this parameter, the image is not checked. Only the standard check mode is supported.
example:This parameter is supported for most Linux and Windows operating system versions. For more information about image check items and operating system limits for image check, see Overview and Operating system limits for image check.
Standard
@NameInMap(value="DiskDeviceMapping") public List<ImportImageRequest.ImportImageRequestDiskDeviceMapping> diskDeviceMapping
The information about the custom image.
@NameInMap(value="DryRun") public Boolean dryRun
@NameInMap(value="Features") public ImportImageRequest.ImportImageRequestFeatures features
@NameInMap(value="ImageName") public String imageName
The image name. The name must be 2 to 128 characters in length. The name 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 (-).
ImageTestName
@NameInMap(value="LicenseType") public String licenseType
The type of the license used to activate the operating system after the image is imported. Valid values:
Platform
has a license allocated through an official Alibaba Cloud channel. If yes, the allocated license is used. If no, the license that comes with the source operating system is used.Platform
.Default value: Auto.
example:Auto
@NameInMap(value="OSType") public String OSType
The operating system platform. Valid values:
Default value: linux.
example:linux
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Platform") public String platform
The operating system distribution. Valid values:
Default value: Others Linux.
example:Aliyun
@NameInMap(value="RegionId") public String regionId
The region ID of the source image. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which to assign the image.
example:rg-bp67acfmxazb4p****
@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 image.
example:AliyunECSImageImportDefaultRole
@NameInMap(value="StorageLocationArn") public String storageLocationArn
The Alibaba Cloud Resource Name (ARN) of the cloud box, which is used to uniquely identify a storage location in the cloud.
Specify this parameter only if you import an image from OSS on CloudBox. Otherwise, you do not need to specify this parameter. For more information, see What is OSS on CloudBox?
The ARN must be in the following format: arn:acs:cloudbox:{RegionId}:{AliUid}:cloudbox/{CloudBoxId}
. Replace {RegionId}
with the region ID of the cloud box, {AliUid}
with the ID of the Alibaba Cloud account to which the cloud box belongs, and {CloudBoxId}
with the ID of the cloud box.
arn:acs:cloudbox:cn-hangzhou:123456:cloudbox/cb-xx***123
@NameInMap(value="Tag") public List<ImportImageRequest.ImportImageRequestTag> tag
The image tags.
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 setDryRun(Boolean dryRun)
public Boolean getDryRun()
public ImportImageRequest setFeatures(ImportImageRequest.ImportImageRequestFeatures features)
public ImportImageRequest.ImportImageRequestFeatures getFeatures()
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 setStorageLocationArn(String storageLocationArn)
public String getStorageLocationArn()
public ImportImageRequest setTag(List<ImportImageRequest.ImportImageRequestTag> tag)
public List<ImportImageRequest.ImportImageRequestTag> getTag()
Copyright © 2024. All rights reserved.