校正一個模版是否合法。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
oos:ValidateTemplateContent |
get |
*全部資源
|
|
無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| 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 中存放 OOS 模板內容的 URL(只支援公用讀取的 URL)。使用者傳入此欄位可直接根據行 TemplateURL 中儲存的模板內容建立執行任務,無需提前建立模板再建立執行任務(當使用者選擇已有的 Template 建立執行任務時不需傳入此欄位)。 |
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"} |
樣本
正常返回樣本
JSON格式
{
"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\"}"
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。