Mengeksekusi tugas pembangunan image melalui template image.
Deskripsi operasi
Setelah template image dibuat, Anda perlu memanggil operasi ini untuk mengeksekusi tugas pembangunan image. Sistem akan membangun, mendistribusikan, dan membagikan image berdasarkan parameter yang dikonfigurasi dalam template image.
Untuk template image yang sama, hanya satu tugas pembangunan image yang dapat dieksekusi pada satu waktu. Operasi CancelImagePipelineExecution, yang membatalkan tugas pembangunan image, dapat dieksekusi beberapa kali secara bersamaan, dan pembatalan tugas pembangunan image tidak mengganggu tugas pembangunan image itu sendiri.
Saat Anda mengeksekusi template pembangunan image, beberapa instance perantara perlu dibuat untuk membantu pembangunan image. Instance perantara merupakan instance ECS bayar sesuai pemakaian dan akan dikenakan biaya tertentu. Untuk informasi lebih lanjut, lihat Bayar sesuai pemakaian.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:StartImagePipelineExecution |
update |
*ImagePipeline
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region tempat sumber daya berada. Anda dapat memanggil DescribeRegions untuk melihat daftar terbaru region Alibaba Cloud. |
cn-hangzhou |
TemplateTag
deprecated
|
array<object> |
No |
Catatan
Parameter ini sudah tidak digunakan lagi. |
|
|
object |
No |
|||
| Key |
string |
No |
Catatan
Parameter ini sudah tidak digunakan lagi. |
null |
| Value |
string |
No |
Catatan
Parameter ini sudah tidak digunakan lagi. |
null |
| Tag |
array<object> |
No |
Daftar tag. |
|
|
object |
No |
Objek tag. |
||
| Key |
string |
No |
Kunci tag. Nilai valid N: 1 hingga 20. Setelah nilai diberikan, tidak boleh berupa string kosong. Kunci mendukung hingga 128 karakter, tidak boleh diawali dengan |
TestKey |
| Value |
string |
No |
Nilai tag dari sumber daya. Nilai valid N: 1 hingga 20. Setelah nilai diberikan, boleh berupa string kosong. Nilai mendukung hingga 128 karakter, tidak boleh diawali dengan |
TestValue |
| RegionId |
string |
Yes |
ID region tempat sumber daya berada. Anda dapat memanggil DescribeRegions untuk melihat daftar terbaru region Alibaba Cloud. |
cn-hangzhou |
| ImagePipelineId |
string |
Yes |
ID template image. |
ip-2ze5tsl5bp6nf2b3**** |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Buat nilai dari klien Anda untuk memastikan bahwa nilai tersebut unik di antara permintaan yang berbeda. ClientToken hanya mendukung karakter ASCII dan tidak boleh melebihi 64 karakter. Untuk informasi lebih lanjut, lihat Cara memastikan idempotensi. |
123e4567-e89b-12d3-a456-426655440000 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| ExecutionId |
string |
ID tugas build. |
exec-5fb8facb8ed7427c**** |
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Contoh
Respons sukses
JSONformat
{
"ExecutionId": "exec-5fb8facb8ed7427c****",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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 | 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://". | |
| 400 | InvalidTagValue.Malformed | The specified Tag.N.Value is not valid. Tag values support up to 128 characters, and cannot contain "http://" or "https://". | |
| 400 | InvalidDockerRepositoryCredential.DockerRegistryMalformed | The specified parameter DockerRepositoryCredential.DockerRegistry is invalid. The length should be between 1 to 512 characters. | |
| 400 | InvalidDockerRepositoryCredential.UserMalformed | The specified parameter DockerRepositoryCredential.User is invalid. The length should be between 1 to 128 characters. | |
| 400 | InvalidImageName.Duplicated | The specified image name is already in use. | |
| 500 | StartImagePipelineExecution.Failed | Start image pipeline execution failed. | |
| 403 | InvalidImagePipeline.HasRunningExecution | %s | |
| 403 | InvalidImagePipeline.OSSObjectNotAuthorized | The ImportImageOptions.DiskDeviceMappings.OSSObject of the specified ImagePipeline is not allowed to access. | |
| 403 | InvalidImagePipeline.OSSObjectNeedRestore | The ImportImageOptions.DiskDeviceMappings.OSSObject of the specified ImagePipeline is an archived object and needs to be restored first. | |
| 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. | |
| 404 | InvalidImagePipeline.NotFound | %s | |
| 404 | InvalidInstanceType.NotFound | The specified instance type does not exist. | |
| 404 | InvalidVSwitchId.NotFound | The specified VSwitchId does not exist. | |
| 404 | InvalidRegionId.NotFound | %s | |
| 404 | InvalidImage.NotFound | %s. | |
| 404 | ImageComponent.NotFound | %s. | |
| 404 | InvalidImagePipeline.BaseImageNotFound | The BaseImage of the specified ImagePipeline is not found. | |
| 404 | InvalidImagePipeline.OSSObjectNotFound | The ImportImageOptions.DiskDeviceMappings.OSSObject of the specified ImagePipeline is not found in this region. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.