public static final class DescribeImagesRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
DescribeImagesRequest.Builder |
actionType(String actionType)
The scenario in which to use the image.
|
DescribeImagesRequest.Builder |
architecture(String architecture)
The architecture of the image.
|
DescribeImagesRequest |
build() |
DescribeImagesRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform a dry run.
|
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 IDs of the images.
|
DescribeImagesRequest.Builder |
imageName(String imageName)
The name of the image.
|
DescribeImagesRequest.Builder |
imageOwnerAlias(String imageOwnerAlias)
The source of the image.
|
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)
Indicates 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 number of the page to return.
|
DescribeImagesRequest.Builder |
pageSize(Integer pageSize)
The number of entries to return 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 state of the image.
|
DescribeImagesRequest.Builder |
tag(List<DescribeImagesRequest.Tag> tag)
The list of tags.
|
DescribeImagesRequest.Builder |
usage(String usage)
Specifies whether the image is running on an ECS instance.
|
public DescribeImagesRequest.Builder sourceRegionId(String sourceRegionId)
public DescribeImagesRequest.Builder actionType(String actionType)
* CreateEcs: creates an instance. * ChangeOS: replaces the system disk or operating system.
public DescribeImagesRequest.Builder architecture(String architecture)
* i386 * x86\_64 * arm64
public DescribeImagesRequest.Builder dryRun(Boolean dryRun)
* true: performs a dry run. The system checks your AccessKey pair, the permissions of the RAM user, and the required parameters. If the request fails the dry run, the corresponding error message is returned. If the check passes the dry run, the DryRunOperation error code is returned. * false: performs a dry run and sends the 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.
public DescribeImagesRequest.Builder imageId(String imageId)
public DescribeImagesRequest.Builder imageName(String imageName)
public DescribeImagesRequest.Builder imageOwnerAlias(String imageOwnerAlias)
* system: public images provided by Alibaba Cloud. These are not available in Alibaba Cloud Marketplace. * self: custom images that you create. * others: shared images from other Alibaba Cloud accounts and community images that image providers released on the image platform of Alibaba Cloud Community. When you call this operation, take note of the following items: * To query community images, you must set the IsPublic parameter to true. * To query shared images, you must set the IsPublic parameter to false or leave the IsPublic parameter empty. * marketplace: an image maintained by Alibaba Cloud or Independent Software Vendors (ISVs) in the Alibaba Cloud Marketplace. These images need to be purchased together with an Elastic Compute Service (ECS) instance. Before you use Alibaba Cloud Marketplace images, take note of the billing details of the images. This parameter is empty by default. > This parameter is empty by default, which indicates that public images provided by Alibaba Cloud, custom images in your repository, shared images from other Alibaba Cloud accounts, and community images published by other Alibaba Cloud accounts are queried.
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 the ImageOwnerAlias parameter to others. * false: queries image types other than community images. The specific image types to be queried are determined by the ImageOwnerAlias parameter. 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)
Maximum value: 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 how this parameter is set.
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. To ensure future compatibility, we recommend that you use other parameters.
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. This is the default value. * UnAvailable: The image is unavailable. * CreateFailed: The image cannot be created. * Deprecated: The image is discontinued. 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 in use and running on an ECS instance. * none: The image is not in use.
public DescribeImagesRequest build()
Copyright © 2023. All rights reserved.