导入基于平台镜像基线改制的镜像文件,构建成自定义镜像。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 |
| 接口名称。当前 API 的名称为 |
Version | String | 是 |
| 接口版本。当前 API 的版本为 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
ImageName | String | 否 | example-image-name | 镜像名称。 |
ImageAnnotation | String | 否 | example-image-annotation | 镜像备注信息。 |
ImageFileFormat | String | 否 | volc_tos | 镜像文件格式,默认为 volc_tos。
|
ImageTosInfo | Object of AOSPImgTosInfo | 否 | - | 存储在火山引擎对象存储系统中的原始镜像信息,具体参数说明参见 AOSPImgTosInfo。 说明 ImageFileFormat 取值 volc_tos 时,该参数必填。 |
ImageUrlInfo | Object of AOSPImgUrlInfo | 否 | - | 存储在第三方对象储存服务中的镜像文件信息,具体参数说明参见 AOSPImgUrlInfo。 说明 ImageFileFormat 取值 url 时,该参数必填。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
Bucket | String | 是 |
| 镜像文件所在 TOS 的 bucket。 |
Region | String | 是 |
| 对象存储所在区域,例如: |
Endpoint | String | 是 |
| 镜像文件所在 TOS 的 endpoint,例如: |
SystemImg | Object of AOSPImgFile | 是 | - | AOSP 镜像 system 分区原始镜像信息,具体参数说明参见 AOSPImgFile。 |
VendorImg | Object of AOSPImgFile | 是 | - | AOSP 镜像 vendor 分区原始镜像信息,具体参数说明参见 AOSPImgFile。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
SystemImg | Object of AOSPImgFileUrl | 是 | - | AOSP 镜像 system 分区原始镜像信息,具体参数说明参见 AOSPImgFileUrl。 |
VendorImg | Object of AOSPImgFileUrl | 是 | - | AOSP 镜像 vendor 分区原始镜像信息,具体参数说明参见 AOSPImgFileUrl。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
MD5 | String | 否 |
| 镜像文件的 MD5,不填则不校验。 |
FilePath | String | 是 | tos-cn-beijing.volces.com/**** | 镜像文件在 TOS 中的路径。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
MD5 | String | 否 |
| 镜像文件的 MD5,不填则不校验。 |
Url | String | 是 | https://****.volces.com | 镜像文件所在第三方对象存储中的路径或地址。仅支持传入火山引擎域名(volces.com 后缀)、阿里云域名(aliyuncs.com 后缀)。 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
ImageId | String | img-158**** | 镜像 ID。 |
POST https://open.volcengineapi.com?Action=BuildAOSPImage&Version=2025-05-01 { "ImageName": "example-image-name", "ImageAnnotation": "example-image-annotation", "ImageFileFormat": "volc_tos", "ImageTosInfo": { "Bucket": "bucket", "Region": "cn-beijing", "Endpoint": "tos-cn-beijing.volces.com", "SystemImg": { "MD5": "example-md5", "FilePath": "tos-cn-beijing.volces.com/****" }, "VendorImg": { "MD5": "example-md5", "FilePath": "tos-cn-beijing.volces.com/****" } }, "ImageUrlInfo": { "SystemImg": { "MD5": "example-md5", "Url": "https://****.volces.com" }, "VendorImg": { "MD5": "example-md5", "Url": "https://****.volces.com" } } }
{ "ResponseMetadata": { "Action": "BuildAOSPImage", "Region": "cn-north-1", "Service": "ACEP", "Version": "2025-05-01", "RequestId": "20230604110420****100232280022D31" }, "Result": { "ImageId": "img-158****" } }
您可访问公共错误码,获取更多错误码信息。