テンプレートの構文を検証します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
oos:ValidateTemplateContent |
get |
*All Resource
|
|
なし |
リクエストパラメーター
|
パラメーター |
タイプ |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
任意 |
リージョン ID。 |
cn-hangzhou |
| Content |
string |
任意 |
テンプレートのコンテンツ。 |
{"FormatVersion": "OOS-2019-06-01", "Description": "Describe instances of given status", "Parameters": {"Status": {"Type": "String", "Description": "(Required) The status of the Ecs instance."}}, "Tasks": [{"Properties": {"Parameters": {"Status": "{{ Status }}"}, "API": "DescribeInstances", "Service": "Ecs"}, "Name": "foo", "Action": "ACS::ExecuteApi"}]} |
| TemplateURL |
string |
任意 |
Object Storage Service (OSS) 内の OOS テンプレートの URL。公開読み取り URL のみがサポートされています。このパラメーターを使用すると、最初にテンプレートを作成することなく、URL に保存されているテンプレートコンテンツから実行を作成できます。既存のテンプレートから実行を作成する場合は、このパラメーターを指定しないでください。 |
http:/oos-template.cn-hangzhou.oss.aliyun-inc.com/oos-template.json |
レスポンスパラメーター
|
パラメーター |
タイプ |
説明 |
例 |
|
object |
|||
| Outputs |
string |
テンプレートの出力。 |
{} |
| RequestId |
string |
リクエスト ID。 |
D5EE9591-1F2D-573E-8751-7F08BBB388D4 |
| Parameters |
string |
テンプレートのパラメーター。 |
{ "Status": { "Description": "(Required) The status of the Ecs instance.", "Type": "String" } } |
| RamRole |
string |
RAM ロール。 |
OOSServiceRole |
| Tasks |
array<object> |
テンプレートで定義されているタスク。 |
|
|
object |
|||
| Outputs |
string |
タスクの出力。 |
.instanceId |
| Type |
string |
操作タイプ。 |
ACS::ExecuteAPI |
| Description |
string |
タスクの説明。 |
(Required) The status of the Ecs instance. |
| Name |
string |
タスクの名前。 |
foo |
| Properties |
string |
タスクのプロパティ。 |
{"API": "DescribeInstances","Parameters": {"Status": "{{ Status }}"},"Service": "Ecs"} |
例
成功レスポンス
JSONJSON
{
"Outputs": "{}",
"RequestId": "D5EE9591-1F2D-573E-8751-7F08BBB388D4",
"Parameters": "{ \"Status\": { \"Description\": \"(Required) The status of the Ecs instance.\", \"Type\": \"String\" } }",
"RamRole": "OOSServiceRole",
"Tasks": [
{
"Outputs": ".instanceId",
"Type": "ACS::ExecuteAPI",
"Description": "(Required) The status of the Ecs instance.",
"Name": "foo",
"Properties": "{\"API\": \"DescribeInstances\",\"Parameters\": {\"Status\": \"{{ Status }}\"},\"Service\": \"Ecs\"}"
}
]
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。