全部產品
Search
文件中心

Elastic Compute Service:CreateImagePipeline

更新時間:Aug 27, 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

RepairItem

array

string

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

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

  • true:保留。

  • false:不保留。

預設值:false。

說明

該設定不會對您映像中自帶的 Cloud Assistant 產生任何影響。

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 命令不能為空。
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 映像大小應介於 1 GB 到 2048 GB 之間。
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. 指定的交換器不存在。
404 InvalidRegionId.NotFound %s 地域資訊錯誤。
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 儲存空間不存在。

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

變更歷史

更多資訊,參考變更詳情