1. Registry
  2. Packages
  3. Zenduty Provider
  4. API Docs
  5. Priorities
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty

    Provides a Zenduty Priorities Resource. This allows Priorities 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", {name: "exmaple team"});
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    exampleteam = zenduty.Teams("exampleteam", name="exmaple team")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/v2/zenduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zenduty.NewTeams(ctx, "exampleteam", &zenduty.TeamsArgs{
    			Name: pulumi.String("exmaple team"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zenduty = Pulumi.Zenduty;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleteam = new Zenduty.Teams("exampleteam", new()
        {
            Name = "exmaple team",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zenduty.Teams;
    import com.pulumi.zenduty.TeamsArgs;
    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", TeamsArgs.builder()
                .name("exmaple team")
                .build());
    
        }
    }
    
    resources:
      exampleteam:
        type: zenduty:Teams
        properties:
          name: exmaple team
    
    Example coming soon!
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const examplePriority = new zenduty.Priorities("example_priority", {
        name: "P1",
        teamId: exampleteam.id,
        color: "red",
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    example_priority = zenduty.Priorities("example_priority",
        name="P1",
        team_id=exampleteam["id"],
        color="red")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/v2/zenduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zenduty.NewPriorities(ctx, "example_priority", &zenduty.PrioritiesArgs{
    			Name:   pulumi.String("P1"),
    			TeamId: pulumi.Any(exampleteam.Id),
    			Color:  pulumi.String("red"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zenduty = Pulumi.Zenduty;
    
    return await Deployment.RunAsync(() => 
    {
        var examplePriority = new Zenduty.Priorities("example_priority", new()
        {
            Name = "P1",
            TeamId = exampleteam.Id,
            Color = "red",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zenduty.Priorities;
    import com.pulumi.zenduty.PrioritiesArgs;
    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 examplePriority = new Priorities("examplePriority", PrioritiesArgs.builder()
                .name("P1")
                .teamId(exampleteam.id())
                .color("red")
                .build());
    
        }
    }
    
    resources:
      examplePriority:
        type: zenduty:Priorities
        name: example_priority
        properties:
          name: P1
          teamId: ${exampleteam.id}
          color: red
    
    Example coming soon!
    

    Create Priorities Resource

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

    Constructor syntax

    new Priorities(name: string, args: PrioritiesArgs, opts?: CustomResourceOptions);
    @overload
    def Priorities(resource_name: str,
                   args: PrioritiesArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Priorities(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   team_id: Optional[str] = None,
                   color: Optional[str] = None,
                   description: Optional[str] = None,
                   name: Optional[str] = None,
                   priorities_id: Optional[str] = None)
    func NewPriorities(ctx *Context, name string, args PrioritiesArgs, opts ...ResourceOption) (*Priorities, error)
    public Priorities(string name, PrioritiesArgs args, CustomResourceOptions? opts = null)
    public Priorities(String name, PrioritiesArgs args)
    public Priorities(String name, PrioritiesArgs args, CustomResourceOptions options)
    
    type: zenduty:Priorities
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "zenduty_priorities" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args PrioritiesArgs
    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 PrioritiesArgs
    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 PrioritiesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PrioritiesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PrioritiesArgs
    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 prioritiesResource = new Zenduty.Priorities("prioritiesResource", new()
    {
        TeamId = "string",
        Color = "string",
        Description = "string",
        Name = "string",
        PrioritiesId = "string",
    });
    
    example, err := zenduty.NewPriorities(ctx, "prioritiesResource", &zenduty.PrioritiesArgs{
    	TeamId:       pulumi.String("string"),
    	Color:        pulumi.String("string"),
    	Description:  pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	PrioritiesId: pulumi.String("string"),
    })
    
    resource "zenduty_priorities" "prioritiesResource" {
      lifecycle {
        create_before_destroy = true
      }
      team_id       = "string"
      color         = "string"
      description   = "string"
      name          = "string"
      priorities_id = "string"
    }
    
    var prioritiesResource = new Priorities("prioritiesResource", PrioritiesArgs.builder()
        .teamId("string")
        .color("string")
        .description("string")
        .name("string")
        .prioritiesId("string")
        .build());
    
    priorities_resource = zenduty.Priorities("prioritiesResource",
        team_id="string",
        color="string",
        description="string",
        name="string",
        priorities_id="string")
    
    const prioritiesResource = new zenduty.Priorities("prioritiesResource", {
        teamId: "string",
        color: "string",
        description: "string",
        name: "string",
        prioritiesId: "string",
    });
    
    type: zenduty:Priorities
    properties:
        color: string
        description: string
        name: string
        prioritiesId: string
        teamId: string
    

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

    TeamId string
    The unique_id of team to create the priority in.
    Color string
    The color of the priority. Validated by the API; the values used by the Zenduty UI are magenta, red, volcano, orange, gold, lime, green, cyan, blue, geekblue and purple.
    Description string
    The description of the priority.
    Name string
    The name of the priority.
    PrioritiesId string
    The ID of the Incident Priority.
    TeamId string
    The unique_id of team to create the priority in.
    Color string
    The color of the priority. Validated by the API; the values used by the Zenduty UI are magenta, red, volcano, orange, gold, lime, green, cyan, blue, geekblue and purple.
    Description string
    The description of the priority.
    Name string
    The name of the priority.
    PrioritiesId string
    The ID of the Incident Priority.
    team_id string
    The unique_id of team to create the priority in.
    color string
    The color of the priority. Validated by the API; the values used by the Zenduty UI are magenta, red, volcano, orange, gold, lime, green, cyan, blue, geekblue and purple.
    description string
    The description of the priority.
    name string
    The name of the priority.
    priorities_id string
    The ID of the Incident Priority.
    teamId String
    The unique_id of team to create the priority in.
    color String
    The color of the priority. Validated by the API; the values used by the Zenduty UI are magenta, red, volcano, orange, gold, lime, green, cyan, blue, geekblue and purple.
    description String
    The description of the priority.
    name String
    The name of the priority.
    prioritiesId String
    The ID of the Incident Priority.
    teamId string
    The unique_id of team to create the priority in.
    color string
    The color of the priority. Validated by the API; the values used by the Zenduty UI are magenta, red, volcano, orange, gold, lime, green, cyan, blue, geekblue and purple.
    description string
    The description of the priority.
    name string
    The name of the priority.
    prioritiesId string
    The ID of the Incident Priority.
    team_id str
    The unique_id of team to create the priority in.
    color str
    The color of the priority. Validated by the API; the values used by the Zenduty UI are magenta, red, volcano, orange, gold, lime, green, cyan, blue, geekblue and purple.
    description str
    The description of the priority.
    name str
    The name of the priority.
    priorities_id str
    The ID of the Incident Priority.
    teamId String
    The unique_id of team to create the priority in.
    color String
    The color of the priority. Validated by the API; the values used by the Zenduty UI are magenta, red, volcano, orange, gold, lime, green, cyan, blue, geekblue and purple.
    description String
    The description of the priority.
    name String
    The name of the priority.
    prioritiesId String
    The ID of the Incident Priority.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Priorities Resource

    Get an existing Priorities 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?: PrioritiesState, opts?: CustomResourceOptions): Priorities
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            color: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            priorities_id: Optional[str] = None,
            team_id: Optional[str] = None) -> Priorities
    func GetPriorities(ctx *Context, name string, id IDInput, state *PrioritiesState, opts ...ResourceOption) (*Priorities, error)
    public static Priorities Get(string name, Input<string> id, PrioritiesState? state, CustomResourceOptions? opts = null)
    public static Priorities get(String name, Output<String> id, PrioritiesState state, CustomResourceOptions options)
    resources:  _:    type: zenduty:Priorities    get:      id: ${id}
    import {
      to = zenduty_priorities.example
      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:
    Color string
    The color of the priority. Validated by the API; the values used by the Zenduty UI are magenta, red, volcano, orange, gold, lime, green, cyan, blue, geekblue and purple.
    Description string
    The description of the priority.
    Name string
    The name of the priority.
    PrioritiesId string
    The ID of the Incident Priority.
    TeamId string
    The unique_id of team to create the priority in.
    Color string
    The color of the priority. Validated by the API; the values used by the Zenduty UI are magenta, red, volcano, orange, gold, lime, green, cyan, blue, geekblue and purple.
    Description string
    The description of the priority.
    Name string
    The name of the priority.
    PrioritiesId string
    The ID of the Incident Priority.
    TeamId string
    The unique_id of team to create the priority in.
    color string
    The color of the priority. Validated by the API; the values used by the Zenduty UI are magenta, red, volcano, orange, gold, lime, green, cyan, blue, geekblue and purple.
    description string
    The description of the priority.
    name string
    The name of the priority.
    priorities_id string
    The ID of the Incident Priority.
    team_id string
    The unique_id of team to create the priority in.
    color String
    The color of the priority. Validated by the API; the values used by the Zenduty UI are magenta, red, volcano, orange, gold, lime, green, cyan, blue, geekblue and purple.
    description String
    The description of the priority.
    name String
    The name of the priority.
    prioritiesId String
    The ID of the Incident Priority.
    teamId String
    The unique_id of team to create the priority in.
    color string
    The color of the priority. Validated by the API; the values used by the Zenduty UI are magenta, red, volcano, orange, gold, lime, green, cyan, blue, geekblue and purple.
    description string
    The description of the priority.
    name string
    The name of the priority.
    prioritiesId string
    The ID of the Incident Priority.
    teamId string
    The unique_id of team to create the priority in.
    color str
    The color of the priority. Validated by the API; the values used by the Zenduty UI are magenta, red, volcano, orange, gold, lime, green, cyan, blue, geekblue and purple.
    description str
    The description of the priority.
    name str
    The name of the priority.
    priorities_id str
    The ID of the Incident Priority.
    team_id str
    The unique_id of team to create the priority in.
    color String
    The color of the priority. Validated by the API; the values used by the Zenduty UI are magenta, red, volcano, orange, gold, lime, green, cyan, blue, geekblue and purple.
    description String
    The description of the priority.
    name String
    The name of the priority.
    prioritiesId String
    The ID of the Incident Priority.
    teamId String
    The unique_id of team to create the priority in.

    Import

    Incident Priority can be imported using the team_id(ie. unique_id of the team) and priority_id(ie. unique_id of the priority), e.g.

    hcl

    resource “zenduty_priorities” “priority1” {

    }

    $ pulumi import zenduty:index/priorities:Priorities priority1 team_id/priority_id`
    

    $ terraform state show zenduty_priorities.priority1

    * copy the output data and paste inside zenduty_priorities.priority1 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.
    Viewing docs for zenduty 2.0.0
    published on Friday, Aug 14, 2026 by zenduty

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial