タスク実行で使用されるテンプレートをその内容を含めて取得します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
oos:GetExecutionTemplate |
get |
*Execution
|
|
なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
任意 |
リージョン ID。 |
cn-hangzhou |
| ExecutionId |
string |
必須 |
実行 ID。 |
exec-046490ff88f242 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| Content |
string |
テンプレートの内容。 |
"{\n \"FormatVersion\": \"OOS-2019-06-01\",\n \"Parameters\": {\n \"Status\": {\n \"Type\": \"String\",\n \"Description\": \"(必須) ECS インスタンスの ID。\"\n }\n },\n \"Tasks\": [\n {\n \"Name\": \"bar\",\n \"Properties\": {\n \"Parameters\": {\n \"Status\": \"{{ Status }}\"\n },\n \"API\": \"DescribeInstances\",\n \"Service\": \"Ecs\"\n },\n \"Action\": \"acs::ExecuteAPI\",\n \"Outputs\": {\n \"InstanceIds\", {\n \"ValueSelector\": \".Instances.Instance[].InstanceId\",\n \"Type\": \"List\"\n }\n }\n }\n ],\n \"Outputs\": {\n \"InstanceIds\": {\n \"Value\": \" {{ bar.InstanceIds }} \",\n \"Type\": \"List\"\n }\n }\n}\n" |
| RequestId |
string |
リクエスト ID。 |
14A60-EBE7-47CA-9757-12C1D47A |
| Template |
object |
テンプレートのメタデータ。 |
|
| Hash |
string |
テンプレート内容の SHA-256 ハッシュ。 |
4bc7d7a21b3e003434b9c223f6e6d2578b5ebfeb5be28c1fcf8a8a1b11907bb4 |
| UpdatedDate |
string |
テンプレートが最後に更新された時間。 |
2019-05-16T10:26:14Z |
| UpdatedBy |
string |
テンプレートを最後に更新したユーザー。 |
root(13090000) |
| Tags |
object |
タグのキーと値。キーと値のペアの数は 1 から 20 の範囲です。 |
{"k1":"k2","k2":"v2"} |
| TemplateName |
string |
テンプレート名。 |
MyTemplate |
| TemplateVersion |
string |
テンプレートのバージョン。バージョンは "v" に 1 から始まる数字が続くフォーマットです。 |
v1 |
| TemplateFormat |
string |
テンプレートのフォーマット。システムによって決定され、JSON または YAML です。 |
JSON |
| Description |
string |
テンプレートの説明。 |
指定されたステータスのインスタンスを照会します |
| CreatedBy |
string |
テンプレートを作成したユーザー。 |
root(13090000) |
| CreatedDate |
string |
テンプレートが作成された時間。 |
2019-05-16T10:26:14Z |
| TemplateId |
string |
テンプレートの ID。 |
t-94753d4d828d38 |
| ShareType |
string |
テンプレートの共有タイプ。ユーザー作成テンプレートの共有タイプは Private です。 |
Private |
例
成功レスポンス
JSONJSON
{
"Content": "\"{\\n \\\"FormatVersion\\\": \\\"OOS-2019-06-01\\\",\\n \\\"Parameters\\\": {\\n \\\"Status\\\": {\\n \\\"Type\\\": \\\"String\\\",\\n \\\"Description\\\": \\\"(必須) ECS インスタンスの ID。\\\"\\n }\\n },\\n \\\"Tasks\\\": [\\n {\\n \\\"Name\\\": \\\"bar\\\",\\n \\\"Properties\\\": {\\n \\\"Parameters\\\": {\\n \\\"Status\\\": \\\"{{ Status }}\\\"\\n },\\n \\\"API\\\": \\\"DescribeInstances\\\",\\n \\\"Service\\\": \\\"Ecs\\\"\\n },\\n \\\"Action\\\": \\\"acs::ExecuteAPI\\\",\\n \\\"Outputs\\\": {\\n \\\"InstanceIds\\\", {\\n \\\"ValueSelector\\\": \\\".Instances.Instance[].InstanceId\\\",\\n \\\"Type\\\": \\\"List\\\"\\n }\\n }\\n }\\n ],\\n \\\"Outputs\\\": {\\n \\\"InstanceIds\\\": {\\n \\\"Value\\\": \\\" {{ bar.InstanceIds }} \\\",\\n \\\"Type\\\": \\\"List\\\"\\n }\\n }\\n}\\n\"",
"RequestId": "14A60-EBE7-47CA-9757-12C1D47A",
"Template": {
"Hash": "4bc7d7a21b3e003434b9c223f6e6d2578b5ebfeb5be28c1fcf8a8a1b11907bb4",
"UpdatedDate": "2019-05-16T10:26:14Z",
"UpdatedBy": "root(13090000)",
"Tags": {
"k1": "k2",
"k2": "v2"
},
"TemplateName": "MyTemplate",
"TemplateVersion": "v1",
"TemplateFormat": "JSON",
"Description": "指定されたステータスのインスタンスを照会します",
"CreatedBy": "root(13090000)",
"CreatedDate": "2019-05-16T10:26:14Z",
"TemplateId": "t-94753d4d828d38",
"ShareType": "Private"
}
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。