请求管理事件有效载荷

您可以使用以下请求管理事件有效载荷来触发异步工作流,并同步事件通知网络钩子和 API。

下表列出了访问请求事件中包含的属性。

表 1. 访问请求属性
姓名 数据类型 描述
data.action 字符串 用户对资源执行的操作。
data.approver 字符串 指定对指定申请采取行动的审批人。
data.approver_comment 字符串 指定审批人注释。
data.approvers 数组列表 指定可对指定申请采取行动的审批人列表。
data.beneficiary 字符串 指定申请的受益人。
data.cause 字符串 指定错误信息。
data.creationDate 字符串 指定创建请求的时间。
data.current_step 字符串 指定多步骤流程中的当前步骤名称。
data.entitlement_name 字符串 指定权利名称。
data.entitlement_rights 字符串列表 指定权利的权限。
data.entitlement_type 字符串 指定权利类型。
data.justification 字符串 说明申请的理由。
data.performedby 字符串 在实例上执行操作的用户 ID。
data.reference 字符串 指定请求的引用。 当同时申请多项权利时,所有申请的参考信息都是相同的。
data.request 字符串 指定请求的唯一标识符 ( RequestId )。
data.request_number 字符串 指定用于跟踪请求的请求编号。
data.requestor 字符串 指定申请者的 ID。
data.resource 字符串 流量类型。 例如,赠款-补助金。
data.status 字符串 指定请求的状态。
data.workflow 字符串 指定与申请相关的工作流程。
data.workflow_configuration 字符串列表 指定与申请相关的工作流程的配置。

示例

以下代码是有效载荷示例。 使用事件 API 获取实际属性。 参见 https://docs.verify.ibm.com/verify/reference/getalleventshttps://docs.verify.ibm.com/verify/docs/pulling-event-data

{"data": {
    "action": "APPROVE",
    "approver": "jane.doe",
    "approver_comment": "Request approved due to valid justification.",
    "approvers": ["jane.doe", "john.smith"],
    "beneficiary": "alice.johnson",
    "cause": "N/A",
    "creationDate": "2025-05-20T14:30:00Z",
    "current_step": "ManagerApproval",
    "entitlement_name": "Admin Access",
    "entitlement_rights": ["READ", "WRITE", "EXECUTE"],
    "entitlement_type": "Role-Based Access",
    "justification": "Required access to manage system configurations.",
    "performedby": "jane.doe",
    "reference": "REF-20250520-1234",
    "request": "REQ-0001234567",
    "request_number": "AR-20250520-7890",
    "requestor": "bob.martin",
    "resource": "grant-entitlement",
    "status": "APPROVED",
    "workflow": "WF-AccessApproval-01",
    "workflow_configuration": ["Step1:Submit", "Step2:ManagerApproval", "Step3:FinalApproval"]
}