校验一个模版是否合法。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
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 |
返回参数
示例
正常返回示例
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\"}"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||||
---|---|---|---|---|---|---|
2022-11-07 | OpenAPI 入参发生变更 | |||||
|