校验一个模版是否合法。
调试
您可以在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 |
否 |
阿里云对象存储 OSS 中存放 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\"}"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。