public class CreateImagePipelineRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateImagePipelineRequest.CreateImagePipelineRequestTag |
限定符和类型 | 字段和说明 |
---|---|
List<Long> |
addAccount
The IDs of Alibaba Cloud accounts to which to share the image that will be created based on the image template.
|
String |
baseImage
The source image.
|
String |
baseImageType
The type of the source image.
|
String |
buildContent
The content of the image template.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Boolean |
deleteInstanceOnFailure
Specifies whether to release the intermediate instance when the image cannot be created.
|
String |
description
The description of the image template.
|
String |
imageFamily
This parameter is in invitational preview and is not publicly available.
|
String |
imageName
The prefix of the image name.
|
String |
instanceType
The instance type.
|
Integer |
internetMaxBandwidthOut
The size of the outbound public bandwidth for the intermediate instance.
|
String |
name
The name of the launch template.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The ID of the region.
|
String |
repairMode
This parameter is in invitational preview and is not publicly available.
|
String |
resourceGroupId
The ID of the resource group.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
systemDiskSize
The system disk size of the intermediate instance.
|
List<CreateImagePipelineRequest.CreateImagePipelineRequestTag> |
tag
The tags to add to the template.
|
String |
testContent
This parameter is in invitational preview and is not publicly available.
|
List<String> |
toRegionId
The IDs of regions to which you want to distribute the image that is created based on the image template.
|
String |
vSwitchId
The ID of the vSwitch.
|
构造器和说明 |
---|
CreateImagePipelineRequest() |
@NameInMap(value="AddAccount") public List<Long> addAccount
The IDs of Alibaba Cloud accounts to which to share the image that will be created based on the image template. You can specify up to 20 account IDs.
example:1234567890
@NameInMap(value="BaseImage") public String baseImage
The source image.
BaseImageType
to IMAGE, set the BaseImage parameter to the ID of a custom image.BaseImageType
to IMAGE_FAMILY, set the BaseImage parameter to the name of an image family.This parameter is required.
example:m-bp67acfmxazb4p****
@NameInMap(value="BaseImageType") public String baseImageType
The type of the source image. Valid values:
This parameter is required.
example:IMAGE
@NameInMap(value="BuildContent") public String buildContent
The content of the image template. The content cannot exceed 16 KB in size and can contain up to 127 commands. For more information about the commands that are supported, see the "Usage notes" section of this topic.
example:FROM IMAGE:m-bp67acfmxazb4p****
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.**** For more information, see How to ensure idempotence.
example:123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="DeleteInstanceOnFailure") public Boolean deleteInstanceOnFailure
Specifies whether to release the intermediate instance when the image cannot be created. Valid values:
Default value: true.
example:If the intermediate instance cannot be started, the instance is released by default.
true
@NameInMap(value="Description") public String description
The description of the image template. The description must be 2 to 256 characters in length. It cannot start with http://
or https://
.
This is description.
@NameInMap(value="ImageFamily") public String imageFamily
example:This parameter is in invitational preview and is not publicly available.
null
@NameInMap(value="ImageName") public String imageName
The prefix of the image name. The prefix must be 2 to 64 characters in length. The prefix must start with a letter and cannot start with http://
or https://
. The prefix can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
The system generates the final complete image name that consists of the specified prefix and the ID of the build task (ExecutionId
) in the format of {ImageName}_{ExecutionId}
.
testImageName
@NameInMap(value="InstanceType") public String instanceType
The instance type. You can call the DescribeInstanceTypes to query instance types.
If you do not configure this parameter, an instance type that provides the fewest vCPUs and memory resources is automatically selected. This configuration is subject to resource availability of instance types. For example, the ecs.g6.large instance type is automatically selected. If available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected.
example:ecs.g6.large
@NameInMap(value="InternetMaxBandwidthOut") public Integer internetMaxBandwidthOut
The size of the outbound public bandwidth for the intermediate instance. Unit: Mbit/s. Valid values: 0 to 100.
Default value: 0.
example:0
@NameInMap(value="Name") public String name
The name of the launch template. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http://
or https://
. The name can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
example:If you do not specify
Name
, the return value ofImagePipelineId
is used.
testImagePipeline
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The ID of the region. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="RepairMode") public String repairMode
example:This parameter is in invitational preview and is not publicly available.
null
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group.
example:rg-bp67acfmxazb4p****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SystemDiskSize") public Integer systemDiskSize
The system disk size of the intermediate instance. Unit: GiB. Valid values: 20 to 500.
Default value: 40.
example:40
@NameInMap(value="Tag") public List<CreateImagePipelineRequest.CreateImagePipelineRequestTag> tag
The tags to add to the template.
@NameInMap(value="TestContent") public String testContent
example:This parameter is in invitational preview and is not publicly available.
null
@NameInMap(value="ToRegionId") public List<String> toRegionId
The IDs of regions to which you want to distribute the image that is created based on the image template. You can specify up to 20 region IDs.
If you do not specify this parameter, the image is created only in the current region.
example:cn-hangzhou
@NameInMap(value="VSwitchId") public String vSwitchId
The ID of the vSwitch.
If you do not specify this parameter, a new VPC and vSwitch are created. Make sure that the VPC quota in your account is sufficient. For more information, see Limits and quotas.
example:vsw-bp67acfmxazb4p****
public static CreateImagePipelineRequest build(Map<String,?> map) throws Exception
Exception
public CreateImagePipelineRequest setAddAccount(List<Long> addAccount)
public CreateImagePipelineRequest setBaseImage(String baseImage)
public String getBaseImage()
public CreateImagePipelineRequest setBaseImageType(String baseImageType)
public String getBaseImageType()
public CreateImagePipelineRequest setBuildContent(String buildContent)
public String getBuildContent()
public CreateImagePipelineRequest setClientToken(String clientToken)
public String getClientToken()
public CreateImagePipelineRequest setDeleteInstanceOnFailure(Boolean deleteInstanceOnFailure)
public Boolean getDeleteInstanceOnFailure()
public CreateImagePipelineRequest setDescription(String description)
public String getDescription()
public CreateImagePipelineRequest setImageFamily(String imageFamily)
public String getImageFamily()
public CreateImagePipelineRequest setImageName(String imageName)
public String getImageName()
public CreateImagePipelineRequest setInstanceType(String instanceType)
public String getInstanceType()
public CreateImagePipelineRequest setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut)
public Integer getInternetMaxBandwidthOut()
public CreateImagePipelineRequest setName(String name)
public String getName()
public CreateImagePipelineRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateImagePipelineRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateImagePipelineRequest setRegionId(String regionId)
public String getRegionId()
public CreateImagePipelineRequest setRepairMode(String repairMode)
public String getRepairMode()
public CreateImagePipelineRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateImagePipelineRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateImagePipelineRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateImagePipelineRequest setSystemDiskSize(Integer systemDiskSize)
public Integer getSystemDiskSize()
public CreateImagePipelineRequest setTag(List<CreateImagePipelineRequest.CreateImagePipelineRequestTag> tag)
public List<CreateImagePipelineRequest.CreateImagePipelineRequestTag> getTag()
public CreateImagePipelineRequest setTestContent(String testContent)
public String getTestContent()
public CreateImagePipelineRequest setToRegionId(List<String> toRegionId)
public CreateImagePipelineRequest setVSwitchId(String vSwitchId)
public String getVSwitchId()
Copyright © 2024. All rights reserved.