published on Monday, Nov 9, 2026 by pulumiverse
Grafanapublished on Monday, Nov 9, 2026 by pulumiverse
Manages a Grafana Assistant Automation: a saved Assistant prompt that runs on demand or on a cron schedule. Each run creates its own Assistant conversation.
Automations are a Grafana Cloud-only feature and require the Grafana Assistant app.
executionMode selects the identity used for runs. The default user mode uses the creator’s Grafana permissions. serviceAccount mode requires tenant scope and organization Admin permission to configure. Authenticating Terraform with a service-account token does not automatically select serviceAccount execution. Runtime memory and run history remain backend-owned.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const dailyIncidentReport = new grafana.assistant.Automation("daily_incident_report", {
name: "Daily ecommerce incident report",
description: "Every morning, summarize the alerts that fired for the ecommerce app.",
prompt: `Produce a daily report on the incidents for the main alerts that fired in
the last 24 hours for the ecommerce app in the ecommerce-prod namespace.
For each alert: how long it fired, which services were affected, and
whether it correlates with a deploy. Close with the single most important
thing to look at today.
`,
scope: "tenant",
enabled: true,
executionMode: "user",
labels: {
application: "ecommerce",
managed_by: "terraform",
},
scheduleCron: "0 9 * * *",
scheduleTimezone: "Europe/Paris",
notifications: {
slack: {
enabled: true,
notifyOns: [
"completed",
"failed",
],
target: {
type: "channel",
channelId: "C0123456789",
},
},
},
});
// Event-only automation. Replace the watcher UUID with an existing Watcher.
// The backend must enable Watcher-to-Automation triggers. No events run while disabled.
const onCriticalFinding = new grafana.assistant.Automation("on_critical_finding", {
name: "Investigate critical Watcher findings",
prompt: "Investigate the critical finding supplied by the Watcher event.",
scope: "tenant",
executionMode: "service_account",
enabled: false,
triggers: {
"c971a626-703b-4472-8eb0-e92aaf705af9": {
type: "watcher_finding",
config: JSON.stringify({
watcherId: "52fcc709-4ab5-45c8-8f79-a1c1d6abef17",
}),
},
},
});
// A manual-only automation needs neither schedule nor timezone.
const manualReport = new grafana.assistant.Automation("manual_report", {
name: "On-demand incident report",
prompt: "Summarize the incidents from the past 24 hours.",
enabled: false,
});
import pulumi
import json
import pulumiverse_grafana as grafana
daily_incident_report = grafana.assistant.Automation("daily_incident_report",
name="Daily ecommerce incident report",
description="Every morning, summarize the alerts that fired for the ecommerce app.",
prompt="""Produce a daily report on the incidents for the main alerts that fired in
the last 24 hours for the ecommerce app in the ecommerce-prod namespace.
For each alert: how long it fired, which services were affected, and
whether it correlates with a deploy. Close with the single most important
thing to look at today.
""",
scope="tenant",
enabled=True,
execution_mode="user",
labels={
"application": "ecommerce",
"managed_by": "terraform",
},
schedule_cron="0 9 * * *",
schedule_timezone="Europe/Paris",
notifications={
"slack": {
"enabled": True,
"notify_ons": [
"completed",
"failed",
],
"target": {
"type": "channel",
"channel_id": "C0123456789",
},
},
})
# Event-only automation. Replace the watcher UUID with an existing Watcher.
# The backend must enable Watcher-to-Automation triggers. No events run while disabled.
on_critical_finding = grafana.assistant.Automation("on_critical_finding",
name="Investigate critical Watcher findings",
prompt="Investigate the critical finding supplied by the Watcher event.",
scope="tenant",
execution_mode="service_account",
enabled=False,
triggers={
"c971a626-703b-4472-8eb0-e92aaf705af9": {
"type": "watcher_finding",
"config": json.dumps({
"watcherId": "52fcc709-4ab5-45c8-8f79-a1c1d6abef17",
}),
},
})
# A manual-only automation needs neither schedule nor timezone.
manual_report = grafana.assistant.Automation("manual_report",
name="On-demand incident report",
prompt="Summarize the incidents from the past 24 hours.",
enabled=False)
package main
import (
"encoding/json"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/assistant"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := assistant.NewAutomation(ctx, "daily_incident_report", &assistant.AutomationArgs{
Name: pulumi.String("Daily ecommerce incident report"),
Description: pulumi.String("Every morning, summarize the alerts that fired for the ecommerce app."),
Prompt: pulumi.String(`Produce a daily report on the incidents for the main alerts that fired in
the last 24 hours for the ecommerce app in the ecommerce-prod namespace.
For each alert: how long it fired, which services were affected, and
whether it correlates with a deploy. Close with the single most important
thing to look at today.
`),
Scope: pulumi.String("tenant"),
Enabled: pulumi.Bool(true),
ExecutionMode: pulumi.String("user"),
Labels: pulumi.StringMap{
"application": pulumi.String("ecommerce"),
"managed_by": pulumi.String("terraform"),
},
ScheduleCron: pulumi.String("0 9 * * *"),
ScheduleTimezone: pulumi.String("Europe/Paris"),
Notifications: &assistant.AutomationNotificationsArgs{
Slack: &assistant.AutomationNotificationsSlackArgs{
Enabled: pulumi.Bool(true),
NotifyOns: pulumi.StringArray{
pulumi.String("completed"),
pulumi.String("failed"),
},
Target: &assistant.AutomationNotificationsSlackTargetArgs{
Type: pulumi.String("channel"),
ChannelId: pulumi.String("C0123456789"),
},
},
},
})
if err != nil {
return err
}
tmpJSON0, err := json.Marshal(map[string]interface{}{
"watcherId": "52fcc709-4ab5-45c8-8f79-a1c1d6abef17",
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
// Event-only automation. Replace the watcher UUID with an existing Watcher.
// The backend must enable Watcher-to-Automation triggers. No events run while disabled.
_, err = assistant.NewAutomation(ctx, "on_critical_finding", &assistant.AutomationArgs{
Name: pulumi.String("Investigate critical Watcher findings"),
Prompt: pulumi.String("Investigate the critical finding supplied by the Watcher event."),
Scope: pulumi.String("tenant"),
ExecutionMode: pulumi.String("service_account"),
Enabled: pulumi.Bool(false),
Triggers: assistant.AutomationTriggersMap{
"c971a626-703b-4472-8eb0-e92aaf705af9": &assistant.AutomationTriggersArgs{
Type: pulumi.String("watcher_finding"),
Config: pulumi.String(pulumi.String(json0)),
},
},
})
if err != nil {
return err
}
// A manual-only automation needs neither schedule nor timezone.
_, err = assistant.NewAutomation(ctx, "manual_report", &assistant.AutomationArgs{
Name: pulumi.String("On-demand incident report"),
Prompt: pulumi.String("Summarize the incidents from the past 24 hours."),
Enabled: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var dailyIncidentReport = new Grafana.Assistant.Automation("daily_incident_report", new()
{
Name = "Daily ecommerce incident report",
Description = "Every morning, summarize the alerts that fired for the ecommerce app.",
Prompt = @"Produce a daily report on the incidents for the main alerts that fired in
the last 24 hours for the ecommerce app in the ecommerce-prod namespace.
For each alert: how long it fired, which services were affected, and
whether it correlates with a deploy. Close with the single most important
thing to look at today.
",
Scope = "tenant",
Enabled = true,
ExecutionMode = "user",
Labels =
{
{ "application", "ecommerce" },
{ "managed_by", "terraform" },
},
ScheduleCron = "0 9 * * *",
ScheduleTimezone = "Europe/Paris",
Notifications = new Grafana.Assistant.Inputs.AutomationNotificationsArgs
{
Slack = new Grafana.Assistant.Inputs.AutomationNotificationsSlackArgs
{
Enabled = true,
NotifyOns = new[]
{
"completed",
"failed",
},
Target = new Grafana.Assistant.Inputs.AutomationNotificationsSlackTargetArgs
{
Type = "channel",
ChannelId = "C0123456789",
},
},
},
});
// Event-only automation. Replace the watcher UUID with an existing Watcher.
// The backend must enable Watcher-to-Automation triggers. No events run while disabled.
var onCriticalFinding = new Grafana.Assistant.Automation("on_critical_finding", new()
{
Name = "Investigate critical Watcher findings",
Prompt = "Investigate the critical finding supplied by the Watcher event.",
Scope = "tenant",
ExecutionMode = "service_account",
Enabled = false,
Triggers =
{
{ "c971a626-703b-4472-8eb0-e92aaf705af9", new Grafana.Assistant.Inputs.AutomationTriggersArgs
{
Type = "watcher_finding",
Config = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["watcherId"] = "52fcc709-4ab5-45c8-8f79-a1c1d6abef17",
}),
} },
},
});
// A manual-only automation needs neither schedule nor timezone.
var manualReport = new Grafana.Assistant.Automation("manual_report", new()
{
Name = "On-demand incident report",
Prompt = "Summarize the incidents from the past 24 hours.",
Enabled = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.assistant.Automation;
import com.pulumi.grafana.assistant.AutomationArgs;
import com.pulumi.grafana.assistant.inputs.AutomationNotificationsArgs;
import com.pulumi.grafana.assistant.inputs.AutomationNotificationsSlackArgs;
import com.pulumi.grafana.assistant.inputs.AutomationNotificationsSlackTargetArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var dailyIncidentReport = new Automation("dailyIncidentReport", AutomationArgs.builder()
.name("Daily ecommerce incident report")
.description("Every morning, summarize the alerts that fired for the ecommerce app.")
.prompt("""
Produce a daily report on the incidents for the main alerts that fired in
the last 24 hours for the ecommerce app in the ecommerce-prod namespace.
For each alert: how long it fired, which services were affected, and
whether it correlates with a deploy. Close with the single most important
thing to look at today.
""")
.scope("tenant")
.enabled(true)
.executionMode("user")
.labels(Map.ofEntries(
Map.entry("application", "ecommerce"),
Map.entry("managed_by", "terraform")
))
.scheduleCron("0 9 * * *")
.scheduleTimezone("Europe/Paris")
.notifications(AutomationNotificationsArgs.builder()
.slack(AutomationNotificationsSlackArgs.builder()
.enabled(true)
.notifyOns(
"completed",
"failed")
.target(AutomationNotificationsSlackTargetArgs.builder()
.type("channel")
.channelId("C0123456789")
.build())
.build())
.build())
.build());
// Event-only automation. Replace the watcher UUID with an existing Watcher.
// The backend must enable Watcher-to-Automation triggers. No events run while disabled.
var onCriticalFinding = new Automation("onCriticalFinding", AutomationArgs.builder()
.name("Investigate critical Watcher findings")
.prompt("Investigate the critical finding supplied by the Watcher event.")
.scope("tenant")
.executionMode("service_account")
.enabled(false)
.triggers(Map.of("c971a626-703b-4472-8eb0-e92aaf705af9", AutomationTriggersArgs.builder()
.type("watcher_finding")
.config(serializeJson(
jsonObject(
jsonProperty("watcherId", "52fcc709-4ab5-45c8-8f79-a1c1d6abef17")
)))
.build()))
.build());
// A manual-only automation needs neither schedule nor timezone.
var manualReport = new Automation("manualReport", AutomationArgs.builder()
.name("On-demand incident report")
.prompt("Summarize the incidents from the past 24 hours.")
.enabled(false)
.build());
}
}
resources:
dailyIncidentReport:
type: grafana:assistant:Automation
name: daily_incident_report
properties:
name: Daily ecommerce incident report
description: Every morning, summarize the alerts that fired for the ecommerce app.
prompt: |
Produce a daily report on the incidents for the main alerts that fired in
the last 24 hours for the ecommerce app in the ecommerce-prod namespace.
For each alert: how long it fired, which services were affected, and
whether it correlates with a deploy. Close with the single most important
thing to look at today.
scope: tenant
enabled: true # Default: runs use the creator's permissions.
# # service_account requires tenant scope and organization Admin permission.
executionMode: user
labels:
application: ecommerce
managed_by: terraform
scheduleCron: 0 9 * * *
scheduleTimezone: Europe/Paris
notifications:
slack:
enabled: true
notifyOns:
- completed
- failed
target:
type: channel
channelId: C0123456789
# Event-only automation. Replace the watcher UUID with an existing Watcher.
# The backend must enable Watcher-to-Automation triggers. No events run while disabled.
onCriticalFinding:
type: grafana:assistant:Automation
name: on_critical_finding
properties:
name: Investigate critical Watcher findings
prompt: Investigate the critical finding supplied by the Watcher event.
scope: tenant
executionMode: service_account
enabled: false # Trigger keys are stable UUIDs. Do not call uuid() here: it changes each plan.
# # Keep the key when editing a trigger; remove its entry to unsubscribe.
triggers:
c971a626-703b-4472-8eb0-e92aaf705af9:
type: watcher_finding
config:
fn::toJSON:
watcherId: 52fcc709-4ab5-45c8-8f79-a1c1d6abef17
# A manual-only automation needs neither schedule nor timezone.
manualReport:
type: grafana:assistant:Automation
name: manual_report
properties:
name: On-demand incident report
prompt: Summarize the incidents from the past 24 hours.
enabled: false
Example coming soon!
Create Automation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Automation(name: string, args: AutomationArgs, opts?: CustomResourceOptions);@overload
def Automation(resource_name: str,
args: AutomationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Automation(resource_name: str,
opts: Optional[ResourceOptions] = None,
prompt: Optional[str] = None,
notifications: Optional[AutomationNotificationsArgs] = None,
enabled: Optional[bool] = None,
execution_mode: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
context_items: Optional[str] = None,
description: Optional[str] = None,
schedule_cron: Optional[str] = None,
schedule_ends_at: Optional[str] = None,
schedule_timezone: Optional[str] = None,
scope: Optional[str] = None,
triggers: Optional[Mapping[str, AutomationTriggersArgs]] = None)func NewAutomation(ctx *Context, name string, args AutomationArgs, opts ...ResourceOption) (*Automation, error)public Automation(string name, AutomationArgs args, CustomResourceOptions? opts = null)
public Automation(String name, AutomationArgs args)
public Automation(String name, AutomationArgs args, CustomResourceOptions options)
type: grafana:assistant:Automation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "grafana_assistant_automation" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AutomationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AutomationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AutomationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AutomationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AutomationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var automationResource = new Grafana.Assistant.Automation("automationResource", new()
{
Prompt = "string",
Notifications = new Grafana.Assistant.Inputs.AutomationNotificationsArgs
{
Email = new Grafana.Assistant.Inputs.AutomationNotificationsEmailArgs
{
Addresses = new[]
{
"string",
},
Enabled = false,
NotifyOns = new[]
{
"string",
},
},
Slack = new Grafana.Assistant.Inputs.AutomationNotificationsSlackArgs
{
Enabled = false,
NotifyOns = new[]
{
"string",
},
Target = new Grafana.Assistant.Inputs.AutomationNotificationsSlackTargetArgs
{
ChannelId = "string",
TeamId = "string",
Type = "string",
UserId = "string",
},
},
},
Enabled = false,
ExecutionMode = "string",
Labels =
{
{ "string", "string" },
},
Name = "string",
ContextItems = "string",
Description = "string",
ScheduleCron = "string",
ScheduleEndsAt = "string",
ScheduleTimezone = "string",
Scope = "string",
Triggers =
{
{ "string", new Grafana.Assistant.Inputs.AutomationTriggersArgs
{
Config = "string",
Type = "string",
} },
},
});
example, err := assistant.NewAutomation(ctx, "automationResource", &assistant.AutomationArgs{
Prompt: pulumi.String("string"),
Notifications: &assistant.AutomationNotificationsArgs{
Email: &assistant.AutomationNotificationsEmailArgs{
Addresses: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
NotifyOns: pulumi.StringArray{
pulumi.String("string"),
},
},
Slack: &assistant.AutomationNotificationsSlackArgs{
Enabled: pulumi.Bool(false),
NotifyOns: pulumi.StringArray{
pulumi.String("string"),
},
Target: &assistant.AutomationNotificationsSlackTargetArgs{
ChannelId: pulumi.String("string"),
TeamId: pulumi.String("string"),
Type: pulumi.String("string"),
UserId: pulumi.String("string"),
},
},
},
Enabled: pulumi.Bool(false),
ExecutionMode: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
ContextItems: pulumi.String("string"),
Description: pulumi.String("string"),
ScheduleCron: pulumi.String("string"),
ScheduleEndsAt: pulumi.String("string"),
ScheduleTimezone: pulumi.String("string"),
Scope: pulumi.String("string"),
Triggers: assistant.AutomationTriggersMap{
"string": &assistant.AutomationTriggersArgs{
Config: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
})
resource "grafana_assistant_automation" "automationResource" {
lifecycle {
create_before_destroy = true
}
prompt = "string"
notifications = {
email = {
addresses = ["string"]
enabled = false
notify_ons = ["string"]
}
slack = {
enabled = false
notify_ons = ["string"]
target = {
channel_id = "string"
team_id = "string"
type = "string"
user_id = "string"
}
}
}
enabled = false
execution_mode = "string"
labels = {
"string" = "string"
}
name = "string"
context_items = "string"
description = "string"
schedule_cron = "string"
schedule_ends_at = "string"
schedule_timezone = "string"
scope = "string"
triggers = {
"string" = {
config = "string"
type = "string"
}
}
}
var automationResource = new Automation("automationResource", AutomationArgs.builder()
.prompt("string")
.notifications(AutomationNotificationsArgs.builder()
.email(AutomationNotificationsEmailArgs.builder()
.addresses("string")
.enabled(false)
.notifyOns("string")
.build())
.slack(AutomationNotificationsSlackArgs.builder()
.enabled(false)
.notifyOns("string")
.target(AutomationNotificationsSlackTargetArgs.builder()
.channelId("string")
.teamId("string")
.type("string")
.userId("string")
.build())
.build())
.build())
.enabled(false)
.executionMode("string")
.labels(Map.of("string", "string"))
.name("string")
.contextItems("string")
.description("string")
.scheduleCron("string")
.scheduleEndsAt("string")
.scheduleTimezone("string")
.scope("string")
.triggers(Map.of("string", AutomationTriggersArgs.builder()
.config("string")
.type("string")
.build()))
.build());
automation_resource = grafana.assistant.Automation("automationResource",
prompt="string",
notifications={
"email": {
"addresses": ["string"],
"enabled": False,
"notify_ons": ["string"],
},
"slack": {
"enabled": False,
"notify_ons": ["string"],
"target": {
"channel_id": "string",
"team_id": "string",
"type": "string",
"user_id": "string",
},
},
},
enabled=False,
execution_mode="string",
labels={
"string": "string",
},
name="string",
context_items="string",
description="string",
schedule_cron="string",
schedule_ends_at="string",
schedule_timezone="string",
scope="string",
triggers={
"string": {
"config": "string",
"type": "string",
},
})
const automationResource = new grafana.assistant.Automation("automationResource", {
prompt: "string",
notifications: {
email: {
addresses: ["string"],
enabled: false,
notifyOns: ["string"],
},
slack: {
enabled: false,
notifyOns: ["string"],
target: {
channelId: "string",
teamId: "string",
type: "string",
userId: "string",
},
},
},
enabled: false,
executionMode: "string",
labels: {
string: "string",
},
name: "string",
contextItems: "string",
description: "string",
scheduleCron: "string",
scheduleEndsAt: "string",
scheduleTimezone: "string",
scope: "string",
triggers: {
string: {
config: "string",
type: "string",
},
},
});
type: grafana:assistant:Automation
properties:
contextItems: string
description: string
enabled: false
executionMode: string
labels:
string: string
name: string
notifications:
email:
addresses:
- string
enabled: false
notifyOns:
- string
slack:
enabled: false
notifyOns:
- string
target:
channelId: string
teamId: string
type: string
userId: string
prompt: string
scheduleCron: string
scheduleEndsAt: string
scheduleTimezone: string
scope: string
triggers:
string:
config: string
type: string
Automation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Automation resource accepts the following input properties:
- Prompt string
- The prompt sent to Assistant on each run. Prefix with
/<skill-name>to start from a skill. - Context
Items string - Context items attached to the prompt, as a JSON array string.
- Description string
- Optional description.
- Enabled bool
- Whether the automation runs on its schedule. Disabled automations can still be run manually.
- Execution
Mode string - Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
- Labels Dictionary<string, string>
- Operator labels. Omit or use an empty map to remove managed labels.
- Name string
- Human-friendly automation name.
- Notifications
Pulumiverse.
Grafana. Assistant. Inputs. Automation Notifications - Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
- Schedule
Cron string - Standard 5-field cron expression, or multiple expressions separated by semicolons. For example
0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart. - Schedule
Ends stringAt - Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
- Schedule
Timezone string - IANA timezone the schedule is interpreted in, for example
Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations. - Scope string
- Visibility.
userkeeps the automation private to its creator;tenantshares it with everybody in the org. - Triggers
Dictionary<string, Pulumiverse.
Grafana. Assistant. Inputs. Automation Triggers Args> - Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
- Prompt string
- The prompt sent to Assistant on each run. Prefix with
/<skill-name>to start from a skill. - Context
Items string - Context items attached to the prompt, as a JSON array string.
- Description string
- Optional description.
- Enabled bool
- Whether the automation runs on its schedule. Disabled automations can still be run manually.
- Execution
Mode string - Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
- Labels map[string]string
- Operator labels. Omit or use an empty map to remove managed labels.
- Name string
- Human-friendly automation name.
- Notifications
Automation
Notifications Args - Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
- Schedule
Cron string - Standard 5-field cron expression, or multiple expressions separated by semicolons. For example
0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart. - Schedule
Ends stringAt - Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
- Schedule
Timezone string - IANA timezone the schedule is interpreted in, for example
Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations. - Scope string
- Visibility.
userkeeps the automation private to its creator;tenantshares it with everybody in the org. - Triggers
map[string]Automation
Triggers Args - Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
- prompt string
- The prompt sent to Assistant on each run. Prefix with
/<skill-name>to start from a skill. - context_
items string - Context items attached to the prompt, as a JSON array string.
- description string
- Optional description.
- enabled bool
- Whether the automation runs on its schedule. Disabled automations can still be run manually.
- execution_
mode string - Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
- labels map(string)
- Operator labels. Omit or use an empty map to remove managed labels.
- name string
- Human-friendly automation name.
- notifications object
- Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
- schedule_
cron string - Standard 5-field cron expression, or multiple expressions separated by semicolons. For example
0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart. - schedule_
ends_ stringat - Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
- schedule_
timezone string - IANA timezone the schedule is interpreted in, for example
Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations. - scope string
- Visibility.
userkeeps the automation private to its creator;tenantshares it with everybody in the org. - triggers map(object)
- Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
- prompt String
- The prompt sent to Assistant on each run. Prefix with
/<skill-name>to start from a skill. - context
Items String - Context items attached to the prompt, as a JSON array string.
- description String
- Optional description.
- enabled Boolean
- Whether the automation runs on its schedule. Disabled automations can still be run manually.
- execution
Mode String - Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
- labels Map<String,String>
- Operator labels. Omit or use an empty map to remove managed labels.
- name String
- Human-friendly automation name.
- notifications
Automation
Notifications - Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
- schedule
Cron String - Standard 5-field cron expression, or multiple expressions separated by semicolons. For example
0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart. - schedule
Ends StringAt - Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
- schedule
Timezone String - IANA timezone the schedule is interpreted in, for example
Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations. - scope String
- Visibility.
userkeeps the automation private to its creator;tenantshares it with everybody in the org. - triggers
Map<String,Automation
Triggers Args> - Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
- prompt string
- The prompt sent to Assistant on each run. Prefix with
/<skill-name>to start from a skill. - context
Items string - Context items attached to the prompt, as a JSON array string.
- description string
- Optional description.
- enabled boolean
- Whether the automation runs on its schedule. Disabled automations can still be run manually.
- execution
Mode string - Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
- labels {[key: string]: string}
- Operator labels. Omit or use an empty map to remove managed labels.
- name string
- Human-friendly automation name.
- notifications
Automation
Notifications - Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
- schedule
Cron string - Standard 5-field cron expression, or multiple expressions separated by semicolons. For example
0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart. - schedule
Ends stringAt - Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
- schedule
Timezone string - IANA timezone the schedule is interpreted in, for example
Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations. - scope string
- Visibility.
userkeeps the automation private to its creator;tenantshares it with everybody in the org. - triggers
{[key: string]: Automation
Triggers Args} - Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
- prompt str
- The prompt sent to Assistant on each run. Prefix with
/<skill-name>to start from a skill. - context_
items str - Context items attached to the prompt, as a JSON array string.
- description str
- Optional description.
- enabled bool
- Whether the automation runs on its schedule. Disabled automations can still be run manually.
- execution_
mode str - Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
- labels Mapping[str, str]
- Operator labels. Omit or use an empty map to remove managed labels.
- name str
- Human-friendly automation name.
- notifications
Automation
Notifications Args - Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
- schedule_
cron str - Standard 5-field cron expression, or multiple expressions separated by semicolons. For example
0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart. - schedule_
ends_ strat - Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
- schedule_
timezone str - IANA timezone the schedule is interpreted in, for example
Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations. - scope str
- Visibility.
userkeeps the automation private to its creator;tenantshares it with everybody in the org. - triggers
Mapping[str, Automation
Triggers Args] - Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
- prompt String
- The prompt sent to Assistant on each run. Prefix with
/<skill-name>to start from a skill. - context
Items String - Context items attached to the prompt, as a JSON array string.
- description String
- Optional description.
- enabled Boolean
- Whether the automation runs on its schedule. Disabled automations can still be run manually.
- execution
Mode String - Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
- labels Map<String>
- Operator labels. Omit or use an empty map to remove managed labels.
- name String
- Human-friendly automation name.
- notifications Property Map
- Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
- schedule
Cron String - Standard 5-field cron expression, or multiple expressions separated by semicolons. For example
0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart. - schedule
Ends StringAt - Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
- schedule
Timezone String - IANA timezone the schedule is interpreted in, for example
Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations. - scope String
- Visibility.
userkeeps the automation private to its creator;tenantshares it with everybody in the org. - triggers Map<Property Map>
- Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
Outputs
All input properties are implicitly available as output properties. Additionally, the Automation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Next
Run stringAt - Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
- Id string
- The provider-assigned unique ID for this managed resource.
- Next
Run stringAt - Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
- id string
- The provider-assigned unique ID for this managed resource.
- next_
run_ stringat - Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
- id String
- The provider-assigned unique ID for this managed resource.
- next
Run StringAt - Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
- id string
- The provider-assigned unique ID for this managed resource.
- next
Run stringAt - Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
- id str
- The provider-assigned unique ID for this managed resource.
- next_
run_ strat - Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
- id String
- The provider-assigned unique ID for this managed resource.
- next
Run StringAt - Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
Look up Existing Automation Resource
Get an existing Automation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AutomationState, opts?: CustomResourceOptions): Automation@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
context_items: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
execution_mode: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
next_run_at: Optional[str] = None,
notifications: Optional[AutomationNotificationsArgs] = None,
prompt: Optional[str] = None,
schedule_cron: Optional[str] = None,
schedule_ends_at: Optional[str] = None,
schedule_timezone: Optional[str] = None,
scope: Optional[str] = None,
triggers: Optional[Mapping[str, AutomationTriggersArgs]] = None) -> Automationfunc GetAutomation(ctx *Context, name string, id IDInput, state *AutomationState, opts ...ResourceOption) (*Automation, error)public static Automation Get(string name, Input<string> id, AutomationState? state, CustomResourceOptions? opts = null)public static Automation get(String name, Output<String> id, AutomationState state, CustomResourceOptions options)resources: existingAutomation: type: grafana:assistant:Automation get: id: ${id}import {
to = grafana_assistant_automation.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state AutomationState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state AutomationState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state AutomationState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state AutomationState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Context
Items string - Context items attached to the prompt, as a JSON array string.
- Description string
- Optional description.
- Enabled bool
- Whether the automation runs on its schedule. Disabled automations can still be run manually.
- Execution
Mode string - Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
- Labels Dictionary<string, string>
- Operator labels. Omit or use an empty map to remove managed labels.
- Name string
- Human-friendly automation name.
- Next
Run stringAt - Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
- Notifications
Pulumiverse.
Grafana. Assistant. Inputs. Automation Notifications - Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
- Prompt string
- The prompt sent to Assistant on each run. Prefix with
/<skill-name>to start from a skill. - Schedule
Cron string - Standard 5-field cron expression, or multiple expressions separated by semicolons. For example
0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart. - Schedule
Ends stringAt - Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
- Schedule
Timezone string - IANA timezone the schedule is interpreted in, for example
Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations. - Scope string
- Visibility.
userkeeps the automation private to its creator;tenantshares it with everybody in the org. - Triggers
Dictionary<string, Pulumiverse.
Grafana. Assistant. Inputs. Automation Triggers Args> - Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
- Context
Items string - Context items attached to the prompt, as a JSON array string.
- Description string
- Optional description.
- Enabled bool
- Whether the automation runs on its schedule. Disabled automations can still be run manually.
- Execution
Mode string - Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
- Labels map[string]string
- Operator labels. Omit or use an empty map to remove managed labels.
- Name string
- Human-friendly automation name.
- Next
Run stringAt - Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
- Notifications
Automation
Notifications Args - Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
- Prompt string
- The prompt sent to Assistant on each run. Prefix with
/<skill-name>to start from a skill. - Schedule
Cron string - Standard 5-field cron expression, or multiple expressions separated by semicolons. For example
0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart. - Schedule
Ends stringAt - Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
- Schedule
Timezone string - IANA timezone the schedule is interpreted in, for example
Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations. - Scope string
- Visibility.
userkeeps the automation private to its creator;tenantshares it with everybody in the org. - Triggers
map[string]Automation
Triggers Args - Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
- context_
items string - Context items attached to the prompt, as a JSON array string.
- description string
- Optional description.
- enabled bool
- Whether the automation runs on its schedule. Disabled automations can still be run manually.
- execution_
mode string - Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
- labels map(string)
- Operator labels. Omit or use an empty map to remove managed labels.
- name string
- Human-friendly automation name.
- next_
run_ stringat - Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
- notifications object
- Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
- prompt string
- The prompt sent to Assistant on each run. Prefix with
/<skill-name>to start from a skill. - schedule_
cron string - Standard 5-field cron expression, or multiple expressions separated by semicolons. For example
0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart. - schedule_
ends_ stringat - Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
- schedule_
timezone string - IANA timezone the schedule is interpreted in, for example
Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations. - scope string
- Visibility.
userkeeps the automation private to its creator;tenantshares it with everybody in the org. - triggers map(object)
- Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
- context
Items String - Context items attached to the prompt, as a JSON array string.
- description String
- Optional description.
- enabled Boolean
- Whether the automation runs on its schedule. Disabled automations can still be run manually.
- execution
Mode String - Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
- labels Map<String,String>
- Operator labels. Omit or use an empty map to remove managed labels.
- name String
- Human-friendly automation name.
- next
Run StringAt - Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
- notifications
Automation
Notifications - Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
- prompt String
- The prompt sent to Assistant on each run. Prefix with
/<skill-name>to start from a skill. - schedule
Cron String - Standard 5-field cron expression, or multiple expressions separated by semicolons. For example
0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart. - schedule
Ends StringAt - Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
- schedule
Timezone String - IANA timezone the schedule is interpreted in, for example
Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations. - scope String
- Visibility.
userkeeps the automation private to its creator;tenantshares it with everybody in the org. - triggers
Map<String,Automation
Triggers Args> - Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
- context
Items string - Context items attached to the prompt, as a JSON array string.
- description string
- Optional description.
- enabled boolean
- Whether the automation runs on its schedule. Disabled automations can still be run manually.
- execution
Mode string - Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
- labels {[key: string]: string}
- Operator labels. Omit or use an empty map to remove managed labels.
- name string
- Human-friendly automation name.
- next
Run stringAt - Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
- notifications
Automation
Notifications - Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
- prompt string
- The prompt sent to Assistant on each run. Prefix with
/<skill-name>to start from a skill. - schedule
Cron string - Standard 5-field cron expression, or multiple expressions separated by semicolons. For example
0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart. - schedule
Ends stringAt - Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
- schedule
Timezone string - IANA timezone the schedule is interpreted in, for example
Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations. - scope string
- Visibility.
userkeeps the automation private to its creator;tenantshares it with everybody in the org. - triggers
{[key: string]: Automation
Triggers Args} - Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
- context_
items str - Context items attached to the prompt, as a JSON array string.
- description str
- Optional description.
- enabled bool
- Whether the automation runs on its schedule. Disabled automations can still be run manually.
- execution_
mode str - Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
- labels Mapping[str, str]
- Operator labels. Omit or use an empty map to remove managed labels.
- name str
- Human-friendly automation name.
- next_
run_ strat - Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
- notifications
Automation
Notifications Args - Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
- prompt str
- The prompt sent to Assistant on each run. Prefix with
/<skill-name>to start from a skill. - schedule_
cron str - Standard 5-field cron expression, or multiple expressions separated by semicolons. For example
0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart. - schedule_
ends_ strat - Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
- schedule_
timezone str - IANA timezone the schedule is interpreted in, for example
Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations. - scope str
- Visibility.
userkeeps the automation private to its creator;tenantshares it with everybody in the org. - triggers
Mapping[str, Automation
Triggers Args] - Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
- context
Items String - Context items attached to the prompt, as a JSON array string.
- description String
- Optional description.
- enabled Boolean
- Whether the automation runs on its schedule. Disabled automations can still be run manually.
- execution
Mode String - Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
- labels Map<String>
- Operator labels. Omit or use an empty map to remove managed labels.
- name String
- Human-friendly automation name.
- next
Run StringAt - Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
- notifications Property Map
- Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
- prompt String
- The prompt sent to Assistant on each run. Prefix with
/<skill-name>to start from a skill. - schedule
Cron String - Standard 5-field cron expression, or multiple expressions separated by semicolons. For example
0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart. - schedule
Ends StringAt - Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
- schedule
Timezone String - IANA timezone the schedule is interpreted in, for example
Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations. - scope String
- Visibility.
userkeeps the automation private to its creator;tenantshares it with everybody in the org. - triggers Map<Property Map>
- Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
Supporting Types
AutomationNotifications, AutomationNotificationsArgs
- Email
Pulumiverse.
Grafana. Assistant. Inputs. Automation Notifications Email - Email delivery. Email notifications must be enabled for the stack.
- Slack
Pulumiverse.
Grafana. Assistant. Inputs. Automation Notifications Slack - Slack delivery. Requires the Slack workspace to already be connected to the stack, which is a one-time manual step in Assistant settings.
- Email
Automation
Notifications Email - Email delivery. Email notifications must be enabled for the stack.
- Slack
Automation
Notifications Slack - Slack delivery. Requires the Slack workspace to already be connected to the stack, which is a one-time manual step in Assistant settings.
- email
Automation
Notifications Email - Email delivery. Email notifications must be enabled for the stack.
- slack
Automation
Notifications Slack - Slack delivery. Requires the Slack workspace to already be connected to the stack, which is a one-time manual step in Assistant settings.
- email
Automation
Notifications Email - Email delivery. Email notifications must be enabled for the stack.
- slack
Automation
Notifications Slack - Slack delivery. Requires the Slack workspace to already be connected to the stack, which is a one-time manual step in Assistant settings.
- email
Automation
Notifications Email - Email delivery. Email notifications must be enabled for the stack.
- slack
Automation
Notifications Slack - Slack delivery. Requires the Slack workspace to already be connected to the stack, which is a one-time manual step in Assistant settings.
- email Property Map
- Email delivery. Email notifications must be enabled for the stack.
- slack Property Map
- Slack delivery. Requires the Slack workspace to already be connected to the stack, which is a one-time manual step in Assistant settings.
AutomationNotificationsEmail, AutomationNotificationsEmailArgs
- addresses list(string)
- Recipient email addresses, up to 25.
- enabled bool
- Whether email notifications are sent.
- notify_
ons list(string) - Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of
completed,failed,needsApproval. Notifications still require enabled = true.
- addresses Sequence[str]
- Recipient email addresses, up to 25.
- enabled bool
- Whether email notifications are sent.
- notify_
ons Sequence[str] - Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of
completed,failed,needsApproval. Notifications still require enabled = true.
AutomationNotificationsSlack, AutomationNotificationsSlackArgs
- Enabled bool
- Whether Slack notifications are sent.
- Notify
Ons List<string> - Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of
completed,failed,needsApproval. Notifications still require enabled = true. - Target
Pulumiverse.
Grafana. Assistant. Inputs. Automation Notifications Slack Target - Where the notification is posted.
- Enabled bool
- Whether Slack notifications are sent.
- Notify
Ons []string - Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of
completed,failed,needsApproval. Notifications still require enabled = true. - Target
Automation
Notifications Slack Target - Where the notification is posted.
- enabled bool
- Whether Slack notifications are sent.
- notify_
ons list(string) - Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of
completed,failed,needsApproval. Notifications still require enabled = true. - target object
- Where the notification is posted.
- enabled Boolean
- Whether Slack notifications are sent.
- notify
Ons List<String> - Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of
completed,failed,needsApproval. Notifications still require enabled = true. - target
Automation
Notifications Slack Target - Where the notification is posted.
- enabled boolean
- Whether Slack notifications are sent.
- notify
Ons string[] - Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of
completed,failed,needsApproval. Notifications still require enabled = true. - target
Automation
Notifications Slack Target - Where the notification is posted.
- enabled bool
- Whether Slack notifications are sent.
- notify_
ons Sequence[str] - Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of
completed,failed,needsApproval. Notifications still require enabled = true. - target
Automation
Notifications Slack Target - Where the notification is posted.
- enabled Boolean
- Whether Slack notifications are sent.
- notify
Ons List<String> - Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of
completed,failed,needsApproval. Notifications still require enabled = true. - target Property Map
- Where the notification is posted.
AutomationNotificationsSlackTarget, AutomationNotificationsSlackTargetArgs
- Channel
Id string - Slack channel ID. Required for a
channeltarget. - Team
Id string - Slack workspace (team) ID. Omit to let Assistant resolve it; automatically resolved IDs are not managed unless configured.
- Type string
- Target type. One of
channelordm. Required when atargetblock is present. - User
Id string - Slack user ID for a
dmtarget. Omit to use the creator’s verified Slack mapping.
- Channel
Id string - Slack channel ID. Required for a
channeltarget. - Team
Id string - Slack workspace (team) ID. Omit to let Assistant resolve it; automatically resolved IDs are not managed unless configured.
- Type string
- Target type. One of
channelordm. Required when atargetblock is present. - User
Id string - Slack user ID for a
dmtarget. Omit to use the creator’s verified Slack mapping.
- channel_
id string - Slack channel ID. Required for a
channeltarget. - team_
id string - Slack workspace (team) ID. Omit to let Assistant resolve it; automatically resolved IDs are not managed unless configured.
- type string
- Target type. One of
channelordm. Required when atargetblock is present. - user_
id string - Slack user ID for a
dmtarget. Omit to use the creator’s verified Slack mapping.
- channel
Id String - Slack channel ID. Required for a
channeltarget. - team
Id String - Slack workspace (team) ID. Omit to let Assistant resolve it; automatically resolved IDs are not managed unless configured.
- type String
- Target type. One of
channelordm. Required when atargetblock is present. - user
Id String - Slack user ID for a
dmtarget. Omit to use the creator’s verified Slack mapping.
- channel
Id string - Slack channel ID. Required for a
channeltarget. - team
Id string - Slack workspace (team) ID. Omit to let Assistant resolve it; automatically resolved IDs are not managed unless configured.
- type string
- Target type. One of
channelordm. Required when atargetblock is present. - user
Id string - Slack user ID for a
dmtarget. Omit to use the creator’s verified Slack mapping.
- channel_
id str - Slack channel ID. Required for a
channeltarget. - team_
id str - Slack workspace (team) ID. Omit to let Assistant resolve it; automatically resolved IDs are not managed unless configured.
- type str
- Target type. One of
channelordm. Required when atargetblock is present. - user_
id str - Slack user ID for a
dmtarget. Omit to use the creator’s verified Slack mapping.
- channel
Id String - Slack channel ID. Required for a
channeltarget. - team
Id String - Slack workspace (team) ID. Omit to let Assistant resolve it; automatically resolved IDs are not managed unless configured.
- type String
- Target type. One of
channelordm. Required when atargetblock is present. - user
Id String - Slack user ID for a
dmtarget. Omit to use the creator’s verified Slack mapping.
AutomationTriggers, AutomationTriggersArgs
Import
terraform import grafana_assistant_automation.name "{{ id }}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafanaTerraform Provider.
Grafanapublished on Monday, Nov 9, 2026 by pulumiverse