全部產品
Search
文件中心

Elastic Compute Service:CreateImagePipeline - 建立鏡像構建模板

更新時間:Apr 04, 2026

建立一個鏡像模板。鏡像模板可用於構建鏡像。

介面說明

介面說明

您可以通過鏡像模板定製鏡像內容,並支援跨地區跨帳號構建鏡像。建立鏡像模板前,您需要注意:

  • 僅支援建立您自訂的鏡像模板。

  • 僅支援使用公用鏡像、自訂鏡像、共用鏡像或者鏡像族系作為源鏡像進行構建。

  • 通過鏡像模板構建鏡像時,需要建立多台中轉執行個體輔助構建鏡像,中轉執行個體為隨用隨付的 ECS 執行個體,將收取一定的費用。更多資訊,請參見隨用隨付

關於構建模板內容BuildContent,您需要注意:

  • FROM命令已被棄用,不管參數BuildContent是否設定FROM命令,系統都會以源鏡像類型BaseImageType和源鏡像BaseImage為準進行源鏡像的選取。

  • 一個鏡像模板內容大小不能超過 16 KB。支援的命令說明詳情,請參見鏡像構建服務支援的命令說明

更多資訊,請參見鏡像構建概述

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

ecs:CreateImagePipeline

create

*ImagePipeline

acs:ecs:{#regionId}:{#accountId}:imagepipeline/*

  • ram:CreateServiceLinkedRole

請求參數

名稱

類型

必填

描述

樣本值

Tag

array<object>

標籤列表。

object

標籤列表。

Key

string

標籤鍵。N 的取值範圍:1~20。一旦傳入該值,則不允許為空白字串。最多支援 128 個字元,不能以aliyunacs:開頭,不能包含http://或者https://

TestKey

Value

string

標籤值。N 的取值範圍:1~20。一旦傳入該值,可以為空白字串。最多支援 128 個字元,不能以acs:開頭,不能包含http://或者https://

TestValue

RegionId

string

所屬的地區 ID。您可以調用 DescribeRegions 查看最新的阿里雲地區列表。

cn-hangzhou

ResourceGroupId

string

企業資源組 ID。

rg-bp67acfmxazb4p****

AddAccount

array

目標鏡像共用的阿里雲帳號 ID。N 的取值範圍:1~20。

1234567890

integer

目標鏡像共用的阿里雲帳號 ID。N 的取值範圍:1~20。

1234567890

ToRegionId

array

目標鏡像待分發的地區列表。N 的取值範圍:1~20。

不設定參數值時,預設只在當前地區建立鏡像。

cn-hangzhou

string

目標鏡像待分發的地區列表。N 的取值範圍:1~20。

不設定參數值時,預設只在當前地區建立鏡像。

cn-hangzhou

RegionId

string

所屬的地區 ID。您可以調用 DescribeRegions 查看最新的阿里雲地區列表。

cn-hangzhou

ResourceGroupId

string

企業資源組 ID。

rg-bp67acfmxazb4p****

BaseImageType

string

源鏡像類型。取值範圍:

  • IMAGE:鏡像。

  • IMAGE_FAMILY:鏡像族系。

  • OSS:OSS 對象。

IMAGE

BaseImage

string

源鏡像。

  • BaseImageType=IMAGE時,該參數取值為鏡像 ID。

  • BaseImageType=IMAGE_FAMILY時,該參數取值為鏡像族系名稱。

  • BaseImageType=OSS時,無需設定該參數。

m-bp67acfmxazb4p****

Name

string

模板名稱。長度為 2~128 個字元,必須以大小寫字母或中文開頭,不能以http://https://開頭。可以包含中文、英文、數字、半形冒號(:)、底線(_)、半形句號(.)或者短劃線(-)。

說明

不設定Name時,預設使用ImagePipelineId傳回值。

testImagePipeline

Description

string

描述資訊。長度為 2~256 個英文或中文字元,不能以http://https://開頭。

This is description.

ImageName deprecated

string

目標鏡像名稱首碼。

重要 該參數已棄用。請使用 ImageOptions.ImageName。

testImageName

VSwitchId

string

VPC 的交換器 ID。

不設定參數值時,預設建立新的 VPC 與交換器,請確保您帳號下 VPC 資源配額充足,更多資訊,請參見使用限制

vsw-bp67acfmxazb4p****

InstanceType

string

執行個體規格。您可以調用 DescribeInstanceTypes 查詢不同的執行個體規格。

不設定參數值時,預設按 vCPU 和記憶體最小的原則,自動化佈建執行個體規格,並受執行個體規格的庫存影響。例如,預設選擇 ecs.g6.large 執行個體規格,如果庫存不足,將選擇 ecs.g6.xlarge 執行個體規格。

ecs.g6.large

SystemDiskSize

integer

中轉執行個體的系統硬碟大小。單位:GiB。取值範圍:20~500。

預設值:40。

40

InternetMaxBandwidthOut

integer

中轉執行個體的公網出頻寬大小。單位:Mbit/s。取值範圍:0~100。

預設值:0。

0

DeleteInstanceOnFailure

boolean

鏡像構建失敗後是否釋放中轉執行個體。取值範圍:

  • true:釋放。

  • false:不釋放。

預設值:true。

說明

中轉執行個體如果沒有成功啟動,則執行個體預設不保留。

true

BuildContent

string

鏡像構建模板內容。內容大小不能超過 16 KB,具體支援的命令請參見鏡像構建服務支援的命令說明

COMPONENT ic-bp12dvdzvr9k9***** COMPONENT acs:ecs:cn-hangzhou:18689161186*****:imagecomponent/ComponentName/1.*.*

ClientToken

string

保證請求等冪性。從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元,且不能超過 64 個字元。更多資訊,請參見如何保證等冪性

123e4567-e89b-12d3-a456-426655440000

RepairMode

string

鏡像模版中的修複選項。

取值範圍:

  • Standard:標準模式。

    當前 Linux 系統的檢測項包含

    • GUESTOS.CloudInit

    • GUESTOS.Dhcp

    • GUESTOS.Virtio

    • GUESTOS.OnlineResizeFS

    • GUESTOS.Grub

    • GUESTOS.Fstab

    Windows 系統的檢測項包含

    • GUESTOS.Virtio

    • GUESTOS.Update

    • GUESTOS.Hotfix

    • GUESTOS.Server

說明

隨著檢測修複能力的不斷提升,包含的修複項可能會增加。修複項具體含義,請參見鏡像檢測概述

Standard

ImageFamily deprecated

string

目標鏡像族系。

重要 該參數已棄用。請使用 ImageOptions.ImageFamily。

family

TestContent

string

鏡像測試模板內容。內容大小不能超過 16 KB,具體支援的命令請參見鏡像構建服務支援的命令說明

COMPONENT ic-bp12dvdzvr9k9***** COMPONENT acs:ecs:cn-hangzhou:18689161186*****:imagecomponent/ComponentName/1.*.*

ImportImageOptions

object

匯入鏡像的屬性和設定。當BaseImageType=OSS時,需要設定。

Architecture

string

指定資料盤快照做鏡像的系統硬碟後,需要通過 Architecture 確定系統硬碟的系統架構。取值範圍:

  • x86_64。

  • arm64。

預設值為 x86_64。

x86_64

OSType

string

作業系統類型。可能值:

  • windows。

  • linux。

預設值:linux。

linux

Platform

string

作業系統版本。取值範圍:

  • Aliyun

  • Anolis

  • CentOS

  • Ubuntu

  • CoreOS

  • SUSE

  • Debian

  • OpenSUSE

  • FreeBSD

  • RedHat

  • Kylin

  • UOS

  • Fedora

  • Fedora CoreOS

  • CentOS Stream

  • AlmaLinux

  • Rocky Linux

  • Gentoo

  • Customized Linux

  • Others Linux

  • Windows Server 2022

  • Windows Server 2019

  • Windows Server 2016

  • Windows Server 2012

  • Windows Server 2008

  • Windows Server 2003

  • Other Windows

預設值:當作業系統類型為 Linux 時為 Others Linux,否則為 Other Windows。

Aliyun

BootMode

string

修改鏡像的啟動模式。取值範圍:

  • BIOS:BIOS 啟動模式。

  • UEFI:UEFI 啟動模式。

預設值:BIOS。如果Architecture=arm64,則該參數預設值為 UEFI,且只能設定為 UEFI。

重要

為了避免使用鏡像不支援的啟動模式導致執行個體無法正常啟動,請您務必在選擇該參數之前瞭解目標鏡像支援的啟動模式。鏡像啟動模式詳情,請參見鏡像啟動模式

BIOS

LicenseType

string

匯入鏡像後,啟用作業系統採用的許可證類型。取值範圍:

  • Auto:由阿里雲檢測源作業系統並分配許可證。自動模式下,系統優先搜尋您設定的Platform是否有阿里雲官方渠道的許可證並分配給匯入的鏡像,如果缺乏該類許可,會切換成 BYOL(Bring Your Own License)方式。

  • Aliyun:根據您設定的Platform採用阿里雲官方渠道的許可證。

  • BYOL:源作業系統內建的許可證。採用 BYOL 時,您必須確保您的許可證密鑰支援在阿里雲使用。

預設值:Auto。

Auto

DiskDeviceMappings

array<object>

建立的自訂鏡像資訊列表。

  • N=1 時,表示系統硬碟.

  • N=2~17 時,表示資料盤。

object

OSSBucket

string

鏡像檔案所在的 OSS Bucket。

ecsimageos

OSSObject

string

鏡像上傳至 OSS Bucket 後,儲存在 Bucket 中的鏡像檔案的檔案名稱(key)。

CentOS_5.4_32.raw

Format

string

鏡像格式。取值範圍:

  • RAW。

  • VHD。

  • QCOW2。

預設值:無,表示阿里雲自動檢測鏡像格式,以檢測格式為準。

RAW

DiskImageSize

integer

匯入鏡像後,自訂鏡像的空間大小。

該空間由系統硬碟和資料盤組成,您必須保證系統硬碟的空間大小大於等於匯入的鏡像檔案大小。取值範圍:

  • N=1 時,表示系統硬碟,取值範圍:1 GiB~2048 GiB。

  • N=2~17 時,表示資料盤。取值範圍:1 GiB~2048 GiB。

當您將源鏡像檔案上傳至 OSS 後,可以在 OSS Bucket 中查看鏡像檔案的大小。

40

Features

object

鏡像特性相關屬性。

NvmeSupport

string

匯入的原始鏡像是否支援 NVMe。可能值:

  • supported:支援。表示以該鏡像建立的執行個體支援 NVMe 協議。

  • unsupported:不支援。表示以該鏡像建立的執行個體不支援 NVMe 協議。

預設值:unsupported。

supported

ImdsSupport

string

RetainImportedImage

boolean

說明

該參數正在邀測中。

false

RetentionStrategy

string

ImageName

string

Description

string

RoleName

string

ImportImageTags

array<object>

object

Key

string

Value

string

NvmeSupport deprecated

string

構建的目標鏡像是否支援 NVMe。

重要 該參數已棄用。請使用 ImageOptions. ImageFeatures.NvmeSupport。

auto

AdvancedOptions

object

進階設定。

RetainCloudAssistant

boolean

是否保留雲助手。構建過程中,系統會自動在中轉執行個體中安裝雲助手以執行命令,您可以選擇是否在構建的目標鏡像中保留。可能值:

  • true:保留。

  • false:不保留。

預設值:false。

說明

該設定不會對您鏡像中內建的雲助手產生任何影響。

true

ImageNameSuffix

string

是否禁用目標鏡像名稱自動增加尾碼。可能值:

  • disable:禁用。

disable

ImageOptions

object

目標鏡像屬性。

ImageName

string

目標鏡像名稱首碼。長度為 2~64 個字元,必須以大小寫字母或中文開頭,不能以http://https://開頭。可以包含中文、英文、數字、半形冒號(:)、底線(_)、半形句號(.)或者短劃線(-)。

最終完整的鏡像名稱由系統自動拼接名稱首碼與構建任務 ID(ExecutionId),格式為{ImageName}_{ExecutionId}

testImageName

ImageFamily

string

目標鏡像族系。長度為 2~128 個英文或中文字元。必須以大小寫字母或中文開頭,不能以 aliyun 和 acs:開頭,不能包含 http://或者 https://。可以包含數字、半形冒號(:)、底線(_)或者短劃線(-)。

family

Description

string

描述資訊。長度為 2~256 個英文或中文字元,不能以http://https://開頭。

This is description.

ImageFeatures

object

目標鏡像特性相關屬性。

NvmeSupport

string

構建的目標鏡像是否支援 NVMe。可能值:

  • supported:支援。表示以該鏡像建立的執行個體支援 NVMe 協議。

  • unsupported:不支援。表示以該鏡像建立的執行個體不支援 NVMe 協議。

  • auto:自動檢測。由系統自動檢測您的鏡像是否安裝 NVMe 驅動,該行為發生在構建階段前,若您在構建時安裝或者卸載了 NVMe 驅動,可能會出現結果偏差,建議您根據構建內容設定為 supported 或 unsupported。

auto

ImageTags

array<object>

目標鏡像標籤。

object

Key

string

標籤鍵。N 的取值範圍:1~20。一旦傳入該值,則不允許為空白字串。最多支援 128 個字元,不能以aliyunacs:開頭,不能包含http://或者https://

TestKey

Value

string

資源的標籤值。N 的取值範圍:1~20。一旦傳入該值,可以為空白字串。最多支援 128 個字元,不能以acs:開頭,不能包含http://或者https://

TestValue

返回參數

名稱

類型

描述

樣本值

object

ImagePipelineId

string

鏡像模板 ID。

ip-2ze5tsl5bp6nf2b3****

RequestId

string

請求 ID。

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

樣本

正常返回樣本

JSON格式

{
  "ImagePipelineId": "ip-2ze5tsl5bp6nf2b3****",
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 InvalidSourceInstance.NotFound The specified source instance is not found. 指定的源執行個體沒有找到。
400 InvalidName.Malformed %s
400 InvalidDescription.Malformed %s
400 InvalidImageName.Malformed %s
400 InvalidBaseImageType.NotSupportedValue %s
400 InvalidSystemDiskSize.NotSupportedValue %s
400 InvalidInternetMaxBandwidthOut.NotSupportedValue %s
400 InvalidAddAccountSize.ExceededMaxNumber %s
400 InvalidToRegionIdSize.ExceededMaxNumber %s
400 InvalidBuildContent.LengthExceeded %s
400 InvalidImageTemplateCommandSize.ExceededMaxNumber %s
400 DuplicatedCommand.FROM %s
400 InvalidCommandOrder.FROM %s
400 InvalidImageTemplateCommand.NotSupported %s
400 InvalidCommandContent.RUN %s
400 InvalidCommandContent.ENV %s
400 InvalidCommandContent.WORKDIR %s
400 InvalidCommandContent.COPY %s
400 InvalidCommandContent.USER %s
400 InvalidCommandContent.FROM %s
400 InvalidCommandContent.CMD %s
400 InvalidCommandContent.ENTRYPOINT %s
400 QuotaExceed.ImagePipeline %s. 目前使用者在此地區鏡像模板額度也用完。
400 NoPermission %s. 此操作未被允許,請授權之後再行操作。
400 EmptyCommandContent.LABEL %s. 模版內容中,若有LABEL,則LABEL的值不可為空。
400 EmptyCommandContent.ENV %s. 模版內容中,若有ENV,則ENV的值不可為空。
400 EmptyCommandContent.ENTRYPOINT %s. 模版內容中,若有ENTRYPOINT,則ENTRYPOINT的值不可為空。
400 EmptyCommandContent.CMD %s. 模版內容中,若有CMD命令,則CMD的值不可為空。
400 EmptyCommandContent.COPY %s. 模版內容中,若有COPY命令,則COPY的值不可為空。
400 EmptyCommandContent.WORKDIR %s. 模版內容中,若有WORKDIR命令,則WORKDIR的值不可為空。
400 NotEmptyCommandContent.RESTART %s. 模版內容中,若有RESTART命令,則RESTART的值必須為空白。
400 EmptyCommandContent.USER %s. 模版內容中,若有USER命令,則USER的值不可為空。
400 EmptyCommandContent.RUN %s. 模版內容中,若有RUN命令,則RUN的值不可為空。
400 InvalidImage.OsTypeUnsupported The specified base image does not support image building. 指定的基礎鏡像作業系統不支援進行鏡像構建。
400 InvalidParameter.BuildContent %s. 構建模板內容無效。
400 InvalidParameter.TestContent %s. 測試模板的內容無效。
400 InvalidImageComponent.NotSupported %s. 指定的鏡像組件不可用。
400 InvalidParameterCombination %s. 無效的參數組合。
400 InvalidParameter.RepairMode The specified parameter RepairMode is invalid. 指定的修複模式無效。
400 InvalidImageFamily.Malformed The format of the specified image family is invalid. 指定的鏡像族系格式有誤。
400 InvalidImage.ImageOwnerAliasUnsupported The specified base image does not support distributing. 指定的基礎鏡像不支援進行分發。
400 InvalidParameter.ImportImageOptionsArchitecture The specified parameter ImportImageOptions.Architecture is invalid. The correct value should be in [%s]. 指定的參數ImportImageOptionsArchitecture無效。正確的值可以參考錯誤資訊或者文檔填寫。
400 InvalidParameter.ImportImageOptionsOSType The specified parameter ImportImageOptions.OSType is invalid. The correct value should be in [%s]. 指定的參數ImportImageOptions.OSType無效。正確的值可以參考錯誤資訊或者文檔填寫。
400 InvalidParameter.ImportImageOptionsBootMode The specified parameter ImportImageOptions.BootMode is invalid. The correct value should be in [%s]. 指定的參數ImportImageOptions.BootMode無效。正確的值可以參考錯誤資訊或者文檔填寫。
400 InvalidImportImageOptionsDiskDeviceMappings.LengthLimitExceeded The length of the specified parameter ImportImageOptions.DiskDeviceMappings exceeds the limit(17). 指定的參數ImportImageOptions.DiskDeviceMappings長度超過了限制,最大長度為17。
400 InvalidParameter.ImportImageOptionsDiskDeviceMappingsOSSObject The specified parameter ImportImageOptions.DiskDeviceMappings.OSSObject is invalid. OSSObject supports up to 1023 characters, and cannot start with http:// or https://. 指定的參數ImportImageOptions.DiskDeviceMappings.OSSObject不正確。最多支援1023個字元,且不能以"http://"或者"https://"開頭。
400 InvalidParameter.ImportImageOptionsDiskDeviceMappingsOSSBucket The specified parameter ImportImageOptions.DiskDeviceMappings.OSSBucket is invalid. OSSBucket supports up to 63 characters, only lowercase letters, numbers, and dashes are allowed, and cannot start or end with a dash. 指定的參數ImportImageOptionsDiskDeviceMappingsOSSBucket格式不正確。最多支援63個字元,只允許小寫字母、數字或者虛線,並且不能以虛線開頭或結尾。
400 InvalidParameter.ImportImageOptionsPlatform The specified parameter ImportImageOptions.Platform is invalid. The correct value should be in [%s]. 指定的參數ImportImageOptions.Platform無效。正確的值可以參考錯誤資訊或者文檔填寫。
400 InvalidParameter.ImportImageOptionsLicenseType The specified parameter ImportImageOptions.LicenseType is invalid. The correct value should be in [%s]. 指定的參數ImportImageOptions.LicenseType無效。正確的值可以參考錯誤資訊或者文檔填寫。
400 InvalidParameter.ImportImageOptionsFeaturesNvmeSupport The specified parameter ImportImageOptions.Features.NvmeSupport is invalid. The correct value should be in [%s]. 指定的參數ImportImageOptions.Features.NvmeSupport無效。正確的值可以參考錯誤資訊或者文檔填寫。
400 InvalidParameter.NvmeSupport The specified parameter NvmeSupport is invalid. The correct value should be in [%s]. 指定的參數NvmeSupport無效。正確的值可以參考錯誤資訊或者文檔填寫。
400 InvalidParameter.ImportImageOptionsDiskDeviceMappingsFormat The specified parameter ImportImageOptions.DiskDeviceMappings.Format is invalid. The correct value should be in [%s]. 指定的參數ImportImageOptions.DiskDeviceMappings.Format無效。正確的值可以參考錯誤資訊或者文檔填寫。
400 InvalidOperation.DiskImageSizeExceeded The disk size exceeds the limit. Please check the specified parameter ImportImageOptions.DiskDeviceMappings.DiskImageSize and ImportImageOptions.DiskDeviceMappings.OSSObject. Ensure that each of them is between 1 and 2048 in size. 磁碟大小超過限制。請檢查參數ImportImageOptions.DiskDeviceMappings.DiskImageSize和ImportImageOptions.DiskDeviceMappings.OSSObject, 確保他們的大小都處於1到2048G之間。
400 InvalidImageOptions.Description The specified parameter ImageOptions.Description is invalid. The length should be between 2 to 256 characters, and cannot start with http:// or https://. 指定的參數ImageOptions.Description不合法。參數長度需要在2到256個字元,且不能以http://或https://開頭。
400 InvalidImageName.Duplicated The specified image name is already in use in the target region. Please try a different one. 指定的鏡像名稱已在目標地區使用。請嘗試另一個。
400 InvalidImage.NotSupportRepair The specified base image does not support repair. 指定的基礎鏡像不支援修複。
400 Duplicate.TagKey The Tag.N.Key contain duplicate key. 標籤中存在重複的鍵,請保持鍵的唯一性。
400 InvalidTagKey.Malformed The specified Tag.N.Key is not valid. Tag keys cannot be empty or null, support up to 128 characters, cannot start with "aliyun" or "acs:", and cannot contain "http://" or "https://". 指定的標籤鍵無效。標籤鍵不可為空或 null,最多支援 128 個字元,不能以“aliyun”或“acs:”開頭,不能包含“http://”或“https://”。
400 InvalidTagValue.Malformed The specified Tag.N.Value is not valid. Tag values support up to 128 characters, and cannot contain "http://" or "https://". 指定的標籤值無效。標籤值最多支援 128 個字元,並且不能包含“http://”或“https://”。
400 InvalidAdvancedOptions.ImageNameSuffix The specified parameter AdvancedOptions.ImageNameSuffix is invalid. The correct value should be in [%s]. 指定的參數AdvancedOptions.ImageNameSuffix不合法。正確的枚舉值可以參考錯誤資訊擷取。
400 InvalidImportImageOptions.DockerOptionsImageMalformed The specified parameter ImportImageOptions.DockerOptions.Image is invalid. The length should be between 1 to 512 characters. 指定的Docker鏡像長度應在1到512字元之間。
400 InvalidImportImageOptions.DockerOptionsImageSizeMalformed The specified parameter ImportImageOptions.DockerOptions.ImageSize is invalid. The size should be between 1GB to 2048GB. 指定的Docker鏡像大小應在1GB到2048GB之間。
403 ImagePipeline.NotSupportWindowsInstance Image pipeline does not support windows instance at this time.
403 InvalidOSSObject.NotAuthorized The specified ImportImageOptions.DiskDeviceMappings.OSSObject is not allowed to be accessed. 指定的ImportImageOptions.DiskDeviceMappings.OSSObject不允許被訪問。
403 InvalidOperation.NoPermissionCreateServiceLinkedRole You are not authorized to create Service-linked role. The system will automatically create it when the API is called for the first time. Check your RAM policies, and ensure that you are using the correct credentials. 你沒有許可權建立服務關聯角色,系統會在該介面第一次被調用時自動建立服務關聯角色。請檢查你的RAM權限原則,確保使用了正確的訪問憑據。
403 InvalidOSSObject.NeedRestore The specified ImportImageOptions.DiskDeviceMappings.OSSObject is an archived object and needs to be restored first. 指定的 ImportImageOptions.DiskDeviceMappings.OSSObject 是一個已歸檔對象,需要先進行恢複。
403 InvalidOperation.NoRightAccessOSS ECS service is not authorized to access your OSS. Check your RAM roles and policies, and ensure that ecs.aliyuncs.com is authorized to assume AliyunECSImageImportDefaultRole. ECS服務沒有許可權訪問您的OSS。請檢查你的RAM角色和策略,確保"ecs.aliyuncs.com"被授予了扮演"AliyunECSImageImportDefaultRole"的許可權。
403 InvalidOperation.OSSObjectIsImporting The specified ImportImageOptions.DiskDeviceMappings.OSSObject is importing. 指定的ImportImageOptions.DiskDeviceMappings.OSSObject正在匯入。
404 InvalidImage.NotFound %s
404 InvalidResourceGroup.NotFound The ResourceGroup provided does not exist in our records. 資源群組並不在記錄中。
404 ImageComponent.NotFound %s. 指定的鏡像組件ID未找到。
404 InvalidInstanceType.NotFound The specified instance type does not exist. 指定的參數“InstanceType”不存在。
404 InvalidVSwitchId.NotFound The specified VSwitchId does not exist. 指定的VSwitchId不存在
404 InvalidRegionId.NotFound %s 提供的地區 ID 不存在。
404 InvalidImportImageOptionsDiskDeviceMappingsOSSObject.NotFound The specified ImportImageOptions.DiskDeviceMappings.OSSObject is not found in this region. 指定的ImportImageOptions.DiskDeviceMappings.OSSObject在當前地區沒有查詢到。
404 MissingParameter.RepairMode The specified parameter RepairMode is missing. 指定的參數RepairMode缺失。
404 MissingParameter.ImportImageOptions The specified parameter ImportImageOptions is missing. 指定的參數ImportImageOptions缺失。
404 MissingParameter.ImportImageOptionsDiskDeviceMappingsOSSObject The specified parameter ImportImageOptions.DiskDeviceMappings.OSSObject is missing. 指定的參數ImportImageOptions.DiskDeviceMappings.OSSObject缺失。
404 MissingParameter.ImportImageOptionsDiskDeviceMappingsOSSBucket The specified parameter ImportImageOptions.DiskDeviceMappings.OSSBucket is missing. 指定的參數ImportImageOptions.DiskDeviceMappings.OSSBucket缺失。
404 MissingParameter.ImageOptionsDiskDeviceMappings The specified parameter ImportImageOptions.DiskDeviceMappings is missing. 沒有傳入ImportImageOptions.DiskDeviceMappings參數。
404 MissingImportImageOptions.DockerOptions The specified parameter ImportImageOptions.DockerOptions is missing. 指定的參數ImportImageOptions.DockerOptions缺失。
404 InvalidOssBucketName.NotFound The specified parameter OssDeliveryConfig.BucketName does not exist. 指定的OSS儲存空間不存在。

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情