public static final class DescribeImagesRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
DescribeImagesRequest.Builder |
actionType(String actionType)
The scenario in which the image is used.
|
DescribeImagesRequest.Builder |
architecture(String architecture)
The architecture of the image.
|
DescribeImagesRequest |
build() |
DescribeImagesRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform only a dry run without performing the actual request.
|
DescribeImagesRequest.Builder |
filter(List<DescribeImagesRequest.Filter> filter)
The list of filter conditions used to query resources.
|
DescribeImagesRequest.Builder |
imageFamily(String imageFamily)
The name of the image family.
|
DescribeImagesRequest.Builder |
imageId(String imageId)
The image IDs.
|
DescribeImagesRequest.Builder |
imageName(String imageName)
The image name.
|
DescribeImagesRequest.Builder |
imageOwnerAlias(String imageOwnerAlias)
The image source.
|
DescribeImagesRequest.Builder |
imageOwnerId(Long imageOwnerId)
The ID of the Alibaba Cloud account to which the image belongs.
|
DescribeImagesRequest.Builder |
instanceType(String instanceType)
The instance type for which the image can be used.
|
DescribeImagesRequest.Builder |
isPublic(Boolean isPublic)
Specifies whether to query published community images.
|
DescribeImagesRequest.Builder |
isSupportCloudinit(Boolean isSupportCloudinit)
Specifies whether the image supports cloud-init.
|
DescribeImagesRequest.Builder |
isSupportIoOptimized(Boolean isSupportIoOptimized)
Specifies whether the image can be used on I/O optimized instances.
|
DescribeImagesRequest.Builder |
OSType(String OSType)
The operating system type of the image.
|
DescribeImagesRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
DescribeImagesRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
DescribeImagesRequest.Builder |
pageNumber(Integer pageNumber)
The page number to return.
|
DescribeImagesRequest.Builder |
pageSize(Integer pageSize)
The number of entries per page.
|
DescribeImagesRequest.Builder |
regionId(String regionId)
The region ID of the image.
|
DescribeImagesRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the custom image belongs.
|
DescribeImagesRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
DescribeImagesRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
DescribeImagesRequest.Builder |
showExpired(Boolean showExpired)
Specifies whether the subscription image has expired.
|
DescribeImagesRequest.Builder |
snapshotId(String snapshotId)
The ID of the snapshot used to create the custom image.
|
DescribeImagesRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
DescribeImagesRequest.Builder |
status(String status)
The status of the image.
|
DescribeImagesRequest.Builder |
tag(List<DescribeImagesRequest.Tag> tag)
The tags list.
|
DescribeImagesRequest.Builder |
usage(String usage)
Specifies whether the image is running on an Elastic Compute Service (ECS) instance.
|
public DescribeImagesRequest.Builder sourceRegionId(String sourceRegionId)
public DescribeImagesRequest.Builder actionType(String actionType)
* CreateEcs: instance creation * ChangeOS: replacement of the system disk or OS
public DescribeImagesRequest.Builder architecture(String architecture)
* i386 * x86\_64 * arm64
public DescribeImagesRequest.Builder dryRun(Boolean dryRun)
* true: performs only a dry run. The system checks whether your AccessKey pair is valid, whether RAM users are granted required permissions, and whether the required parameters are specified. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned. * false: performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed. Default value: false.
public DescribeImagesRequest.Builder filter(List<DescribeImagesRequest.Filter> filter)
public DescribeImagesRequest.Builder imageFamily(String imageFamily)
This parameter is empty by default. > For information about image families that are associated with Alibaba Cloud official images, see [Overview of public images](~~108393~~).
public DescribeImagesRequest.Builder imageId(String imageId)
public DescribeImagesRequest.Builder imageName(String imageName)
public DescribeImagesRequest.Builder imageOwnerAlias(String imageOwnerAlias)
* system: images that are provided by Alibaba Cloud and are not released in Alibaba Cloud Marketplace, which are different from public images in the Elastic Compute Service (ECS) console. * self: your custom images * others: shared images (images shared by other Alibaba Cloud accounts) and community images (publicly available custom images that are published by other Alibaba Cloud accounts). Take note of the following items: * To query community images, you must set IsPublic to true. * To query shared images, you must set IsPublic to false or leave IsPublic empty. * marketplace: images released by Alibaba Cloud or independent software vendors (ISVs) in the Alibaba Cloud Marketplace, which must be purchased together with ECS instances. Take note of the billing details of the images. This parameter is empty by default. > By default, this parameter is empty, which indicates that the following images are queried: public images provided by Alibaba Cloud, custom images in your repository, shared images from other Alibaba Cloud accounts, and community images that are published by other Alibaba Cloud accounts.
public DescribeImagesRequest.Builder imageOwnerId(Long imageOwnerId)
public DescribeImagesRequest.Builder instanceType(String instanceType)
public DescribeImagesRequest.Builder isPublic(Boolean isPublic)
* true: queries published community images. When you set this parameter to true, you must set ImageOwnerAlias to others. * false: queries image types other than the community images type. The specific image types to be queried are determined by the ImageOwnerAlias value. Default value: false.
public DescribeImagesRequest.Builder isSupportCloudinit(Boolean isSupportCloudinit)
public DescribeImagesRequest.Builder isSupportIoOptimized(Boolean isSupportIoOptimized)
public DescribeImagesRequest.Builder OSType(String OSType)
* windows * linux
public DescribeImagesRequest.Builder ownerAccount(String ownerAccount)
public DescribeImagesRequest.Builder ownerId(Long ownerId)
public DescribeImagesRequest.Builder pageNumber(Integer pageNumber)
Pages start from page 1. Default value: 1.
public DescribeImagesRequest.Builder pageSize(Integer pageSize)
Valid values: 1 to 100. Default value: 10.
public DescribeImagesRequest.Builder regionId(String regionId)
public DescribeImagesRequest.Builder resourceGroupId(String resourceGroupId)
> Resources in the default resource group are displayed in the response regardless of whether you specify this parameter.
public DescribeImagesRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DescribeImagesRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DescribeImagesRequest.Builder showExpired(Boolean showExpired)
> This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility.
public DescribeImagesRequest.Builder snapshotId(String snapshotId)
public DescribeImagesRequest.Builder status(String status)
* Creating: The image is being created. * Waiting: The image is waiting to be processed. * Available: The image is available. * UnAvailable: The image is unavailable. * CreateFailed: The image failed to be created. * Deprecated: The image is deprecated. Default value: Available. You can specify multiple values for this parameter. Separate the values with commas (,).
public DescribeImagesRequest.Builder tag(List<DescribeImagesRequest.Tag> tag)
public DescribeImagesRequest.Builder usage(String usage)
* instance: The image is already in use and running on an ECS instance. * none: The image is idle.
public DescribeImagesRequest build()
Copyright © 2024. All rights reserved.