volcenginecc.ecs.Image
镜像是包含了云服务器实例所需的基本操作系统、应用数据的特殊文件。创建实例时,必须选择镜像。
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
imageDemo:
type: volcenginecc:ecs:Image
name: ImageDemo
properties:
bootMode: UEFI
description: ImageDemo Example
imageName: image-demo
instanceId: i-ydzhj1el8gr9cxxdnxxxx
kernel: Linux
licenseType: BYOL
osName: CentOS
osType: Linux
platform: CentOS
platformVersion: '8.3'
projectName: default
sharePermissions:
- 2000000***
tags:
- key: env
value: test
Create Image Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Image(name: string, args: ImageArgs, opts?: CustomResourceOptions);
@overload
def Image(resource_name: str,
args: ImageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Image(resource_name: str,
opts: Optional[ResourceOptions] = None,
image_name: Optional[str] = None,
os_name: Optional[str] = None,
platform: Optional[str] = None,
instance_id: Optional[str] = None,
kernel: Optional[str] = None,
license_type: Optional[str] = None,
description: Optional[str] = None,
os_type: Optional[str] = None,
detection_results: Optional[ImageDetectionResultsArgs] = None,
platform_version: Optional[str] = None,
project_name: Optional[str] = None,
share_permissions: Optional[Sequence[str]] = None,
snapshot_group_id: Optional[str] = None,
snapshot_id: Optional[str] = None,
tags: Optional[Sequence[ImageTagArgs]] = None)
func NewImage(ctx *Context, name string, args ImageArgs, opts ...ResourceOption) (*Image, error)
public Image(string name, ImageArgs args, CustomResourceOptions? opts = null)
type: volcenginecc:ecs:Image
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ImageArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ImageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ImageArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var imageResource = new Volcenginecc.Ecs.Image("imageResource", new()
{
ImageName = "string",
OsName = "string",
Platform = "string",
InstanceId = "string",
Kernel = "string",
LicenseType = "string",
Description = "string",
OsType = "string",
DetectionResults = new Volcenginecc.Ecs.Inputs.ImageDetectionResultsArgs
{
DetectionStatus = "string",
Items = new[]
{
new Volcenginecc.Ecs.Inputs.ImageDetectionResultsItemArgs
{
Name = "string",
Result = "string",
RiskCode = "string",
RiskLevel = "string",
},
},
},
PlatformVersion = "string",
ProjectName = "string",
SharePermissions = new[]
{
"string",
},
SnapshotGroupId = "string",
SnapshotId = "string",
Tags = new[]
{
new Volcenginecc.Ecs.Inputs.ImageTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := ecs.NewImage(ctx, "imageResource", &ecs.ImageArgs{
ImageName: pulumi.String("string"),
OsName: pulumi.String("string"),
Platform: pulumi.String("string"),
InstanceId: pulumi.String("string"),
Kernel: pulumi.String("string"),
LicenseType: pulumi.String("string"),
Description: pulumi.String("string"),
OsType: pulumi.String("string"),
DetectionResults: &ecs.ImageDetectionResultsArgs{
DetectionStatus: pulumi.String("string"),
Items: ecs.ImageDetectionResultsItemArray{
&ecs.ImageDetectionResultsItemArgs{
Name: pulumi.String("string"),
Result: pulumi.String("string"),
RiskCode: pulumi.String("string"),
RiskLevel: pulumi.String("string"),
},
},
},
PlatformVersion: pulumi.String("string"),
ProjectName: pulumi.String("string"),
SharePermissions: pulumi.StringArray{
pulumi.String("string"),
},
SnapshotGroupId: pulumi.String("string"),
SnapshotId: pulumi.String("string"),
Tags: ecs.ImageTagArray{
&ecs.ImageTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var imageResource = new Image("imageResource", ImageArgs.builder()
.imageName("string")
.osName("string")
.platform("string")
.instanceId("string")
.kernel("string")
.licenseType("string")
.description("string")
.osType("string")
.detectionResults(ImageDetectionResultsArgs.builder()
.detectionStatus("string")
.items(ImageDetectionResultsItemArgs.builder()
.name("string")
.result("string")
.riskCode("string")
.riskLevel("string")
.build())
.build())
.platformVersion("string")
.projectName("string")
.sharePermissions("string")
.snapshotGroupId("string")
.snapshotId("string")
.tags(ImageTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
image_resource = volcenginecc.ecs.Image("imageResource",
image_name="string",
os_name="string",
platform="string",
instance_id="string",
kernel="string",
license_type="string",
description="string",
os_type="string",
detection_results={
"detection_status": "string",
"items": [{
"name": "string",
"result": "string",
"risk_code": "string",
"risk_level": "string",
}],
},
platform_version="string",
project_name="string",
share_permissions=["string"],
snapshot_group_id="string",
snapshot_id="string",
tags=[{
"key": "string",
"value": "string",
}])
const imageResource = new volcenginecc.ecs.Image("imageResource", {
imageName: "string",
osName: "string",
platform: "string",
instanceId: "string",
kernel: "string",
licenseType: "string",
description: "string",
osType: "string",
detectionResults: {
detectionStatus: "string",
items: [{
name: "string",
result: "string",
riskCode: "string",
riskLevel: "string",
}],
},
platformVersion: "string",
projectName: "string",
sharePermissions: ["string"],
snapshotGroupId: "string",
snapshotId: "string",
tags: [{
key: "string",
value: "string",
}],
});
type: volcenginecc:ecs:Image
properties:
description: string
detectionResults:
detectionStatus: string
items:
- name: string
result: string
riskCode: string
riskLevel: string
imageName: string
instanceId: string
kernel: string
licenseType: string
osName: string
osType: string
platform: string
platformVersion: string
projectName: string
sharePermissions:
- string
snapshotGroupId: string
snapshotId: string
tags:
- key: string
value: string
Image Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Image resource accepts the following input properties:
- Image
Name string - 镜像名称。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、英文句号“.”。长度限制为1 ~ 128个字符。
- Description string
- 镜像描述。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、英文句号“.”、中文逗号“,”、中文句号“。”和空格。长度限制为0~255个字符。不填默认为空。
- Detection
Results Volcengine.Image Detection Results - 镜像的检测结果。
- Instance
Id string - 实例ID。本参数与SnapshotId、SnapshotGroupId参数,三选一必填。
- Kernel string
- 镜像的内核版本。
- License
Type string - 镜像许可证类型。VolcanoEngine:默认,根据您设置的platform,采用火山引擎官方渠道的许可证。BYOL:自带许可证(BYOL)。
- Os
Name string - 镜像操作系统的名称。
- Os
Type string - 操作系统类型。
- Platform string
- 镜像操作系统的发行版本。可以选择CentOS、Debian、veLinux、Windows Server、Fedora、OpenSUSE、Ubuntu。
- Platform
Version string - 镜像的发行版本。
- Project
Name string - 资源所属项目。调用接口账号若仅拥有部分项目权限时必须传入有权限的项目信息。
- List<string>
- 镜像共享的账户
- Snapshot
Group stringId - 快照一致性组ID,表示使用快照一致性组创建自定义镜像。本参数与SnapshotId、InstanceId参数,三选一必填。
- Snapshot
Id string - 系统盘快照ID,表示使用系统盘快照创建自定义镜像。本参数与InstanceId、SnapshotGroupId参数,三选一必填。
- List<Volcengine.
Image Tag>
- Image
Name string - 镜像名称。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、英文句号“.”。长度限制为1 ~ 128个字符。
- Description string
- 镜像描述。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、英文句号“.”、中文逗号“,”、中文句号“。”和空格。长度限制为0~255个字符。不填默认为空。
- Detection
Results ImageDetection Results Args - 镜像的检测结果。
- Instance
Id string - 实例ID。本参数与SnapshotId、SnapshotGroupId参数,三选一必填。
- Kernel string
- 镜像的内核版本。
- License
Type string - 镜像许可证类型。VolcanoEngine:默认,根据您设置的platform,采用火山引擎官方渠道的许可证。BYOL:自带许可证(BYOL)。
- Os
Name string - 镜像操作系统的名称。
- Os
Type string - 操作系统类型。
- Platform string
- 镜像操作系统的发行版本。可以选择CentOS、Debian、veLinux、Windows Server、Fedora、OpenSUSE、Ubuntu。
- Platform
Version string - 镜像的发行版本。
- Project
Name string - 资源所属项目。调用接口账号若仅拥有部分项目权限时必须传入有权限的项目信息。
- []string
- 镜像共享的账户
- Snapshot
Group stringId - 快照一致性组ID,表示使用快照一致性组创建自定义镜像。本参数与SnapshotId、InstanceId参数,三选一必填。
- Snapshot
Id string - 系统盘快照ID,表示使用系统盘快照创建自定义镜像。本参数与InstanceId、SnapshotGroupId参数,三选一必填。
- []Image
Tag Args
- image
Name String - 镜像名称。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、英文句号“.”。长度限制为1 ~ 128个字符。
- description String
- 镜像描述。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、英文句号“.”、中文逗号“,”、中文句号“。”和空格。长度限制为0~255个字符。不填默认为空。
- detection
Results ImageDetection Results - 镜像的检测结果。
- instance
Id String - 实例ID。本参数与SnapshotId、SnapshotGroupId参数,三选一必填。
- kernel String
- 镜像的内核版本。
- license
Type String - 镜像许可证类型。VolcanoEngine:默认,根据您设置的platform,采用火山引擎官方渠道的许可证。BYOL:自带许可证(BYOL)。
- os
Name String - 镜像操作系统的名称。
- os
Type String - 操作系统类型。
- platform String
- 镜像操作系统的发行版本。可以选择CentOS、Debian、veLinux、Windows Server、Fedora、OpenSUSE、Ubuntu。
- platform
Version String - 镜像的发行版本。
- project
Name String - 资源所属项目。调用接口账号若仅拥有部分项目权限时必须传入有权限的项目信息。
- List<String>
- 镜像共享的账户
- snapshot
Group StringId - 快照一致性组ID,表示使用快照一致性组创建自定义镜像。本参数与SnapshotId、InstanceId参数,三选一必填。
- snapshot
Id String - 系统盘快照ID,表示使用系统盘快照创建自定义镜像。本参数与InstanceId、SnapshotGroupId参数,三选一必填。
- List<Image
Tag>
- image
Name string - 镜像名称。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、英文句号“.”。长度限制为1 ~ 128个字符。
- description string
- 镜像描述。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、英文句号“.”、中文逗号“,”、中文句号“。”和空格。长度限制为0~255个字符。不填默认为空。
- detection
Results ImageDetection Results - 镜像的检测结果。
- instance
Id string - 实例ID。本参数与SnapshotId、SnapshotGroupId参数,三选一必填。
- kernel string
- 镜像的内核版本。
- license
Type string - 镜像许可证类型。VolcanoEngine:默认,根据您设置的platform,采用火山引擎官方渠道的许可证。BYOL:自带许可证(BYOL)。
- os
Name string - 镜像操作系统的名称。
- os
Type string - 操作系统类型。
- platform string
- 镜像操作系统的发行版本。可以选择CentOS、Debian、veLinux、Windows Server、Fedora、OpenSUSE、Ubuntu。
- platform
Version string - 镜像的发行版本。
- project
Name string - 资源所属项目。调用接口账号若仅拥有部分项目权限时必须传入有权限的项目信息。
- string[]
- 镜像共享的账户
- snapshot
Group stringId - 快照一致性组ID,表示使用快照一致性组创建自定义镜像。本参数与SnapshotId、InstanceId参数,三选一必填。
- snapshot
Id string - 系统盘快照ID,表示使用系统盘快照创建自定义镜像。本参数与InstanceId、SnapshotGroupId参数,三选一必填。
- Image
Tag[]
- image_
name str - 镜像名称。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、英文句号“.”。长度限制为1 ~ 128个字符。
- description str
- 镜像描述。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、英文句号“.”、中文逗号“,”、中文句号“。”和空格。长度限制为0~255个字符。不填默认为空。
- detection_
results ImageDetection Results Args - 镜像的检测结果。
- instance_
id str - 实例ID。本参数与SnapshotId、SnapshotGroupId参数,三选一必填。
- kernel str
- 镜像的内核版本。
- license_
type str - 镜像许可证类型。VolcanoEngine:默认,根据您设置的platform,采用火山引擎官方渠道的许可证。BYOL:自带许可证(BYOL)。
- os_
name str - 镜像操作系统的名称。
- os_
type str - 操作系统类型。
- platform str
- 镜像操作系统的发行版本。可以选择CentOS、Debian、veLinux、Windows Server、Fedora、OpenSUSE、Ubuntu。
- platform_
version str - 镜像的发行版本。
- project_
name str - 资源所属项目。调用接口账号若仅拥有部分项目权限时必须传入有权限的项目信息。
- Sequence[str]
- 镜像共享的账户
- snapshot_
group_ strid - 快照一致性组ID,表示使用快照一致性组创建自定义镜像。本参数与SnapshotId、InstanceId参数,三选一必填。
- snapshot_
id str - 系统盘快照ID,表示使用系统盘快照创建自定义镜像。本参数与InstanceId、SnapshotGroupId参数,三选一必填。
- Sequence[Image
Tag Args]
- image
Name String - 镜像名称。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、英文句号“.”。长度限制为1 ~ 128个字符。
- description String
- 镜像描述。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、英文句号“.”、中文逗号“,”、中文句号“。”和空格。长度限制为0~255个字符。不填默认为空。
- detection
Results Property Map - 镜像的检测结果。
- instance
Id String - 实例ID。本参数与SnapshotId、SnapshotGroupId参数,三选一必填。
- kernel String
- 镜像的内核版本。
- license
Type String - 镜像许可证类型。VolcanoEngine:默认,根据您设置的platform,采用火山引擎官方渠道的许可证。BYOL:自带许可证(BYOL)。
- os
Name String - 镜像操作系统的名称。
- os
Type String - 操作系统类型。
- platform String
- 镜像操作系统的发行版本。可以选择CentOS、Debian、veLinux、Windows Server、Fedora、OpenSUSE、Ubuntu。
- platform
Version String - 镜像的发行版本。
- project
Name String - 资源所属项目。调用接口账号若仅拥有部分项目权限时必须传入有权限的项目信息。
- List<String>
- 镜像共享的账户
- snapshot
Group StringId - 快照一致性组ID,表示使用快照一致性组创建自定义镜像。本参数与SnapshotId、InstanceId参数,三选一必填。
- snapshot
Id String - 系统盘快照ID,表示使用系统盘快照创建自定义镜像。本参数与InstanceId、SnapshotGroupId参数,三选一必填。
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Image resource produces the following output properties:
- Architecture string
- 镜像的架构类型。可以选择amd64(x86计算)、arm64(ARM计算)类型。
- Boot
Mode string - 镜像的启动模式。可以选择BIOS、UEFI类型。
- Created
At string - 镜像创建时间
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Id string - 镜像ID。
- Image
Owner stringId - 镜像所属的账号ID。
- Is
Install boolRun Command Agent - 镜像中是否安装了云助手Agent。
- Is
Lts bool - 公共镜像是否长期维护。
- Is
Support boolCloud Init - 镜像是否支持Cloud-init。
- string
- 镜像共享状态。HasShared:自定义镜像已被共享给其他用户。当自定义镜像未被共享或使用公共镜像时,ShareStatus返回为空。
- Size int
- 镜像大小,单位为GiB。
- Snapshots
List<Volcengine.
Image Snapshot> - Status string
- 镜像的状态。
- Updated
At string - 镜像更新时间
- Virtual
Size double - 镜像大小,单位为Byte。
- Visibility string
- 镜像的可见性。public:公共镜像。private:私有镜像。shared:共享镜像。
- Architecture string
- 镜像的架构类型。可以选择amd64(x86计算)、arm64(ARM计算)类型。
- Boot
Mode string - 镜像的启动模式。可以选择BIOS、UEFI类型。
- Created
At string - 镜像创建时间
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Id string - 镜像ID。
- Image
Owner stringId - 镜像所属的账号ID。
- Is
Install boolRun Command Agent - 镜像中是否安装了云助手Agent。
- Is
Lts bool - 公共镜像是否长期维护。
- Is
Support boolCloud Init - 镜像是否支持Cloud-init。
- string
- 镜像共享状态。HasShared:自定义镜像已被共享给其他用户。当自定义镜像未被共享或使用公共镜像时,ShareStatus返回为空。
- Size int
- 镜像大小,单位为GiB。
- Snapshots
[]Image
Snapshot - Status string
- 镜像的状态。
- Updated
At string - 镜像更新时间
- Virtual
Size float64 - 镜像大小,单位为Byte。
- Visibility string
- 镜像的可见性。public:公共镜像。private:私有镜像。shared:共享镜像。
- architecture String
- 镜像的架构类型。可以选择amd64(x86计算)、arm64(ARM计算)类型。
- boot
Mode String - 镜像的启动模式。可以选择BIOS、UEFI类型。
- created
At String - 镜像创建时间
- id String
- The provider-assigned unique ID for this managed resource.
- image
Id String - 镜像ID。
- image
Owner StringId - 镜像所属的账号ID。
- is
Install BooleanRun Command Agent - 镜像中是否安装了云助手Agent。
- is
Lts Boolean - 公共镜像是否长期维护。
- is
Support BooleanCloud Init - 镜像是否支持Cloud-init。
- String
- 镜像共享状态。HasShared:自定义镜像已被共享给其他用户。当自定义镜像未被共享或使用公共镜像时,ShareStatus返回为空。
- size Integer
- 镜像大小,单位为GiB。
- snapshots
List<Image
Snapshot> - status String
- 镜像的状态。
- updated
At String - 镜像更新时间
- virtual
Size Double - 镜像大小,单位为Byte。
- visibility String
- 镜像的可见性。public:公共镜像。private:私有镜像。shared:共享镜像。
- architecture string
- 镜像的架构类型。可以选择amd64(x86计算)、arm64(ARM计算)类型。
- boot
Mode string - 镜像的启动模式。可以选择BIOS、UEFI类型。
- created
At string - 镜像创建时间
- id string
- The provider-assigned unique ID for this managed resource.
- image
Id string - 镜像ID。
- image
Owner stringId - 镜像所属的账号ID。
- is
Install booleanRun Command Agent - 镜像中是否安装了云助手Agent。
- is
Lts boolean - 公共镜像是否长期维护。
- is
Support booleanCloud Init - 镜像是否支持Cloud-init。
- string
- 镜像共享状态。HasShared:自定义镜像已被共享给其他用户。当自定义镜像未被共享或使用公共镜像时,ShareStatus返回为空。
- size number
- 镜像大小,单位为GiB。
- snapshots
Image
Snapshot[] - status string
- 镜像的状态。
- updated
At string - 镜像更新时间
- virtual
Size number - 镜像大小,单位为Byte。
- visibility string
- 镜像的可见性。public:公共镜像。private:私有镜像。shared:共享镜像。
- architecture str
- 镜像的架构类型。可以选择amd64(x86计算)、arm64(ARM计算)类型。
- boot_
mode str - 镜像的启动模式。可以选择BIOS、UEFI类型。
- created_
at str - 镜像创建时间
- id str
- The provider-assigned unique ID for this managed resource.
- image_
id str - 镜像ID。
- image_
owner_ strid - 镜像所属的账号ID。
- is_
install_ boolrun_ command_ agent - 镜像中是否安装了云助手Agent。
- is_
lts bool - 公共镜像是否长期维护。
- is_
support_ boolcloud_ init - 镜像是否支持Cloud-init。
- str
- 镜像共享状态。HasShared:自定义镜像已被共享给其他用户。当自定义镜像未被共享或使用公共镜像时,ShareStatus返回为空。
- size int
- 镜像大小,单位为GiB。
- snapshots
Sequence[Image
Snapshot] - status str
- 镜像的状态。
- updated_
at str - 镜像更新时间
- virtual_
size float - 镜像大小,单位为Byte。
- visibility str
- 镜像的可见性。public:公共镜像。private:私有镜像。shared:共享镜像。
- architecture String
- 镜像的架构类型。可以选择amd64(x86计算)、arm64(ARM计算)类型。
- boot
Mode String - 镜像的启动模式。可以选择BIOS、UEFI类型。
- created
At String - 镜像创建时间
- id String
- The provider-assigned unique ID for this managed resource.
- image
Id String - 镜像ID。
- image
Owner StringId - 镜像所属的账号ID。
- is
Install BooleanRun Command Agent - 镜像中是否安装了云助手Agent。
- is
Lts Boolean - 公共镜像是否长期维护。
- is
Support BooleanCloud Init - 镜像是否支持Cloud-init。
- String
- 镜像共享状态。HasShared:自定义镜像已被共享给其他用户。当自定义镜像未被共享或使用公共镜像时,ShareStatus返回为空。
- size Number
- 镜像大小,单位为GiB。
- snapshots List<Property Map>
- status String
- 镜像的状态。
- updated
At String - 镜像更新时间
- virtual
Size Number - 镜像大小,单位为Byte。
- visibility String
- 镜像的可见性。public:公共镜像。private:私有镜像。shared:共享镜像。
Look up Existing Image Resource
Get an existing Image resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ImageState, opts?: CustomResourceOptions): Image
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
architecture: Optional[str] = None,
boot_mode: Optional[str] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
detection_results: Optional[ImageDetectionResultsArgs] = None,
image_id: Optional[str] = None,
image_name: Optional[str] = None,
image_owner_id: Optional[str] = None,
instance_id: Optional[str] = None,
is_install_run_command_agent: Optional[bool] = None,
is_lts: Optional[bool] = None,
is_support_cloud_init: Optional[bool] = None,
kernel: Optional[str] = None,
license_type: Optional[str] = None,
os_name: Optional[str] = None,
os_type: Optional[str] = None,
platform: Optional[str] = None,
platform_version: Optional[str] = None,
project_name: Optional[str] = None,
share_permissions: Optional[Sequence[str]] = None,
share_status: Optional[str] = None,
size: Optional[int] = None,
snapshot_group_id: Optional[str] = None,
snapshot_id: Optional[str] = None,
snapshots: Optional[Sequence[ImageSnapshotArgs]] = None,
status: Optional[str] = None,
tags: Optional[Sequence[ImageTagArgs]] = None,
updated_at: Optional[str] = None,
virtual_size: Optional[float] = None,
visibility: Optional[str] = None) -> Image
func GetImage(ctx *Context, name string, id IDInput, state *ImageState, opts ...ResourceOption) (*Image, error)
public static Image Get(string name, Input<string> id, ImageState? state, CustomResourceOptions? opts = null)
public static Image get(String name, Output<String> id, ImageState state, CustomResourceOptions options)
resources: _: type: volcenginecc:ecs:Image get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Architecture string
- 镜像的架构类型。可以选择amd64(x86计算)、arm64(ARM计算)类型。
- Boot
Mode string - 镜像的启动模式。可以选择BIOS、UEFI类型。
- Created
At string - 镜像创建时间
- Description string
- 镜像描述。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、英文句号“.”、中文逗号“,”、中文句号“。”和空格。长度限制为0~255个字符。不填默认为空。
- Detection
Results Volcengine.Image Detection Results - 镜像的检测结果。
- Image
Id string - 镜像ID。
- Image
Name string - 镜像名称。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、英文句号“.”。长度限制为1 ~ 128个字符。
- Image
Owner stringId - 镜像所属的账号ID。
- Instance
Id string - 实例ID。本参数与SnapshotId、SnapshotGroupId参数,三选一必填。
- Is
Install boolRun Command Agent - 镜像中是否安装了云助手Agent。
- Is
Lts bool - 公共镜像是否长期维护。
- Is
Support boolCloud Init - 镜像是否支持Cloud-init。
- Kernel string
- 镜像的内核版本。
- License
Type string - 镜像许可证类型。VolcanoEngine:默认,根据您设置的platform,采用火山引擎官方渠道的许可证。BYOL:自带许可证(BYOL)。
- Os
Name string - 镜像操作系统的名称。
- Os
Type string - 操作系统类型。
- Platform string
- 镜像操作系统的发行版本。可以选择CentOS、Debian、veLinux、Windows Server、Fedora、OpenSUSE、Ubuntu。
- Platform
Version string - 镜像的发行版本。
- Project
Name string - 资源所属项目。调用接口账号若仅拥有部分项目权限时必须传入有权限的项目信息。
- List<string>
- 镜像共享的账户
- string
- 镜像共享状态。HasShared:自定义镜像已被共享给其他用户。当自定义镜像未被共享或使用公共镜像时,ShareStatus返回为空。
- Size int
- 镜像大小,单位为GiB。
- Snapshot
Group stringId - 快照一致性组ID,表示使用快照一致性组创建自定义镜像。本参数与SnapshotId、InstanceId参数,三选一必填。
- Snapshot
Id string - 系统盘快照ID,表示使用系统盘快照创建自定义镜像。本参数与InstanceId、SnapshotGroupId参数,三选一必填。
- Snapshots
List<Volcengine.
Image Snapshot> - Status string
- 镜像的状态。
- List<Volcengine.
Image Tag> - Updated
At string - 镜像更新时间
- Virtual
Size double - 镜像大小,单位为Byte。
- Visibility string
- 镜像的可见性。public:公共镜像。private:私有镜像。shared:共享镜像。
- Architecture string
- 镜像的架构类型。可以选择amd64(x86计算)、arm64(ARM计算)类型。
- Boot
Mode string - 镜像的启动模式。可以选择BIOS、UEFI类型。
- Created
At string - 镜像创建时间
- Description string
- 镜像描述。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、英文句号“.”、中文逗号“,”、中文句号“。”和空格。长度限制为0~255个字符。不填默认为空。
- Detection
Results ImageDetection Results Args - 镜像的检测结果。
- Image
Id string - 镜像ID。
- Image
Name string - 镜像名称。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、英文句号“.”。长度限制为1 ~ 128个字符。
- Image
Owner stringId - 镜像所属的账号ID。
- Instance
Id string - 实例ID。本参数与SnapshotId、SnapshotGroupId参数,三选一必填。
- Is
Install boolRun Command Agent - 镜像中是否安装了云助手Agent。
- Is
Lts bool - 公共镜像是否长期维护。
- Is
Support boolCloud Init - 镜像是否支持Cloud-init。
- Kernel string
- 镜像的内核版本。
- License
Type string - 镜像许可证类型。VolcanoEngine:默认,根据您设置的platform,采用火山引擎官方渠道的许可证。BYOL:自带许可证(BYOL)。
- Os
Name string - 镜像操作系统的名称。
- Os
Type string - 操作系统类型。
- Platform string
- 镜像操作系统的发行版本。可以选择CentOS、Debian、veLinux、Windows Server、Fedora、OpenSUSE、Ubuntu。
- Platform
Version string - 镜像的发行版本。
- Project
Name string - 资源所属项目。调用接口账号若仅拥有部分项目权限时必须传入有权限的项目信息。
- []string
- 镜像共享的账户
- string
- 镜像共享状态。HasShared:自定义镜像已被共享给其他用户。当自定义镜像未被共享或使用公共镜像时,ShareStatus返回为空。
- Size int
- 镜像大小,单位为GiB。
- Snapshot
Group stringId - 快照一致性组ID,表示使用快照一致性组创建自定义镜像。本参数与SnapshotId、InstanceId参数,三选一必填。
- Snapshot
Id string - 系统盘快照ID,表示使用系统盘快照创建自定义镜像。本参数与InstanceId、SnapshotGroupId参数,三选一必填。
- Snapshots
[]Image
Snapshot Args - Status string
- 镜像的状态。
- []Image
Tag Args - Updated
At string - 镜像更新时间
- Virtual
Size float64 - 镜像大小,单位为Byte。
- Visibility string
- 镜像的可见性。public:公共镜像。private:私有镜像。shared:共享镜像。
- architecture String
- 镜像的架构类型。可以选择amd64(x86计算)、arm64(ARM计算)类型。
- boot
Mode String - 镜像的启动模式。可以选择BIOS、UEFI类型。
- created
At String - 镜像创建时间
- description String
- 镜像描述。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、英文句号“.”、中文逗号“,”、中文句号“。”和空格。长度限制为0~255个字符。不填默认为空。
- detection
Results ImageDetection Results - 镜像的检测结果。
- image
Id String - 镜像ID。
- image
Name String - 镜像名称。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、英文句号“.”。长度限制为1 ~ 128个字符。
- image
Owner StringId - 镜像所属的账号ID。
- instance
Id String - 实例ID。本参数与SnapshotId、SnapshotGroupId参数,三选一必填。
- is
Install BooleanRun Command Agent - 镜像中是否安装了云助手Agent。
- is
Lts Boolean - 公共镜像是否长期维护。
- is
Support BooleanCloud Init - 镜像是否支持Cloud-init。
- kernel String
- 镜像的内核版本。
- license
Type String - 镜像许可证类型。VolcanoEngine:默认,根据您设置的platform,采用火山引擎官方渠道的许可证。BYOL:自带许可证(BYOL)。
- os
Name String - 镜像操作系统的名称。
- os
Type String - 操作系统类型。
- platform String
- 镜像操作系统的发行版本。可以选择CentOS、Debian、veLinux、Windows Server、Fedora、OpenSUSE、Ubuntu。
- platform
Version String - 镜像的发行版本。
- project
Name String - 资源所属项目。调用接口账号若仅拥有部分项目权限时必须传入有权限的项目信息。
- List<String>
- 镜像共享的账户
- String
- 镜像共享状态。HasShared:自定义镜像已被共享给其他用户。当自定义镜像未被共享或使用公共镜像时,ShareStatus返回为空。
- size Integer
- 镜像大小,单位为GiB。
- snapshot
Group StringId - 快照一致性组ID,表示使用快照一致性组创建自定义镜像。本参数与SnapshotId、InstanceId参数,三选一必填。
- snapshot
Id String - 系统盘快照ID,表示使用系统盘快照创建自定义镜像。本参数与InstanceId、SnapshotGroupId参数,三选一必填。
- snapshots
List<Image
Snapshot> - status String
- 镜像的状态。
- List<Image
Tag> - updated
At String - 镜像更新时间
- virtual
Size Double - 镜像大小,单位为Byte。
- visibility String
- 镜像的可见性。public:公共镜像。private:私有镜像。shared:共享镜像。
- architecture string
- 镜像的架构类型。可以选择amd64(x86计算)、arm64(ARM计算)类型。
- boot
Mode string - 镜像的启动模式。可以选择BIOS、UEFI类型。
- created
At string - 镜像创建时间
- description string
- 镜像描述。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、英文句号“.”、中文逗号“,”、中文句号“。”和空格。长度限制为0~255个字符。不填默认为空。
- detection
Results ImageDetection Results - 镜像的检测结果。
- image
Id string - 镜像ID。
- image
Name string - 镜像名称。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、英文句号“.”。长度限制为1 ~ 128个字符。
- image
Owner stringId - 镜像所属的账号ID。
- instance
Id string - 实例ID。本参数与SnapshotId、SnapshotGroupId参数,三选一必填。
- is
Install booleanRun Command Agent - 镜像中是否安装了云助手Agent。
- is
Lts boolean - 公共镜像是否长期维护。
- is
Support booleanCloud Init - 镜像是否支持Cloud-init。
- kernel string
- 镜像的内核版本。
- license
Type string - 镜像许可证类型。VolcanoEngine:默认,根据您设置的platform,采用火山引擎官方渠道的许可证。BYOL:自带许可证(BYOL)。
- os
Name string - 镜像操作系统的名称。
- os
Type string - 操作系统类型。
- platform string
- 镜像操作系统的发行版本。可以选择CentOS、Debian、veLinux、Windows Server、Fedora、OpenSUSE、Ubuntu。
- platform
Version string - 镜像的发行版本。
- project
Name string - 资源所属项目。调用接口账号若仅拥有部分项目权限时必须传入有权限的项目信息。
- string[]
- 镜像共享的账户
- string
- 镜像共享状态。HasShared:自定义镜像已被共享给其他用户。当自定义镜像未被共享或使用公共镜像时,ShareStatus返回为空。
- size number
- 镜像大小,单位为GiB。
- snapshot
Group stringId - 快照一致性组ID,表示使用快照一致性组创建自定义镜像。本参数与SnapshotId、InstanceId参数,三选一必填。
- snapshot
Id string - 系统盘快照ID,表示使用系统盘快照创建自定义镜像。本参数与InstanceId、SnapshotGroupId参数,三选一必填。
- snapshots
Image
Snapshot[] - status string
- 镜像的状态。
- Image
Tag[] - updated
At string - 镜像更新时间
- virtual
Size number - 镜像大小,单位为Byte。
- visibility string
- 镜像的可见性。public:公共镜像。private:私有镜像。shared:共享镜像。
- architecture str
- 镜像的架构类型。可以选择amd64(x86计算)、arm64(ARM计算)类型。
- boot_
mode str - 镜像的启动模式。可以选择BIOS、UEFI类型。
- created_
at str - 镜像创建时间
- description str
- 镜像描述。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、英文句号“.”、中文逗号“,”、中文句号“。”和空格。长度限制为0~255个字符。不填默认为空。
- detection_
results ImageDetection Results Args - 镜像的检测结果。
- image_
id str - 镜像ID。
- image_
name str - 镜像名称。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、英文句号“.”。长度限制为1 ~ 128个字符。
- image_
owner_ strid - 镜像所属的账号ID。
- instance_
id str - 实例ID。本参数与SnapshotId、SnapshotGroupId参数,三选一必填。
- is_
install_ boolrun_ command_ agent - 镜像中是否安装了云助手Agent。
- is_
lts bool - 公共镜像是否长期维护。
- is_
support_ boolcloud_ init - 镜像是否支持Cloud-init。
- kernel str
- 镜像的内核版本。
- license_
type str - 镜像许可证类型。VolcanoEngine:默认,根据您设置的platform,采用火山引擎官方渠道的许可证。BYOL:自带许可证(BYOL)。
- os_
name str - 镜像操作系统的名称。
- os_
type str - 操作系统类型。
- platform str
- 镜像操作系统的发行版本。可以选择CentOS、Debian、veLinux、Windows Server、Fedora、OpenSUSE、Ubuntu。
- platform_
version str - 镜像的发行版本。
- project_
name str - 资源所属项目。调用接口账号若仅拥有部分项目权限时必须传入有权限的项目信息。
- Sequence[str]
- 镜像共享的账户
- str
- 镜像共享状态。HasShared:自定义镜像已被共享给其他用户。当自定义镜像未被共享或使用公共镜像时,ShareStatus返回为空。
- size int
- 镜像大小,单位为GiB。
- snapshot_
group_ strid - 快照一致性组ID,表示使用快照一致性组创建自定义镜像。本参数与SnapshotId、InstanceId参数,三选一必填。
- snapshot_
id str - 系统盘快照ID,表示使用系统盘快照创建自定义镜像。本参数与InstanceId、SnapshotGroupId参数,三选一必填。
- snapshots
Sequence[Image
Snapshot Args] - status str
- 镜像的状态。
- Sequence[Image
Tag Args] - updated_
at str - 镜像更新时间
- virtual_
size float - 镜像大小,单位为Byte。
- visibility str
- 镜像的可见性。public:公共镜像。private:私有镜像。shared:共享镜像。
- architecture String
- 镜像的架构类型。可以选择amd64(x86计算)、arm64(ARM计算)类型。
- boot
Mode String - 镜像的启动模式。可以选择BIOS、UEFI类型。
- created
At String - 镜像创建时间
- description String
- 镜像描述。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、英文句号“.”、中文逗号“,”、中文句号“。”和空格。长度限制为0~255个字符。不填默认为空。
- detection
Results Property Map - 镜像的检测结果。
- image
Id String - 镜像ID。
- image
Name String - 镜像名称。必须以字母、汉字开头。只能包含中文、字母、数字、下划线“_”、中划线“-”、英文句号“.”。长度限制为1 ~ 128个字符。
- image
Owner StringId - 镜像所属的账号ID。
- instance
Id String - 实例ID。本参数与SnapshotId、SnapshotGroupId参数,三选一必填。
- is
Install BooleanRun Command Agent - 镜像中是否安装了云助手Agent。
- is
Lts Boolean - 公共镜像是否长期维护。
- is
Support BooleanCloud Init - 镜像是否支持Cloud-init。
- kernel String
- 镜像的内核版本。
- license
Type String - 镜像许可证类型。VolcanoEngine:默认,根据您设置的platform,采用火山引擎官方渠道的许可证。BYOL:自带许可证(BYOL)。
- os
Name String - 镜像操作系统的名称。
- os
Type String - 操作系统类型。
- platform String
- 镜像操作系统的发行版本。可以选择CentOS、Debian、veLinux、Windows Server、Fedora、OpenSUSE、Ubuntu。
- platform
Version String - 镜像的发行版本。
- project
Name String - 资源所属项目。调用接口账号若仅拥有部分项目权限时必须传入有权限的项目信息。
- List<String>
- 镜像共享的账户
- String
- 镜像共享状态。HasShared:自定义镜像已被共享给其他用户。当自定义镜像未被共享或使用公共镜像时,ShareStatus返回为空。
- size Number
- 镜像大小,单位为GiB。
- snapshot
Group StringId - 快照一致性组ID,表示使用快照一致性组创建自定义镜像。本参数与SnapshotId、InstanceId参数,三选一必填。
- snapshot
Id String - 系统盘快照ID,表示使用系统盘快照创建自定义镜像。本参数与InstanceId、SnapshotGroupId参数,三选一必填。
- snapshots List<Property Map>
- status String
- 镜像的状态。
- List<Property Map>
- updated
At String - 镜像更新时间
- virtual
Size Number - 镜像大小,单位为Byte。
- visibility String
- 镜像的可见性。public:公共镜像。private:私有镜像。shared:共享镜像。
Supporting Types
ImageDetectionResults, ImageDetectionResultsArgs
- Detection
Status string - 检测状态。可以选择Finished(已完成)、Processing(处理中)类型。
- Items
List<Volcengine.
Image Detection Results Item>
- Detection
Status string - 检测状态。可以选择Finished(已完成)、Processing(处理中)类型。
- Items
[]Image
Detection Results Item
- detection
Status String - 检测状态。可以选择Finished(已完成)、Processing(处理中)类型。
- items
List<Image
Detection Results Item>
- detection
Status string - 检测状态。可以选择Finished(已完成)、Processing(处理中)类型。
- items
Image
Detection Results Item[]
- detection_
status str - 检测状态。可以选择Finished(已完成)、Processing(处理中)类型。
- items
Sequence[Image
Detection Results Item]
- detection
Status String - 检测状态。可以选择Finished(已完成)、Processing(处理中)类型。
- items List<Property Map>
ImageDetectionResultsItem, ImageDetectionResultsItemArgs
- name str
- 检测项名称。
- result str
- 该检测项对应结果。
- risk_
code str - 风险描述码。
- risk_
level str - 风险等级。若该参数返回值为空,表示无风险。
ImageSnapshot, ImageSnapshotArgs
- Size int
- 快照大小。单位为GiB。
- Snapshot
Id string - 快照ID。
- Volume
Kind string - 云盘种类。system:系统盘。data:数据盘。
- Size int
- 快照大小。单位为GiB。
- Snapshot
Id string - 快照ID。
- Volume
Kind string - 云盘种类。system:系统盘。data:数据盘。
- size Integer
- 快照大小。单位为GiB。
- snapshot
Id String - 快照ID。
- volume
Kind String - 云盘种类。system:系统盘。data:数据盘。
- size number
- 快照大小。单位为GiB。
- snapshot
Id string - 快照ID。
- volume
Kind string - 云盘种类。system:系统盘。data:数据盘。
- size int
- 快照大小。单位为GiB。
- snapshot_
id str - 快照ID。
- volume_
kind str - 云盘种类。system:系统盘。data:数据盘。
- size Number
- 快照大小。单位为GiB。
- snapshot
Id String - 快照ID。
- volume
Kind String - 云盘种类。system:系统盘。data:数据盘。
ImageTag, ImageTagArgs
Import
$ pulumi import volcenginecc:ecs/image:Image example "image_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcenginecc
Terraform Provider.