Skip to main content
Pulumi logo Pulumi logo
  1. Docs
  2. Reference
  3. REST API Docs
  4. Schema
  5. AgentAutomationV2

AgentAutomationV2

    An organization-owned agent automation. The kind field identifies which automation-specific fields are present.

    Properties

    • kind enum required
      The automation kind.
      Values: scheduled, triggered
    • id string required
      The unique identifier for this automation.
    • name string required
      A human-readable name for this automation.
    • asyncTriggerType enum required
      The async trigger type for this automation.
      Values:
      scheduled — Scheduled
      The task was started by a cron-driven scheduled signal.
      external_signal — ExternalSignal
      The task was started in reaction to an external signal payload.
    • The task configuration used for each run of this automation, including the prompt, attached entities, and task execution settings. Each run creates a fresh task from this definition.
    • ↳ message AgentUserEventMessage optional
      The message content. This is the first event in the conversation and must be a user message, so its discriminator field must be set to “type”: “user_message”.
    • ↳ approvalMode enum optional
      Optional approval mode override for this task. If omitted, org default is used.
      Values: manual, auto, balanced
    • ↳ planMode boolean optional
      Whether to enable plan mode for this task.
    • ↳ permissionMode enum optional
      Controls the permission scope for the task. When omitted, defaults to ‘default’ (the agent uses the creating user’s full permissions).
      Values:
      default — Default
      read-only — ReadOnly
    • ↳ role string optional
      Optional RBAC role the task assumes, identified by role id. When set, the task operates with that role’s permissions in place of the creating user’s own assignments. You may only assume a role that is assigned to you, directly or through a team; a role you do not hold is rejected with a 403. Omitted/null means no assumed role: the task uses the creating user’s full permissions. Orthogonal to permissionMode, which controls the read-only behavior posture independently.
    • ↳ agentDefinitionId string optional
      Optional Custom Agent definition id to run this task as. When set, the task’s role and enabled integrations are taken from the named agent definition instead of from this request, and the task is attributed to that agent. The agent’s instructions and approval mode are not copied at creation: they are read from the definition on every turn, so editing the agent applies to the next turn of every run. A preview capability, gated per organization.
    • ↳ toolExecutionMode enum optional
      Where tools should be executed. Defaults to ‘cloud’ if omitted.
      Values: cloud, cli, worker
    • ↳ enabledIntegrations array[AgentTaskIntegrationRef] optional
      Optional list of integrations to enable for this task. Semantics: omitted/null → inherit all org-enabled integrations; empty list → explicit opt-out (no integration credentials for this task); populated list → whitelist of specific integrations by ID. Modeled as an object array rather than a bare string array so multi-instance support (instance_name, scope, etc.) can be added later without a wire break.
    • ↳ source enum optional
      The origin that triggered this task. Defaults to ‘api’ if omitted.
      Values:
      api — Api
      Task created via the REST API without a more specific origin.
      console — Console
      Task created from the Pulumi Cloud web console.
      cli — Cli
      Task created from the Pulumi CLI.
      slack — Slack
      Task created from the Slack integration.
      schedule — Schedule
      Task created by a scheduled automation.
      github — Github
      Task triggered from a GitHub integration.
      code-review — CodeReview
      Task created by the code review feature. The platform hosting the reviewed change is identified by the task’s vcsProvider field.
    • ↳ cliIntegrations array[CLIIntegrationRef] optional
      Optional filter for CLI integrations to enable for this task. Semantics: omitted/null → enable all CLI integrations connected for the org; empty list → explicit opt-out (no CLI integrations for this task); populated list → whitelist by (catalogId, name) of the configured instances to enable. Entries with missing or unknown catalogId, missing name, or referencing a (catalogId, name) pair that is not connected for the organization are rejected with a 400 response. catalogId matching is case-insensitive.
    • paused boolean required
      Whether future executions are currently paused.
    • notificationTargets array[NotificationTarget] required
      The destinations that receive notifications about automation runs.
    • ↳ type string required
    • scheduleCron string optional
      A standard five-field cron expression in UTC that controls when this automation runs. Present for scheduled automations.
    • nextExecution string optional
      The timestamp of the next scheduled execution. Present for scheduled automations.
    • trigger AgentAutomationTrigger optional
      The trigger configuration for this automation. Present for triggered automations.
    • ↳ quietPeriodSeconds integer required
      The quiet period, in seconds, that bounds how long events remain associated with one task.
    • ↳ type string required
    • lastExecuted string optional
      The timestamp when this automation last ran, if any.
    • lastRunStatus string optional
      The result of the most recent automation run, if any. Valid values currently include ‘succeeded’, ‘failed’, and ‘skipped’.

      The infrastructure platform for humans and agents.