Pular para o conteúdo principal
POST
Bind a policy to a ledger scenario

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Corpo

application/json
ledgerId
string
obrigatório

Ledger whose transactions the binding applies to.

limitsAction
enum<string>
obrigatório

Instruction for the policy's limits; INHERIT leaves it to the next binding or the fallback.

Opções disponíveis:
ENFORCE,
ADVISORY,
AUDIT,
OFF,
INHERIT
policyId
string
obrigatório

Policy the binding instructs.

rulesAction
enum<string>
obrigatório

Instruction for the policy's rules; INHERIT leaves it to the next binding or the fallback.

Opções disponíveis:
ENFORCE,
ADVISORY,
AUDIT,
OFF,
INHERIT
selector
object
obrigatório

Scheme the binding matches, compared without case; {} matches every transaction of the ledger. Any key other than scheme is refused.

position
integer<int64>

Order among the policy's bindings in the ledger, 1 first; omitted or 0 appends.

Resposta

Created

bindingId
string
obrigatório
createdAt
string<date-time>
obrigatório
ledgerId
string
obrigatório
limitsAction
enum<string>
obrigatório
Opções disponíveis:
ENFORCE,
ADVISORY,
AUDIT,
OFF,
INHERIT
policyId
string
obrigatório
position
integer<int64>
obrigatório
rulesAction
enum<string>
obrigatório
Opções disponíveis:
ENFORCE,
ADVISORY,
AUDIT,
OFF,
INHERIT
selector
object
obrigatório
updatedAt
string<date-time>
obrigatório