Docs
post https://console.iugu.com/verify

Verify principal authorizations

Checks whether the given principals can perform the requested actions in a workspace. Returns a map of each action to its authorization result and can enforce IP allow lists and client certificate thumbprints per principal.

Sem ações implementadas definidas

Request

Body Required

Content Type: application/json

workspace_id

Required

String = 22 characters ^[0-9a-f]{22}$

The unique identifier of the resource

Ex: abcd1234efgh5678ijkl

principals

Required

A single principal or a list of principals to verify.

actions

Required

A single action or a list of actions to verify.

Example
1
2
3
4
5
{
  "workspace_id": "abcd1234efgh5678ijkl",
  "principals": "<PRINCIPALS>",
  "actions": "<ACTIONS>"
}

Response

200

Map of action to authorization result.

Example
1
2
3
4
{
  "app:namespace.action1": true,
  "app:namespace.action2": false
}

400

Bad Request

error_description
String

Human readable error message.

Ex: Param workspace_id is required

Example
1
2
3
{
  "error_description": "Param workspace_id is required"
}

401

Unauthorized

error_description
String

Human readable error message.

Ex: Param workspace_id is required

Example
1
2
3
{
  "error_description": "Param workspace_id is required"
}