Skip to content

ImagesProps

Properties for defining a Images.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-ecs-images

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs/datasource"
&datasource.ImagesProps {
    ActionType: interface{},
    Architecture: interface{},
    ImageFamily: interface{},
    ImageId: interface{},
    ImageName: interface{},
    ImageOwnerAlias: interface{},
    InstanceType: interface{},
    IsPublic: interface{},
    IsSupportCloudinit: interface{},
    IsSupportIoOptimized: interface{},
    OsType: interface{},
    RefreshOptions: interface{},
    ResourceGroupId: interface{},
    SnapshotId: interface{},
    Status: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.RosImages.TagsProperty,
    Usage: interface{},
}

Properties

Name Type Description
ActionType interface{} Property actionType: The scenario in which the image is used.
Architecture interface{} Property architecture: The image architecture.
ImageFamily interface{} Property imageFamily: The name of the image family.
ImageId interface{} Property imageId: The ID of the image.
ImageName interface{} Property imageName: The name of the image.
ImageOwnerAlias interface{} Property imageOwnerAlias: The source of the image.
InstanceType interface{} Property instanceType: The instance type for which the image can be used.
IsPublic interface{} Property isPublic: Specifies whether to query published community images.
IsSupportCloudinit interface{} Property isSupportCloudinit: Specifies whether the image supports cloud-init.
IsSupportIoOptimized interface{} Property isSupportIoOptimized: Specifies whether the image can be used on I\/O optimized instances.
OsType interface{} Property osType: The operating system type of the image.
RefreshOptions interface{} Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
ResourceGroupId interface{} Property resourceGroupId: The ID of the resource group to which the custom image belongs.
SnapshotId interface{} Property snapshotId: The ID of the snapshot used to create the custom image.
Status interface{} Property status: The state of the image.
Tags *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.RosImages.TagsProperty Property tags: Tags of image.
Usage interface{} Property usage: Specifies whether the image is running on an Elastic Compute Service (ECS) instance.

ActionTypeOptional

ActionType interface{}
  • Type: interface{}

Property actionType: The scenario in which the image is used.

Default value: CreateEcs. Valid values: CreateEcs: instance creation ChangeOS: replacement of the system disk or operating system


ArchitectureOptional

Architecture interface{}
  • Type: interface{}

Property architecture: The image architecture.

Valid values: i38 x86_64 arm64


ImageFamilyOptional

ImageFamily interface{}
  • Type: interface{}

Property imageFamily: The name of the image family.

You can set this parameter to query images of the specified image family. This parameter is empty by default.


ImageIdOptional

ImageId interface{}
  • Type: interface{}

Property imageId: The ID of the image.


ImageNameOptional

ImageName interface{}
  • Type: interface{}

Property imageName: The name of the image.

Support for fuzzy queries using *.


ImageOwnerAliasOptional

ImageOwnerAlias interface{}
  • Type: interface{}

Property imageOwnerAlias: The source of the image.

Valid values: system: public images provided by Alibaba Cloud. self: your custom images. others: shared images from other Alibaba Cloud accounts, or community images 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 the IsPublic parameter empty. marketplace: Alibaba Cloud Marketplace images. If Alibaba Cloud Marketplace images are returned in the response, you can use the images without subscription. You must pay attention to the billing details of Alibaba Cloud Marketplace images. This parameter is empty by default, which indicates that the results that match system, self, and others are returned.

InstanceTypeOptional

InstanceType interface{}
  • Type: interface{}

Property instanceType: The instance type for which the image can be used.


IsPublicOptional

IsPublic interface{}
  • Type: interface{}

Property isPublic: Specifies whether to query published community images.

Valid values: true: queries published community images. When you set this parameter to true, you must set ImageOwnerAlias to others. false: queries other image types than community images. The specific image types to be queried are determined by the ImageOwnerAlias value. Default value: false.


IsSupportCloudinitOptional

IsSupportCloudinit interface{}
  • Type: interface{}

Property isSupportCloudinit: Specifies whether the image supports cloud-init.


IsSupportIoOptimizedOptional

IsSupportIoOptimized interface{}
  • Type: interface{}

Property isSupportIoOptimized: Specifies whether the image can be used on I\/O optimized instances.


OsTypeOptional

OsType interface{}
  • Type: interface{}

Property osType: The operating system type of the image.

Valid values: windows linux


RefreshOptionsOptional

RefreshOptions interface{}
  • Type: interface{}

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never: Never refresh the datasource resource when the stack is updated.
  • Always: Always refresh the datasource resource when the stack is updated. Default is Never.

ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: The ID of the resource group to which the custom image belongs.

If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response.


SnapshotIdOptional

SnapshotId interface{}
  • Type: interface{}

Property snapshotId: The ID of the snapshot used to create the custom image.


StatusOptional

Status interface{}
  • Type: interface{}

Property status: The state of the image.

Default value: Available. Valid values: 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 discontinued. You can specify multiple values. Separate multiple values with commas (,).


TagsOptional

Tags *[]TagsProperty
  • Type: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.RosImages.TagsProperty

Property tags: Tags of image.


UsageOptional

Usage interface{}
  • Type: interface{}

Property usage: Specifies whether the image is running on an Elastic Compute Service (ECS) instance.

Valid values: instance: The image is already in use and running on an ECS instance. none: The image is not in use.