実行 のテンプレートに関する情報 (テンプレート のコンテンツを含む) を照会します。
今すぐお試しください
テスト
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\": \"(Required) The ID of the ECS instance.\"\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 |
テンプレート の説明。 |
Descirbe instances of given status |
| 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\\\": \\\"(Required) The ID of the ECS instance.\\\"\\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": "Descirbe instances of given status",
"CreatedBy": "root(13090000)",
"CreatedDate": "2019-05-16T10:26:14Z",
"TemplateId": "t-94753d4d828d38",
"ShareType": "Private"
}
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。