1. Registry
  2. Packages
  3. Thoth
  4. API Docs
  5. governance
  6. getDecisions
Viewing docs for Thoth v0.1.22
published on Sunday, Oct 25, 2026 by Aten Security
thoth logo Thoth
Viewing docs for Thoth v0.1.22
published on Sunday, Oct 25, 2026 by Aten Security

    Using getDecisions

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDecisions(args: GetDecisionsArgs, opts?: InvokeOptions): Promise<GetDecisionsResult>
    function getDecisionsOutput(args: GetDecisionsOutputArgs, opts?: InvokeOutputOptions): Output<GetDecisionsResult>
    def get_decisions(agent_id: Optional[str] = None,
                      max_results: Optional[int] = None,
                      outcome: Optional[str] = None,
                      reason_code: Optional[str] = None,
                      rule_id: Optional[str] = None,
                      since: Optional[str] = None,
                      tool_name: Optional[str] = None,
                      until: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetDecisionsResult
    def get_decisions_output(agent_id: pulumi.Input[Optional[str]] = None,
                      max_results: pulumi.Input[Optional[int]] = None,
                      outcome: pulumi.Input[Optional[str]] = None,
                      reason_code: pulumi.Input[Optional[str]] = None,
                      rule_id: pulumi.Input[Optional[str]] = None,
                      since: pulumi.Input[Optional[str]] = None,
                      tool_name: pulumi.Input[Optional[str]] = None,
                      until: pulumi.Input[Optional[str]] = None,
                      opts: Optional[InvokeOutputOptions] = None) -> Output[GetDecisionsResult]
    func GetDecisions(ctx *Context, args *GetDecisionsArgs, opts ...InvokeOption) (*GetDecisionsResult, error)
    func GetDecisionsOutput(ctx *Context, args *GetDecisionsOutputArgs, opts ...InvokeOption) GetDecisionsResultOutput

    > Note: This function is named GetDecisions in the Go SDK.

    public static class GetDecisions 
    {
        public static Task<GetDecisionsResult> InvokeAsync(GetDecisionsArgs args, InvokeOptions? opts = null)
        public static Output<GetDecisionsResult> Invoke(GetDecisionsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetDecisionsResult> Invoke(GetDecisionsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetDecisionsResult> getDecisions(GetDecisionsArgs args, InvokeOptions options)
    public static Output<GetDecisionsResult> getDecisions(GetDecisionsArgs args, InvokeOptions options)
    public static Output<GetDecisionsResult> getDecisions(GetDecisionsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: thoth:governance/getDecisions:getDecisions
      arguments:
        # arguments dictionary
    data "thoth_governance_get_decisions" "name" {
        # arguments
    }

    The following arguments are supported:

    AgentId string
    MaxResults int
    Outcome string
    ReasonCode string
    RuleId string
    Since string
    ToolName string
    Until string
    AgentId string
    MaxResults int
    Outcome string
    ReasonCode string
    RuleId string
    Since string
    ToolName string
    Until string
    agent_id string
    max_results number
    outcome string
    reason_code string
    rule_id string
    since string
    tool_name string
    until string
    agentId String
    maxResults Integer
    outcome String
    reasonCode String
    ruleId String
    since String
    toolName String
    until String
    agentId string
    maxResults number
    outcome string
    reasonCode string
    ruleId string
    since string
    toolName string
    until string
    agentId String
    maxResults Number
    outcome String
    reasonCode String
    ruleId String
    since String
    toolName String
    until String

    getDecisions Result

    The following output properties are available:

    Decisions List<AtenSecurity.GetDecisionsDecision>
    Id string
    The provider-assigned unique ID for this managed resource.
    Truncated bool
    AgentId string
    MaxResults int
    Outcome string
    ReasonCode string
    RuleId string
    Since string
    ToolName string
    Until string
    Decisions []GetDecisionsDecision
    Id string
    The provider-assigned unique ID for this managed resource.
    Truncated bool
    AgentId string
    MaxResults int
    Outcome string
    ReasonCode string
    RuleId string
    Since string
    ToolName string
    Until string
    decisions list(object)
    id string
    The provider-assigned unique ID for this managed resource.
    truncated bool
    agent_id string
    max_results number
    outcome string
    reason_code string
    rule_id string
    since string
    tool_name string
    until string
    decisions List<GetDecisionsDecision>
    id String
    The provider-assigned unique ID for this managed resource.
    truncated Boolean
    agentId String
    maxResults Integer
    outcome String
    reasonCode String
    ruleId String
    since String
    toolName String
    until String
    decisions GetDecisionsDecision[]
    id string
    The provider-assigned unique ID for this managed resource.
    truncated boolean
    agentId string
    maxResults number
    outcome string
    reasonCode string
    ruleId string
    since string
    toolName string
    until string
    decisions Sequence[GetDecisionsDecision]
    id str
    The provider-assigned unique ID for this managed resource.
    truncated bool
    agent_id str
    max_results int
    outcome str
    reason_code str
    rule_id str
    since str
    tool_name str
    until str
    decisions List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    truncated Boolean
    agentId String
    maxResults Number
    outcome String
    reasonCode String
    ruleId String
    since String
    toolName String
    until String

    Supporting Types

    GetDecisionsDecision

    AgentId string
    The agent.
    At string
    When the decision was made (RFC 3339).
    Decision string
    The enforcer's decision: ALLOW, STEP_UP or BLOCK.
    HoldStatus string
    For a held action, the approval status.
    Id string
    Activity ID; read the full record with thothctl or the explainDecision MCP tool.
    Link string
    Dashboard path for this decision.
    Outcome string
    allowed, needsApproval or blocked, after any approval.
    ReasonCode string
    Why: the deterministic reason code.
    Resolution string
    approved, denied or expired, when a hold was resolved.
    ToolName string
    The tool the agent called.
    AgentId string
    The agent.
    At string
    When the decision was made (RFC 3339).
    Decision string
    The enforcer's decision: ALLOW, STEP_UP or BLOCK.
    HoldStatus string
    For a held action, the approval status.
    Id string
    Activity ID; read the full record with thothctl or the explainDecision MCP tool.
    Link string
    Dashboard path for this decision.
    Outcome string
    allowed, needsApproval or blocked, after any approval.
    ReasonCode string
    Why: the deterministic reason code.
    Resolution string
    approved, denied or expired, when a hold was resolved.
    ToolName string
    The tool the agent called.
    agent_id string
    The agent.
    at string
    When the decision was made (RFC 3339).
    decision string
    The enforcer's decision: ALLOW, STEP_UP or BLOCK.
    hold_status string
    For a held action, the approval status.
    id string
    Activity ID; read the full record with thothctl or the explainDecision MCP tool.
    link string
    Dashboard path for this decision.
    outcome string
    allowed, needsApproval or blocked, after any approval.
    reason_code string
    Why: the deterministic reason code.
    resolution string
    approved, denied or expired, when a hold was resolved.
    tool_name string
    The tool the agent called.
    agentId String
    The agent.
    at String
    When the decision was made (RFC 3339).
    decision String
    The enforcer's decision: ALLOW, STEP_UP or BLOCK.
    holdStatus String
    For a held action, the approval status.
    id String
    Activity ID; read the full record with thothctl or the explainDecision MCP tool.
    link String
    Dashboard path for this decision.
    outcome String
    allowed, needsApproval or blocked, after any approval.
    reasonCode String
    Why: the deterministic reason code.
    resolution String
    approved, denied or expired, when a hold was resolved.
    toolName String
    The tool the agent called.
    agentId string
    The agent.
    at string
    When the decision was made (RFC 3339).
    decision string
    The enforcer's decision: ALLOW, STEP_UP or BLOCK.
    holdStatus string
    For a held action, the approval status.
    id string
    Activity ID; read the full record with thothctl or the explainDecision MCP tool.
    link string
    Dashboard path for this decision.
    outcome string
    allowed, needsApproval or blocked, after any approval.
    reasonCode string
    Why: the deterministic reason code.
    resolution string
    approved, denied or expired, when a hold was resolved.
    toolName string
    The tool the agent called.
    agent_id str
    The agent.
    at str
    When the decision was made (RFC 3339).
    decision str
    The enforcer's decision: ALLOW, STEP_UP or BLOCK.
    hold_status str
    For a held action, the approval status.
    id str
    Activity ID; read the full record with thothctl or the explainDecision MCP tool.
    link str
    Dashboard path for this decision.
    outcome str
    allowed, needsApproval or blocked, after any approval.
    reason_code str
    Why: the deterministic reason code.
    resolution str
    approved, denied or expired, when a hold was resolved.
    tool_name str
    The tool the agent called.
    agentId String
    The agent.
    at String
    When the decision was made (RFC 3339).
    decision String
    The enforcer's decision: ALLOW, STEP_UP or BLOCK.
    holdStatus String
    For a held action, the approval status.
    id String
    Activity ID; read the full record with thothctl or the explainDecision MCP tool.
    link String
    Dashboard path for this decision.
    outcome String
    allowed, needsApproval or blocked, after any approval.
    reasonCode String
    Why: the deterministic reason code.
    resolution String
    approved, denied or expired, when a hold was resolved.
    toolName String
    The tool the agent called.

    Package Details

    Repository
    thoth atensecurity/pulumi-thoth
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the thoth Terraform Provider.
    thoth logo Thoth
    Viewing docs for Thoth v0.1.22
    published on Sunday, Oct 25, 2026 by Aten Security

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial