イメージテンプレートを使用して、イメージ作成タスク (イメージビルドタスク) を実行します。
操作説明
イメージテンプレートを作成した後、StartImagePipelineExecution 操作を呼び出してパイプラインタスクを作成できます。 システムは、イメージテンプレートで設定されたパラメーターに基づいて、イメージの作成、コピー、共有を行います。
各イメージテンプレートに対して実行できるパイプラインタスクは 1 つだけです。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ecs:StartImagePipelineExecution |
update |
*ImagePipeline
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
リージョン ID。 DescribeRegions 操作を呼び出して、最新のリージョンリストをクエリできます。 |
cn-hangzhou |
TemplateTag
deprecated
|
array<object> |
任意 |
説明
このパラメーターは非推奨です。 |
|
|
object |
任意 |
|||
| Key |
string |
任意 |
説明
このパラメーターは非推奨です。 |
null |
| Value |
string |
任意 |
説明
このパラメーターは非推奨です。 |
null |
| Tag |
array<object> |
任意 |
タグ。 |
|
|
object |
任意 |
タグ N。 |
||
| Key |
string |
任意 |
タグ N のキー。 N の有効値:1~20。 タグキーは空の文字列にすることはできません。 タグキーは最大 128 文字で、 |
TestKey |
| Value |
string |
任意 |
タグ N の値。 N の有効値:1~20。 タグ値は空の文字列にすることができます。 タグ値は最大 128 文字です。 タグ値は |
TestValue |
| RegionId |
string |
必須 |
リージョン ID。 DescribeRegions 操作を呼び出して、最新のリージョンリストをクエリできます。 |
cn-hangzhou |
| ImagePipelineId |
string |
必須 |
イメージテンプレートの ID。 |
ip-2ze5tsl5bp6nf2b3**** |
| ClientToken |
string |
任意 |
リクエストのべき等性を保証するために使用されるクライアントトークン。 クライアントを使用してトークンを生成できますが、トークンがリクエスト間で一意であることを確認してください。 トークンには ASCII 文字のみを含めることができ、長さは 64 文字を超えることはできません。 詳細については、「べき等性を確保する方法」をご参照ください。 |
123e4567-e89b-12d3-a456-426655440000 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| ExecutionId |
string |
イメージ作成タスクの ID。 |
exec-5fb8facb8ed7427c**** |
| RequestId |
string |
リクエスト ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
例
成功レスポンス
JSONJSON
{
"ExecutionId": "exec-5fb8facb8ed7427c****",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。