Action

An action specifies the logic in case a policy is triggered. For RequestApproval actions, approval groups are a list of objects that specify the approvers whose decision is required for an activity to be approved.

Action Object

Request body fieldsRequired/OptionalDescriptionType

kind

Required

RequestApproval or Blocked.

Enumerated Type

approvalGroups

Required / Optional

Quorum required for approval of activity.

Object

autoRejectTimeout

Required / Optional

Fine-grained approval group configuration.

Object

Example action (RequestApproval)

{
  "action": {
    "kind": "RequestApproval",
    "approvalGroups": [
      {
        "name": "Admins",
        "quorum": 1,
        "approvers": {
          "userId": {
            "in": [
              "us-..."
            ]
          }
        }
      }
    ],
    "autoRejectTimeout": 60
  }
}

The quorum is the number of approvals required for the activity to be approved.

Example action (Block)

{
  "action": {
    "kind": "Block"
  }
}

Last updated