态势感知 SA-更新剧本版本(仅支持华东-上海一使用):响应参数

时间:2023-11-01 16:15:45

响应参数

状态码: 200

表4 响应Header参数

参数

参数类型

描述

X-request-id

String

This field is the request ID number for task tracking. Format is request_uuid-timestamp-hostname.

表5 响应Body参数

参数

参数类型

描述

code

String

Error code

最小长度:1

最大长度:32

message

String

Error message

最小长度:1

最大长度:32

data

PlaybookVersionInfo object

Information of playbook version

表6 PlaybookVersionInfo

参数

参数类型

描述

id

String

Id value

最小长度:32

最大长度:64

description

String

The description, display only

最小长度:0

最大长度:1024

create_time

String

Create time

最小长度:0

最大长度:64

update_time

String

Update time

最小长度:0

最大长度:64

project_id

String

Project id value

最小长度:32

最大长度:64

creator_id

String

Creator id value

最小长度:32

最大长度:64

modifier_id

String

Modifier id value

最小长度:32

最大长度:64

playbook_id

String

Playbook id.

最小长度:32

最大长度:64

version

String

version

最小长度:32

最大长度:64

run_mode

String

Run mode of this playbook. automatic, manual

最小长度:0

最大长度:64

enabled

Boolean

If is enabled, false for disenabled, true for enabled

status

String

Status of approvement. editing, approving, unpassed, published

最小长度:0

最大长度:64

action_strategy

String

Strategy of action. sync or async

最小长度:0

最大长度:64

actions

Array of ActionInfo objects

Information of actions.

rule_enable

Boolean

If the condition filter is enabled.

rules

RuleInfo object

Information of rule

dataclass_id

String

bind dataclass id

最小长度:0

最大长度:64

trigger_type

String

Strategy of action. event, timer

最小长度:0

最大长度:64

dataobject_create

Boolean

if trigger when dataobject is created

dataobject_update

Boolean

if trigger when dataobject is updated

dataobject_delete

Boolean

if trigger when dataobject is deleted

version_type

Integer

版本类型

最小值:0

最大值:1

rule_id

String

过滤规则ID

最小长度:0

最大长度:64

dataclass_name

String

数据类名称

最小长度:0

最大长度:64

approve_name

String

审核者

最小长度:0

最大长度:64

dataobject_id

String

dataobject id

最小长度:1

最大长度:64

表7 ActionInfo

参数

参数类型

描述

id

String

Id value

最小长度:32

最大长度:64

name

String

The name, display only

最小长度:0

最大长度:1024

description

String

The description, display only

最小长度:0

最大长度:1024

action_type

String

Type of action, aopworkflow, Script, Task and so on.

最小长度:0

最大长度:64

action_id

String

action id

最小长度:32

最大长度:64

sort_order

Integer

sort_order

最小值:0

最大值:21312312312

playbook_id

String

剧本ID

最小长度:0

最大长度:64

playbook_version_id

String

剧本版本ID

最小长度:0

最大长度:64

project_id

String

project_id

最小长度:0

最大长度:64

表8 RuleInfo

参数

参数类型

描述

id

String

Id value

最小长度:32

最大长度:64

project_id

String

Project id value

最小长度:32

最大长度:64

rule

String

Project id value

最小长度:0

最大长度:128

状态码: 400

表9 响应Header参数

参数

参数类型

描述

X-request-id

String

This field is the request ID number for task tracking. Format is request_uuid-timestamp-hostname.

表10 响应Body参数

参数

参数类型

描述

code

String

Error code.

最小长度:0

最大长度:64

message

String

Error description.

最小长度:0

最大长度:1024

support.huaweicloud.com/api-sa/UpdatePlaybookVersion.html