1. Packages
  2. InfluxDB
  3. API Docs
  4. Task
InfluxDB v1.5.0 published on Wednesday, Jul 2, 2025 by komminarlabs

influxdb.Task

Explore with Pulumi AI

influxdb logo
InfluxDB v1.5.0 published on Wednesday, Jul 2, 2025 by komminarlabs

    Creates and manages a task using Flux scripts with task options.

    Task Configuration

    Tasks are configured using Flux scripts that include an option task block. All task configuration, including scheduling, is defined within the Flux script itself. For more information on Flux scripts and task options, refer to the InfluxDB documentation on tasks.

    Task Options in Flux

    The Flux script must include an option task block that defines the task’s behavior. For detailed information about all available task options, see the InfluxDB documentation on defining task options.

    Example configuration with cron scheduling:

    import * as pulumi from "@pulumi/pulumi";
    import * as influxdb from "@komminarlabs/influxdb";
    
    const exampleCron = new influxdb.Task("example_cron", {
        orgId: orgId,
        flux: `option task = {
      name: "Daily Processing Task",
      cron: "0 0 * * *",        # Run daily at midnight
      offset: 30s,              # Delay execution by 30 seconds
    }
        
    from(bucket: "my-bucket")
      |> range(start: -24h)
      |> filter(fn: (r) => r._measurement == "temperature")
      |> mean()
      |> to(bucket: "daily-averages")
    `,
    });
    
    import pulumi
    import komminarlabs_influxdb as influxdb
    
    example_cron = influxdb.Task("example_cron",
        org_id=org_id,
        flux="""option task = {
      name: "Daily Processing Task",
      cron: "0 0 * * *",        # Run daily at midnight
      offset: 30s,              # Delay execution by 30 seconds
    }
        
    from(bucket: "my-bucket")
      |> range(start: -24h)
      |> filter(fn: (r) => r._measurement == "temperature")
      |> mean()
      |> to(bucket: "daily-averages")
    """)
    
    package main
    
    import (
    	"github.com/komminarlabs/pulumi-influxdb/sdk/go/influxdb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := influxdb.NewTask(ctx, "example_cron", &influxdb.TaskArgs{
    			OrgId: pulumi.Any(orgId),
    			Flux: pulumi.String(`option task = {
      name: "Daily Processing Task",
      cron: "0 0 * * *",        # Run daily at midnight
      offset: 30s,              # Delay execution by 30 seconds
    }
        
    from(bucket: "my-bucket")
      |> range(start: -24h)
      |> filter(fn: (r) => r._measurement == "temperature")
      |> mean()
      |> to(bucket: "daily-averages")
    `),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using InfluxDB = KomminarLabs.InfluxDB;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleCron = new InfluxDB.Task("example_cron", new()
        {
            OrgId = orgId,
            Flux = @"option task = {
      name: ""Daily Processing Task"",
      cron: ""0 0 * * *"",        # Run daily at midnight
      offset: 30s,              # Delay execution by 30 seconds
    }
        
    from(bucket: ""my-bucket"")
      |> range(start: -24h)
      |> filter(fn: (r) => r._measurement == ""temperature"")
      |> mean()
      |> to(bucket: ""daily-averages"")
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.influxdb.Task;
    import com.pulumi.influxdb.TaskArgs;
    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 exampleCron = new Task("exampleCron", TaskArgs.builder()
                .orgId(orgId)
                .flux("""
    option task = {
      name: "Daily Processing Task",
      cron: "0 0 * * *",        # Run daily at midnight
      offset: 30s,              # Delay execution by 30 seconds
    }
        
    from(bucket: "my-bucket")
      |> range(start: -24h)
      |> filter(fn: (r) => r._measurement == "temperature")
      |> mean()
      |> to(bucket: "daily-averages")
                """)
                .build());
    
        }
    }
    
    resources:
      exampleCron:
        type: influxdb:Task
        name: example_cron
        properties:
          orgId: ${orgId}
          flux: "option task = {\n  name: \"Daily Processing Task\",\n  cron: \"0 0 * * *\",        # Run daily at midnight\n  offset: 30s,              # Delay execution by 30 seconds\n}\n    \nfrom(bucket: \"my-bucket\")\n  |> range(start: -24h)\n  |> filter(fn: (r) => r._measurement == \"temperature\")\n  |> mean()\n  |> to(bucket: \"daily-averages\")\n"
    

    Example configuration with interval scheduling:

    import * as pulumi from "@pulumi/pulumi";
    import * as influxdb from "@komminarlabs/influxdb";
    
    const exampleInterval = new influxdb.Task("example_interval", {
        orgId: orgId,
        flux: `option task = {
      name: "Hourly Processing Task",
      every: 1h,                # Run every hour
      offset: 10m,              # Start 10 minutes into each hour
    }
        
    from(bucket: "my-bucket")
      |> range(start: -1h)
      |> filter(fn: (r) => r._measurement == "cpu")
      |> mean()
      |> to(bucket: "hourly-stats")
    `,
    });
    
    import pulumi
    import komminarlabs_influxdb as influxdb
    
    example_interval = influxdb.Task("example_interval",
        org_id=org_id,
        flux="""option task = {
      name: "Hourly Processing Task",
      every: 1h,                # Run every hour
      offset: 10m,              # Start 10 minutes into each hour
    }
        
    from(bucket: "my-bucket")
      |> range(start: -1h)
      |> filter(fn: (r) => r._measurement == "cpu")
      |> mean()
      |> to(bucket: "hourly-stats")
    """)
    
    package main
    
    import (
    	"github.com/komminarlabs/pulumi-influxdb/sdk/go/influxdb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := influxdb.NewTask(ctx, "example_interval", &influxdb.TaskArgs{
    			OrgId: pulumi.Any(orgId),
    			Flux: pulumi.String(`option task = {
      name: "Hourly Processing Task",
      every: 1h,                # Run every hour
      offset: 10m,              # Start 10 minutes into each hour
    }
        
    from(bucket: "my-bucket")
      |> range(start: -1h)
      |> filter(fn: (r) => r._measurement == "cpu")
      |> mean()
      |> to(bucket: "hourly-stats")
    `),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using InfluxDB = KomminarLabs.InfluxDB;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleInterval = new InfluxDB.Task("example_interval", new()
        {
            OrgId = orgId,
            Flux = @"option task = {
      name: ""Hourly Processing Task"",
      every: 1h,                # Run every hour
      offset: 10m,              # Start 10 minutes into each hour
    }
        
    from(bucket: ""my-bucket"")
      |> range(start: -1h)
      |> filter(fn: (r) => r._measurement == ""cpu"")
      |> mean()
      |> to(bucket: ""hourly-stats"")
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.influxdb.Task;
    import com.pulumi.influxdb.TaskArgs;
    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 exampleInterval = new Task("exampleInterval", TaskArgs.builder()
                .orgId(orgId)
                .flux("""
    option task = {
      name: "Hourly Processing Task",
      every: 1h,                # Run every hour
      offset: 10m,              # Start 10 minutes into each hour
    }
        
    from(bucket: "my-bucket")
      |> range(start: -1h)
      |> filter(fn: (r) => r._measurement == "cpu")
      |> mean()
      |> to(bucket: "hourly-stats")
                """)
                .build());
    
        }
    }
    
    resources:
      exampleInterval:
        type: influxdb:Task
        name: example_interval
        properties:
          orgId: ${orgId}
          flux: "option task = {\n  name: \"Hourly Processing Task\",\n  every: 1h,                # Run every hour\n  offset: 10m,              # Start 10 minutes into each hour\n}\n    \nfrom(bucket: \"my-bucket\")\n  |> range(start: -1h)\n  |> filter(fn: (r) => r._measurement == \"cpu\")\n  |> mean()\n  |> to(bucket: \"hourly-stats\")\n"
    

    Create Task Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Task(name: string, args: TaskArgs, opts?: CustomResourceOptions);
    @overload
    def Task(resource_name: str,
             args: TaskArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Task(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             flux: Optional[str] = None,
             org_id: Optional[str] = None,
             status: Optional[str] = None)
    func NewTask(ctx *Context, name string, args TaskArgs, opts ...ResourceOption) (*Task, error)
    public Task(string name, TaskArgs args, CustomResourceOptions? opts = null)
    public Task(String name, TaskArgs args)
    public Task(String name, TaskArgs args, CustomResourceOptions options)
    
    type: influxdb:Task
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TaskArgs
    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 TaskArgs
    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 TaskArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TaskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TaskArgs
    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 taskResource = new InfluxDB.Task("taskResource", new()
    {
        Flux = "string",
        OrgId = "string",
        Status = "string",
    });
    
    example, err := influxdb.NewTask(ctx, "taskResource", &influxdb.TaskArgs{
    	Flux:   pulumi.String("string"),
    	OrgId:  pulumi.String("string"),
    	Status: pulumi.String("string"),
    })
    
    var taskResource = new Task("taskResource", TaskArgs.builder()
        .flux("string")
        .orgId("string")
        .status("string")
        .build());
    
    task_resource = influxdb.Task("taskResource",
        flux="string",
        org_id="string",
        status="string")
    
    const taskResource = new influxdb.Task("taskResource", {
        flux: "string",
        orgId: "string",
        status: "string",
    });
    
    type: influxdb:Task
    properties:
        flux: string
        orgId: string
        status: string
    

    Task 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 Task resource accepts the following input properties:

    Flux string
    The Flux script that the task executes.
    OrgId string
    The organization ID. Specifies the organization that owns the task.
    Status string
    The status of the task (active or inactive).
    Flux string
    The Flux script that the task executes.
    OrgId string
    The organization ID. Specifies the organization that owns the task.
    Status string
    The status of the task (active or inactive).
    flux String
    The Flux script that the task executes.
    orgId String
    The organization ID. Specifies the organization that owns the task.
    status String
    The status of the task (active or inactive).
    flux string
    The Flux script that the task executes.
    orgId string
    The organization ID. Specifies the organization that owns the task.
    status string
    The status of the task (active or inactive).
    flux str
    The Flux script that the task executes.
    org_id str
    The organization ID. Specifies the organization that owns the task.
    status str
    The status of the task (active or inactive).
    flux String
    The Flux script that the task executes.
    orgId String
    The organization ID. Specifies the organization that owns the task.
    status String
    The status of the task (active or inactive).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Task resource produces the following output properties:

    AuthorizationId string
    The authorization ID. Specifies the authorization used when the task communicates with the query engine.
    CreatedAt string
    The timestamp when the task was created.
    Cron string
    The Cron expression that defines the schedule on which the task runs.
    Description string
    The description of the task.
    Every string
    The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Labels List<KomminarLabs.InfluxDB.Outputs.TaskLabel>
    The labels associated with the task.
    LastRunError string
    The error message from the last task run, if any.
    LastRunStatus string
    The status of the last task run.
    LatestCompleted string
    A timestamp RFC3339 date/time format of the latest scheduled and completed run.
    Links KomminarLabs.InfluxDB.Outputs.TaskLinks
    Links related to the task.
    Name string
    The name of the task.
    Offset string
    The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
    Org string
    The organization name. Specifies the organization that owns the task.
    OwnerId string
    The user ID. Specifies the owner of the task.
    UpdatedAt string
    The timestamp when the task was last updated.
    AuthorizationId string
    The authorization ID. Specifies the authorization used when the task communicates with the query engine.
    CreatedAt string
    The timestamp when the task was created.
    Cron string
    The Cron expression that defines the schedule on which the task runs.
    Description string
    The description of the task.
    Every string
    The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Labels []TaskLabel
    The labels associated with the task.
    LastRunError string
    The error message from the last task run, if any.
    LastRunStatus string
    The status of the last task run.
    LatestCompleted string
    A timestamp RFC3339 date/time format of the latest scheduled and completed run.
    Links TaskLinks
    Links related to the task.
    Name string
    The name of the task.
    Offset string
    The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
    Org string
    The organization name. Specifies the organization that owns the task.
    OwnerId string
    The user ID. Specifies the owner of the task.
    UpdatedAt string
    The timestamp when the task was last updated.
    authorizationId String
    The authorization ID. Specifies the authorization used when the task communicates with the query engine.
    createdAt String
    The timestamp when the task was created.
    cron String
    The Cron expression that defines the schedule on which the task runs.
    description String
    The description of the task.
    every String
    The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
    id String
    The provider-assigned unique ID for this managed resource.
    labels List<TaskLabel>
    The labels associated with the task.
    lastRunError String
    The error message from the last task run, if any.
    lastRunStatus String
    The status of the last task run.
    latestCompleted String
    A timestamp RFC3339 date/time format of the latest scheduled and completed run.
    links TaskLinks
    Links related to the task.
    name String
    The name of the task.
    offset String
    The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
    org String
    The organization name. Specifies the organization that owns the task.
    ownerId String
    The user ID. Specifies the owner of the task.
    updatedAt String
    The timestamp when the task was last updated.
    authorizationId string
    The authorization ID. Specifies the authorization used when the task communicates with the query engine.
    createdAt string
    The timestamp when the task was created.
    cron string
    The Cron expression that defines the schedule on which the task runs.
    description string
    The description of the task.
    every string
    The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
    id string
    The provider-assigned unique ID for this managed resource.
    labels TaskLabel[]
    The labels associated with the task.
    lastRunError string
    The error message from the last task run, if any.
    lastRunStatus string
    The status of the last task run.
    latestCompleted string
    A timestamp RFC3339 date/time format of the latest scheduled and completed run.
    links TaskLinks
    Links related to the task.
    name string
    The name of the task.
    offset string
    The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
    org string
    The organization name. Specifies the organization that owns the task.
    ownerId string
    The user ID. Specifies the owner of the task.
    updatedAt string
    The timestamp when the task was last updated.
    authorization_id str
    The authorization ID. Specifies the authorization used when the task communicates with the query engine.
    created_at str
    The timestamp when the task was created.
    cron str
    The Cron expression that defines the schedule on which the task runs.
    description str
    The description of the task.
    every str
    The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
    id str
    The provider-assigned unique ID for this managed resource.
    labels Sequence[TaskLabel]
    The labels associated with the task.
    last_run_error str
    The error message from the last task run, if any.
    last_run_status str
    The status of the last task run.
    latest_completed str
    A timestamp RFC3339 date/time format of the latest scheduled and completed run.
    links TaskLinks
    Links related to the task.
    name str
    The name of the task.
    offset str
    The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
    org str
    The organization name. Specifies the organization that owns the task.
    owner_id str
    The user ID. Specifies the owner of the task.
    updated_at str
    The timestamp when the task was last updated.
    authorizationId String
    The authorization ID. Specifies the authorization used when the task communicates with the query engine.
    createdAt String
    The timestamp when the task was created.
    cron String
    The Cron expression that defines the schedule on which the task runs.
    description String
    The description of the task.
    every String
    The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
    id String
    The provider-assigned unique ID for this managed resource.
    labels List<Property Map>
    The labels associated with the task.
    lastRunError String
    The error message from the last task run, if any.
    lastRunStatus String
    The status of the last task run.
    latestCompleted String
    A timestamp RFC3339 date/time format of the latest scheduled and completed run.
    links Property Map
    Links related to the task.
    name String
    The name of the task.
    offset String
    The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
    org String
    The organization name. Specifies the organization that owns the task.
    ownerId String
    The user ID. Specifies the owner of the task.
    updatedAt String
    The timestamp when the task was last updated.

    Look up Existing Task Resource

    Get an existing Task 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?: TaskState, opts?: CustomResourceOptions): Task
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            authorization_id: Optional[str] = None,
            created_at: Optional[str] = None,
            cron: Optional[str] = None,
            description: Optional[str] = None,
            every: Optional[str] = None,
            flux: Optional[str] = None,
            labels: Optional[Sequence[TaskLabelArgs]] = None,
            last_run_error: Optional[str] = None,
            last_run_status: Optional[str] = None,
            latest_completed: Optional[str] = None,
            links: Optional[TaskLinksArgs] = None,
            name: Optional[str] = None,
            offset: Optional[str] = None,
            org: Optional[str] = None,
            org_id: Optional[str] = None,
            owner_id: Optional[str] = None,
            status: Optional[str] = None,
            updated_at: Optional[str] = None) -> Task
    func GetTask(ctx *Context, name string, id IDInput, state *TaskState, opts ...ResourceOption) (*Task, error)
    public static Task Get(string name, Input<string> id, TaskState? state, CustomResourceOptions? opts = null)
    public static Task get(String name, Output<String> id, TaskState state, CustomResourceOptions options)
    resources:  _:    type: influxdb:Task    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AuthorizationId string
    The authorization ID. Specifies the authorization used when the task communicates with the query engine.
    CreatedAt string
    The timestamp when the task was created.
    Cron string
    The Cron expression that defines the schedule on which the task runs.
    Description string
    The description of the task.
    Every string
    The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
    Flux string
    The Flux script that the task executes.
    Labels List<KomminarLabs.InfluxDB.Inputs.TaskLabel>
    The labels associated with the task.
    LastRunError string
    The error message from the last task run, if any.
    LastRunStatus string
    The status of the last task run.
    LatestCompleted string
    A timestamp RFC3339 date/time format of the latest scheduled and completed run.
    Links KomminarLabs.InfluxDB.Inputs.TaskLinks
    Links related to the task.
    Name string
    The name of the task.
    Offset string
    The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
    Org string
    The organization name. Specifies the organization that owns the task.
    OrgId string
    The organization ID. Specifies the organization that owns the task.
    OwnerId string
    The user ID. Specifies the owner of the task.
    Status string
    The status of the task (active or inactive).
    UpdatedAt string
    The timestamp when the task was last updated.
    AuthorizationId string
    The authorization ID. Specifies the authorization used when the task communicates with the query engine.
    CreatedAt string
    The timestamp when the task was created.
    Cron string
    The Cron expression that defines the schedule on which the task runs.
    Description string
    The description of the task.
    Every string
    The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
    Flux string
    The Flux script that the task executes.
    Labels []TaskLabelArgs
    The labels associated with the task.
    LastRunError string
    The error message from the last task run, if any.
    LastRunStatus string
    The status of the last task run.
    LatestCompleted string
    A timestamp RFC3339 date/time format of the latest scheduled and completed run.
    Links TaskLinksArgs
    Links related to the task.
    Name string
    The name of the task.
    Offset string
    The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
    Org string
    The organization name. Specifies the organization that owns the task.
    OrgId string
    The organization ID. Specifies the organization that owns the task.
    OwnerId string
    The user ID. Specifies the owner of the task.
    Status string
    The status of the task (active or inactive).
    UpdatedAt string
    The timestamp when the task was last updated.
    authorizationId String
    The authorization ID. Specifies the authorization used when the task communicates with the query engine.
    createdAt String
    The timestamp when the task was created.
    cron String
    The Cron expression that defines the schedule on which the task runs.
    description String
    The description of the task.
    every String
    The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
    flux String
    The Flux script that the task executes.
    labels List<TaskLabel>
    The labels associated with the task.
    lastRunError String
    The error message from the last task run, if any.
    lastRunStatus String
    The status of the last task run.
    latestCompleted String
    A timestamp RFC3339 date/time format of the latest scheduled and completed run.
    links TaskLinks
    Links related to the task.
    name String
    The name of the task.
    offset String
    The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
    org String
    The organization name. Specifies the organization that owns the task.
    orgId String
    The organization ID. Specifies the organization that owns the task.
    ownerId String
    The user ID. Specifies the owner of the task.
    status String
    The status of the task (active or inactive).
    updatedAt String
    The timestamp when the task was last updated.
    authorizationId string
    The authorization ID. Specifies the authorization used when the task communicates with the query engine.
    createdAt string
    The timestamp when the task was created.
    cron string
    The Cron expression that defines the schedule on which the task runs.
    description string
    The description of the task.
    every string
    The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
    flux string
    The Flux script that the task executes.
    labels TaskLabel[]
    The labels associated with the task.
    lastRunError string
    The error message from the last task run, if any.
    lastRunStatus string
    The status of the last task run.
    latestCompleted string
    A timestamp RFC3339 date/time format of the latest scheduled and completed run.
    links TaskLinks
    Links related to the task.
    name string
    The name of the task.
    offset string
    The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
    org string
    The organization name. Specifies the organization that owns the task.
    orgId string
    The organization ID. Specifies the organization that owns the task.
    ownerId string
    The user ID. Specifies the owner of the task.
    status string
    The status of the task (active or inactive).
    updatedAt string
    The timestamp when the task was last updated.
    authorization_id str
    The authorization ID. Specifies the authorization used when the task communicates with the query engine.
    created_at str
    The timestamp when the task was created.
    cron str
    The Cron expression that defines the schedule on which the task runs.
    description str
    The description of the task.
    every str
    The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
    flux str
    The Flux script that the task executes.
    labels Sequence[TaskLabelArgs]
    The labels associated with the task.
    last_run_error str
    The error message from the last task run, if any.
    last_run_status str
    The status of the last task run.
    latest_completed str
    A timestamp RFC3339 date/time format of the latest scheduled and completed run.
    links TaskLinksArgs
    Links related to the task.
    name str
    The name of the task.
    offset str
    The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
    org str
    The organization name. Specifies the organization that owns the task.
    org_id str
    The organization ID. Specifies the organization that owns the task.
    owner_id str
    The user ID. Specifies the owner of the task.
    status str
    The status of the task (active or inactive).
    updated_at str
    The timestamp when the task was last updated.
    authorizationId String
    The authorization ID. Specifies the authorization used when the task communicates with the query engine.
    createdAt String
    The timestamp when the task was created.
    cron String
    The Cron expression that defines the schedule on which the task runs.
    description String
    The description of the task.
    every String
    The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
    flux String
    The Flux script that the task executes.
    labels List<Property Map>
    The labels associated with the task.
    lastRunError String
    The error message from the last task run, if any.
    lastRunStatus String
    The status of the last task run.
    latestCompleted String
    A timestamp RFC3339 date/time format of the latest scheduled and completed run.
    links Property Map
    Links related to the task.
    name String
    The name of the task.
    offset String
    The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
    org String
    The organization name. Specifies the organization that owns the task.
    orgId String
    The organization ID. Specifies the organization that owns the task.
    ownerId String
    The user ID. Specifies the owner of the task.
    status String
    The status of the task (active or inactive).
    updatedAt String
    The timestamp when the task was last updated.

    Supporting Types

    TaskLabel, TaskLabelArgs

    Id string
    The label ID.
    Name string
    The label name.
    OrgId string
    The organization ID.
    Properties Dictionary<string, string>
    The key-value pairs associated with this label.
    Id string
    The label ID.
    Name string
    The label name.
    OrgId string
    The organization ID.
    Properties map[string]string
    The key-value pairs associated with this label.
    id String
    The label ID.
    name String
    The label name.
    orgId String
    The organization ID.
    properties Map<String,String>
    The key-value pairs associated with this label.
    id string
    The label ID.
    name string
    The label name.
    orgId string
    The organization ID.
    properties {[key: string]: string}
    The key-value pairs associated with this label.
    id str
    The label ID.
    name str
    The label name.
    org_id str
    The organization ID.
    properties Mapping[str, str]
    The key-value pairs associated with this label.
    id String
    The label ID.
    name String
    The label name.
    orgId String
    The organization ID.
    properties Map<String>
    The key-value pairs associated with this label.
    Labels string
    URI of resource.
    Logs string
    URI of resource.
    Members string
    URI of resource.
    Owners string
    URI of resource.
    Runs string
    URI of resource.
    Self string
    URI of resource.
    Labels string
    URI of resource.
    Logs string
    URI of resource.
    Members string
    URI of resource.
    Owners string
    URI of resource.
    Runs string
    URI of resource.
    Self string
    URI of resource.
    labels String
    URI of resource.
    logs String
    URI of resource.
    members String
    URI of resource.
    owners String
    URI of resource.
    runs String
    URI of resource.
    self String
    URI of resource.
    labels string
    URI of resource.
    logs string
    URI of resource.
    members string
    URI of resource.
    owners string
    URI of resource.
    runs string
    URI of resource.
    self string
    URI of resource.
    labels str
    URI of resource.
    logs str
    URI of resource.
    members str
    URI of resource.
    owners str
    URI of resource.
    runs str
    URI of resource.
    self str
    URI of resource.
    labels String
    URI of resource.
    logs String
    URI of resource.
    members String
    URI of resource.
    owners String
    URI of resource.
    runs String
    URI of resource.
    self String
    URI of resource.

    Package Details

    Repository
    influxdb komminarlabs/pulumi-influxdb
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the influxdb Terraform Provider.
    influxdb logo
    InfluxDB v1.5.0 published on Wednesday, Jul 2, 2025 by komminarlabs