用于获取剧本的输入参数与输出参数的配置信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-sas:DescribePlaybookInputOutput |
get |
*Playbook
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| PlaybookUuid |
string |
是 |
剧本的 UUID。 说明
调用 DescribePlaybooks 接口可以获取该参数。 |
b724d2b0-3c3b-4223-9bfd-xxxxxxx |
| Lang |
string |
否 |
设置请求和接收消息的语言类型,默认为 zh。取值:
|
zh |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回信息。 |
||
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。 |
688B4CCD-5272-5DCF-9D76-FE5EFEF545F8 |
| Config |
object |
配置信息。 |
|
| ParamType |
string |
剧本的入参类型。
|
custom |
| ExeConfig |
string |
剧本的执行方式,为 JSONObject 格式。 |
{ "executeMode":"mul", "cron":"0 0 1 */1 * ?" } |
| InputParams |
string |
剧本的入参配置,为 JSONArray 格式。 |
[ { "typeName": "String", "dataClass": "normal", "dataType": "String", "description": "period", "example": "", "name": "period", "required": false } ] |
| OutputParams |
string |
剧本暂不支持出参配置,固定为空值。 |
[] |
| PlaybookUuid |
string |
剧本的 UUID。 |
9030076b-6733-4842-b05a-xxxxxx |
InputParams 为 JSONArray 格式,具体参数说明:
typeName:参数类型名称。
dataClass:参数类型等级,可选值,normal 表示普通参数,custom 表示复杂参数。
dataType:参数类型,可选值,string、long、int、ip、file、account。
description:参数的描述说明。
example:参数的示例。
name:参数名称。
required:参数是否必填,可选值,true 表示必填,false 表示不必填
示例
正常返回示例
JSON格式
{
"RequestId": "688B4CCD-5272-5DCF-9D76-FE5EFEF545F8",
"Config": {
"ParamType": "custom",
"ExeConfig": "{\n \"executeMode\":\"mul\",\n \"cron\":\"0 0 1 */1 * ?\"\n}",
"InputParams": "[\n {\n \"typeName\": \"String\",\n \"dataClass\": \"normal\",\n \"dataType\": \"String\",\n \"description\": \"period\",\n \"example\": \"\",\n \"name\": \"period\",\n \"required\": false\n }\n]",
"OutputParams": "[]",
"PlaybookUuid": "9030076b-6733-4842-b05a-xxxxxx"
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。