public class CreateImagePipelineRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateImagePipelineRequest.CreateImagePipelineRequestTag |
限定符和类型 | 字段和说明 |
---|---|
List<Long> |
addAccount
The IDs of Alibaba Cloud accounts with which you want to share the image that is 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 if the image cannot be created.
|
String |
description
The description of the image template.
|
String |
imageName
The prefix of the image name.
|
String |
instanceType
The instance type.
|
Integer |
internetMaxBandwidthOut
The size of the outbound public bandwidth of the intermediate instance.
|
String |
name
The name of the image template.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID of the image template that you want to create.
|
String |
resourceGroupId
The ID of the resource group.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
systemDiskSize
The size of the system disk of the intermediate instance.
|
List<CreateImagePipelineRequest.CreateImagePipelineRequestTag> |
tag
The tags that you want to add to the image template.
|
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 with which you want to share the image that is created based on the image template. You can specify up to 20 account IDs.
@NameInMap(value="BaseImage") public String baseImage
The source image.
* If you set the `BaseImageType` parameter to IMAGE, set the BaseImage parameter to the ID of a custom image.
* If you set the `BaseImageType` parameter to IMAGE_FAMILY, set the BaseImage parameter to the name of an image family.
@NameInMap(value="BaseImageType") public String baseImageType
The type of the source image. Valid values:
* IMAGE: image
* IMAGE_FAMILY: image family
@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 information about the commands that are supported by the image template, see the "Usage notes" section in this topic.
@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](~~25693~~).
@NameInMap(value="DeleteInstanceOnFailure") public Boolean deleteInstanceOnFailure
Specifies whether to release the intermediate instance if the image cannot be created. Valid values:
* true: releases the intermediate instance if the image cannot be created.
* false: does not release the intermediate instance if the image cannot be created.
Default value: true.
> If the intermediate instance cannot be started, the instance is automatically released.
@NameInMap(value="Description") public String description
The description of the image template. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.
@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 but cannot start with `http://` or `https://`. The prefix can contain letters, digits, colons (:), underscores (\_), periods (.), and hyphens (-).
The system generates the final image name that consists of the specified prefix and the ID of the build task (`ExecutionId`) in the `{ImageName}_{ExecutionId}` format.
@NameInMap(value="InstanceType") public String instanceType
The instance type. You can call the [DescribeInstanceTypes](~~25620~~) to query supported instance types.
If you do not specify this parameter, an instance type that provides the fewest vCPUs and memory resources is selected. This configuration is subject to the resource availability of instance types. For example, the ecs.g6.large instance type is selected. If the available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected.
@NameInMap(value="InternetMaxBandwidthOut") public Integer internetMaxBandwidthOut
The size of the outbound public bandwidth of the intermediate instance. Unit: Mbit/s. Valid values: 0 to 100.
Default value: 0.
@NameInMap(value="Name") public String name
The name of the image 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 (-).
> If you do not specify the `Name` parameter, the value of the `ImagePipelineId` return parameter is used.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the image template that you want to create. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SystemDiskSize") public Integer systemDiskSize
The size of the system disk of the intermediate instance. Unit: GiB. Valid values: 20 to 500.
Default value: 40.
@NameInMap(value="Tag") public List<CreateImagePipelineRequest.CreateImagePipelineRequestTag> tag
The tags that you want to add to the image template.
@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.
@NameInMap(value="VSwitchId") public String vSwitchId
The ID of the vSwitch.
If you do not specify this parameter, a new virtual private cloud (VPC) and vSwitch are created by default. Make sure that the VPC quota of your account is sufficient. For more information, see [Limits](~~27750~~).
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 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 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 setToRegionId(List<String> toRegionId)
public CreateImagePipelineRequest setVSwitchId(String vSwitchId)
public String getVSwitchId()
Copyright © 2023. All rights reserved.