1. Packages
  2. Zenduty Provider
  3. API Docs
  4. PostIncidentTasks
zenduty 1.0.4 published on Wednesday, Apr 2, 2025 by zenduty

zenduty.PostIncidentTasks

Explore with Pulumi AI

Provides a Zenduty PostIncidentTasks Resource. This allows PostIncidentTasks to be created, updated, and deleted.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";

const exampleteam = new zenduty.Teams("exampleteam", {});
Copy
import pulumi
import pulumi_zenduty as zenduty

exampleteam = zenduty.Teams("exampleteam")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/zenduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := zenduty.NewTeams(ctx, "exampleteam", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;

return await Deployment.RunAsync(() => 
{
    var exampleteam = new Zenduty.Teams("exampleteam");

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.Teams;
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 exampleteam = new Teams("exampleteam");

    }
}
Copy
resources:
  exampleteam:
    type: zenduty:Teams
Copy
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";

const demotask = new zenduty.PostIncidentTasks("demotask", {
    title: "demo task template",
    description: "this is a description of demo task",
    teamId: zenduty_teams.exampleteam.id,
    dueInTime: "YYYY-MM-DD HH:MM",
    status: 0,
});
Copy
import pulumi
import pulumi_zenduty as zenduty

demotask = zenduty.PostIncidentTasks("demotask",
    title="demo task template",
    description="this is a description of demo task",
    team_id=zenduty_teams["exampleteam"]["id"],
    due_in_time="YYYY-MM-DD HH:MM",
    status=0)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/zenduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := zenduty.NewPostIncidentTasks(ctx, "demotask", &zenduty.PostIncidentTasksArgs{
			Title:       pulumi.String("demo task template"),
			Description: pulumi.String("this is a description of demo task"),
			TeamId:      pulumi.Any(zenduty_teams.Exampleteam.Id),
			DueInTime:   pulumi.String("YYYY-MM-DD HH:MM"),
			Status:      pulumi.Float64(0),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;

return await Deployment.RunAsync(() => 
{
    var demotask = new Zenduty.PostIncidentTasks("demotask", new()
    {
        Title = "demo task template",
        Description = "this is a description of demo task",
        TeamId = zenduty_teams.Exampleteam.Id,
        DueInTime = "YYYY-MM-DD HH:MM",
        Status = 0,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.PostIncidentTasks;
import com.pulumi.zenduty.PostIncidentTasksArgs;
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 demotask = new PostIncidentTasks("demotask", PostIncidentTasksArgs.builder()
            .title("demo task template")
            .description("this is a description of demo task")
            .teamId(zenduty_teams.exampleteam().id())
            .dueInTime("YYYY-MM-DD HH:MM")
            .status(0)
            .build());

    }
}
Copy
resources:
  demotask:
    type: zenduty:PostIncidentTasks
    properties:
      title: demo task template
      description: this is a description of demo task
      teamId: ${zenduty_teams.exampleteam.id}
      dueInTime: YYYY-MM-DD HH:MM
      status: 0
Copy

Create PostIncidentTasks Resource

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

Constructor syntax

new PostIncidentTasks(name: string, args: PostIncidentTasksArgs, opts?: CustomResourceOptions);
@overload
def PostIncidentTasks(resource_name: str,
                      args: PostIncidentTasksArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def PostIncidentTasks(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      description: Optional[str] = None,
                      team_id: Optional[str] = None,
                      title: Optional[str] = None,
                      assigned_to: Optional[str] = None,
                      due_in_time: Optional[str] = None,
                      post_incident_tasks_id: Optional[str] = None,
                      status: Optional[float] = None)
func NewPostIncidentTasks(ctx *Context, name string, args PostIncidentTasksArgs, opts ...ResourceOption) (*PostIncidentTasks, error)
public PostIncidentTasks(string name, PostIncidentTasksArgs args, CustomResourceOptions? opts = null)
public PostIncidentTasks(String name, PostIncidentTasksArgs args)
public PostIncidentTasks(String name, PostIncidentTasksArgs args, CustomResourceOptions options)
type: zenduty:PostIncidentTasks
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. PostIncidentTasksArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. PostIncidentTasksArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. PostIncidentTasksArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PostIncidentTasksArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PostIncidentTasksArgs
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 postIncidentTasksResource = new Zenduty.PostIncidentTasks("postIncidentTasksResource", new()
{
    Description = "string",
    TeamId = "string",
    Title = "string",
    AssignedTo = "string",
    DueInTime = "string",
    PostIncidentTasksId = "string",
    Status = 0,
});
Copy
example, err := zenduty.NewPostIncidentTasks(ctx, "postIncidentTasksResource", &zenduty.PostIncidentTasksArgs{
Description: pulumi.String("string"),
TeamId: pulumi.String("string"),
Title: pulumi.String("string"),
AssignedTo: pulumi.String("string"),
DueInTime: pulumi.String("string"),
PostIncidentTasksId: pulumi.String("string"),
Status: pulumi.Float64(0),
})
Copy
var postIncidentTasksResource = new PostIncidentTasks("postIncidentTasksResource", PostIncidentTasksArgs.builder()
    .description("string")
    .teamId("string")
    .title("string")
    .assignedTo("string")
    .dueInTime("string")
    .postIncidentTasksId("string")
    .status(0)
    .build());
Copy
post_incident_tasks_resource = zenduty.PostIncidentTasks("postIncidentTasksResource",
    description="string",
    team_id="string",
    title="string",
    assigned_to="string",
    due_in_time="string",
    post_incident_tasks_id="string",
    status=0)
Copy
const postIncidentTasksResource = new zenduty.PostIncidentTasks("postIncidentTasksResource", {
    description: "string",
    teamId: "string",
    title: "string",
    assignedTo: "string",
    dueInTime: "string",
    postIncidentTasksId: "string",
    status: 0,
});
Copy
type: zenduty:PostIncidentTasks
properties:
    assignedTo: string
    description: string
    dueInTime: string
    postIncidentTasksId: string
    status: 0
    teamId: string
    title: string
Copy

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

Description This property is required. string
The description of the task.
TeamId This property is required. string
The unique_id of team.
Title This property is required. string
The title of the task.
AssignedTo string
username of the user to assign the task
DueInTime string
The due time of the task in format YYYY-MM-DD HH:MM.
PostIncidentTasksId string
The ID of the Zenduty PostIncidentTasks.
Status double
the status of the task choices are 0 is To-Do,1 is In-Progress, 2- Done
Description This property is required. string
The description of the task.
TeamId This property is required. string
The unique_id of team.
Title This property is required. string
The title of the task.
AssignedTo string
username of the user to assign the task
DueInTime string
The due time of the task in format YYYY-MM-DD HH:MM.
PostIncidentTasksId string
The ID of the Zenduty PostIncidentTasks.
Status float64
the status of the task choices are 0 is To-Do,1 is In-Progress, 2- Done
description This property is required. String
The description of the task.
teamId This property is required. String
The unique_id of team.
title This property is required. String
The title of the task.
assignedTo String
username of the user to assign the task
dueInTime String
The due time of the task in format YYYY-MM-DD HH:MM.
postIncidentTasksId String
The ID of the Zenduty PostIncidentTasks.
status Double
the status of the task choices are 0 is To-Do,1 is In-Progress, 2- Done
description This property is required. string
The description of the task.
teamId This property is required. string
The unique_id of team.
title This property is required. string
The title of the task.
assignedTo string
username of the user to assign the task
dueInTime string
The due time of the task in format YYYY-MM-DD HH:MM.
postIncidentTasksId string
The ID of the Zenduty PostIncidentTasks.
status number
the status of the task choices are 0 is To-Do,1 is In-Progress, 2- Done
description This property is required. str
The description of the task.
team_id This property is required. str
The unique_id of team.
title This property is required. str
The title of the task.
assigned_to str
username of the user to assign the task
due_in_time str
The due time of the task in format YYYY-MM-DD HH:MM.
post_incident_tasks_id str
The ID of the Zenduty PostIncidentTasks.
status float
the status of the task choices are 0 is To-Do,1 is In-Progress, 2- Done
description This property is required. String
The description of the task.
teamId This property is required. String
The unique_id of team.
title This property is required. String
The title of the task.
assignedTo String
username of the user to assign the task
dueInTime String
The due time of the task in format YYYY-MM-DD HH:MM.
postIncidentTasksId String
The ID of the Zenduty PostIncidentTasks.
status Number
the status of the task choices are 0 is To-Do,1 is In-Progress, 2- Done

Outputs

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

CreationDate string
Id string
The provider-assigned unique ID for this managed resource.
UniqueId string
CreationDate string
Id string
The provider-assigned unique ID for this managed resource.
UniqueId string
creationDate String
id String
The provider-assigned unique ID for this managed resource.
uniqueId String
creationDate string
id string
The provider-assigned unique ID for this managed resource.
uniqueId string
creation_date str
id str
The provider-assigned unique ID for this managed resource.
unique_id str
creationDate String
id String
The provider-assigned unique ID for this managed resource.
uniqueId String

Look up Existing PostIncidentTasks Resource

Get an existing PostIncidentTasks 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?: PostIncidentTasksState, opts?: CustomResourceOptions): PostIncidentTasks
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        assigned_to: Optional[str] = None,
        creation_date: Optional[str] = None,
        description: Optional[str] = None,
        due_in_time: Optional[str] = None,
        post_incident_tasks_id: Optional[str] = None,
        status: Optional[float] = None,
        team_id: Optional[str] = None,
        title: Optional[str] = None,
        unique_id: Optional[str] = None) -> PostIncidentTasks
func GetPostIncidentTasks(ctx *Context, name string, id IDInput, state *PostIncidentTasksState, opts ...ResourceOption) (*PostIncidentTasks, error)
public static PostIncidentTasks Get(string name, Input<string> id, PostIncidentTasksState? state, CustomResourceOptions? opts = null)
public static PostIncidentTasks get(String name, Output<String> id, PostIncidentTasksState state, CustomResourceOptions options)
resources:  _:    type: zenduty:PostIncidentTasks    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AssignedTo string
username of the user to assign the task
CreationDate string
Description string
The description of the task.
DueInTime string
The due time of the task in format YYYY-MM-DD HH:MM.
PostIncidentTasksId string
The ID of the Zenduty PostIncidentTasks.
Status double
the status of the task choices are 0 is To-Do,1 is In-Progress, 2- Done
TeamId string
The unique_id of team.
Title string
The title of the task.
UniqueId string
AssignedTo string
username of the user to assign the task
CreationDate string
Description string
The description of the task.
DueInTime string
The due time of the task in format YYYY-MM-DD HH:MM.
PostIncidentTasksId string
The ID of the Zenduty PostIncidentTasks.
Status float64
the status of the task choices are 0 is To-Do,1 is In-Progress, 2- Done
TeamId string
The unique_id of team.
Title string
The title of the task.
UniqueId string
assignedTo String
username of the user to assign the task
creationDate String
description String
The description of the task.
dueInTime String
The due time of the task in format YYYY-MM-DD HH:MM.
postIncidentTasksId String
The ID of the Zenduty PostIncidentTasks.
status Double
the status of the task choices are 0 is To-Do,1 is In-Progress, 2- Done
teamId String
The unique_id of team.
title String
The title of the task.
uniqueId String
assignedTo string
username of the user to assign the task
creationDate string
description string
The description of the task.
dueInTime string
The due time of the task in format YYYY-MM-DD HH:MM.
postIncidentTasksId string
The ID of the Zenduty PostIncidentTasks.
status number
the status of the task choices are 0 is To-Do,1 is In-Progress, 2- Done
teamId string
The unique_id of team.
title string
The title of the task.
uniqueId string
assigned_to str
username of the user to assign the task
creation_date str
description str
The description of the task.
due_in_time str
The due time of the task in format YYYY-MM-DD HH:MM.
post_incident_tasks_id str
The ID of the Zenduty PostIncidentTasks.
status float
the status of the task choices are 0 is To-Do,1 is In-Progress, 2- Done
team_id str
The unique_id of team.
title str
The title of the task.
unique_id str
assignedTo String
username of the user to assign the task
creationDate String
description String
The description of the task.
dueInTime String
The due time of the task in format YYYY-MM-DD HH:MM.
postIncidentTasksId String
The ID of the Zenduty PostIncidentTasks.
status Number
the status of the task choices are 0 is To-Do,1 is In-Progress, 2- Done
teamId String
The unique_id of team.
title String
The title of the task.
uniqueId String

Import

Team PostIncidentTask can be imported using the team_id(ie. unique_id of the team) and task_id(ie. unique_id of the task template)

hcl

resource “zenduty_post_incident_tasks” “demotask” {

}

$ pulumi import zenduty:index/postIncidentTasks:PostIncidentTasks demotask team_id/task_id`
Copy

$ terraform state show zenduty_post_incident_tasks.demotask

* copy the output data and paste inside zenduty_post_incident_tasks.demotask resource block and remove the id attribute

$ pulumi preview to verify the import

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
zenduty zenduty/terraform-provider-zenduty
License
Notes
This Pulumi package is based on the zenduty Terraform Provider.