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

zenduty.Services

Explore with Pulumi AI

zenduty.Services is a resource that allows you to create, update, and delete Zenduty services.”

Example Usage

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

const exampleteam = new zenduty.Teams("exampleteam", {});
const exampleEsp = new zenduty.Esp("exampleEsp", {
    teamId: exampleteam.teamsId,
    description: "this is an example esp",
});
Copy
import pulumi
import pulumi_zenduty as zenduty

exampleteam = zenduty.Teams("exampleteam")
example_esp = zenduty.Esp("exampleEsp",
    team_id=exampleteam.teams_id,
    description="this is an example esp")
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 {
		exampleteam, err := zenduty.NewTeams(ctx, "exampleteam", nil)
		if err != nil {
			return err
		}
		_, err = zenduty.NewEsp(ctx, "exampleEsp", &zenduty.EspArgs{
			TeamId:      exampleteam.TeamsId,
			Description: pulumi.String("this is an example esp"),
		})
		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");

    var exampleEsp = new Zenduty.Esp("exampleEsp", new()
    {
        TeamId = exampleteam.TeamsId,
        Description = "this is an example esp",
    });

});
Copy
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.Esp;
import com.pulumi.zenduty.EspArgs;
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");

        var exampleEsp = new Esp("exampleEsp", EspArgs.builder()
            .teamId(exampleteam.teamsId())
            .description("this is an example esp")
            .build());

    }
}
Copy
resources:
  exampleteam:
    type: zenduty:Teams
  exampleEsp:
    type: zenduty:Esp
    properties:
      teamId: ${exampleteam.teamsId}
      description: this is an example esp
Copy
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";

const exampleservice = new zenduty.Services("exampleservice", {
    teamId: zenduty_teams.exampleteam.id,
    escalationPolicy: zenduty_esp.example_esp.id,
});
Copy
import pulumi
import pulumi_zenduty as zenduty

exampleservice = zenduty.Services("exampleservice",
    team_id=zenduty_teams["exampleteam"]["id"],
    escalation_policy=zenduty_esp["example_esp"]["id"])
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.NewServices(ctx, "exampleservice", &zenduty.ServicesArgs{
			TeamId:           pulumi.Any(zenduty_teams.Exampleteam.Id),
			EscalationPolicy: pulumi.Any(zenduty_esp.Example_esp.Id),
		})
		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 exampleservice = new Zenduty.Services("exampleservice", new()
    {
        TeamId = zenduty_teams.Exampleteam.Id,
        EscalationPolicy = zenduty_esp.Example_esp.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.Services;
import com.pulumi.zenduty.ServicesArgs;
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 exampleservice = new Services("exampleservice", ServicesArgs.builder()
            .teamId(zenduty_teams.exampleteam().id())
            .escalationPolicy(zenduty_esp.example_esp().id())
            .build());

    }
}
Copy
resources:
  exampleservice:
    type: zenduty:Services
    properties:
      teamId: ${zenduty_teams.exampleteam.id}
      escalationPolicy: ${zenduty_esp.example_esp.id}
Copy

Data Types

Required fields:

  • escalation_policy (String)
  • name (String)
  • team_id (String)

Optional fields:

  • collation (Number)
  • collation_time (Number)
  • description (String)
  • sla (String)
  • summary (String)
  • task_template (String)
  • team_priority (String)

Create Services Resource

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

Constructor syntax

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

@overload
def Services(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             escalation_policy: Optional[str] = None,
             team_id: Optional[str] = None,
             collation: Optional[float] = None,
             collation_time: Optional[float] = None,
             description: Optional[str] = None,
             name: Optional[str] = None,
             services_id: Optional[str] = None,
             sla: Optional[str] = None,
             summary: Optional[str] = None,
             task_template: Optional[str] = None,
             team_priority: Optional[str] = None)
func NewServices(ctx *Context, name string, args ServicesArgs, opts ...ResourceOption) (*Services, error)
public Services(string name, ServicesArgs args, CustomResourceOptions? opts = null)
public Services(String name, ServicesArgs args)
public Services(String name, ServicesArgs args, CustomResourceOptions options)
type: zenduty:Services
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. ServicesArgs
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. ServicesArgs
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. ServicesArgs
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. ServicesArgs
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. ServicesArgs
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 servicesResource = new Zenduty.Services("servicesResource", new()
{
    EscalationPolicy = "string",
    TeamId = "string",
    Collation = 0,
    CollationTime = 0,
    Description = "string",
    Name = "string",
    ServicesId = "string",
    Sla = "string",
    Summary = "string",
    TaskTemplate = "string",
    TeamPriority = "string",
});
Copy
example, err := zenduty.NewServices(ctx, "servicesResource", &zenduty.ServicesArgs{
EscalationPolicy: pulumi.String("string"),
TeamId: pulumi.String("string"),
Collation: pulumi.Float64(0),
CollationTime: pulumi.Float64(0),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
ServicesId: pulumi.String("string"),
Sla: pulumi.String("string"),
Summary: pulumi.String("string"),
TaskTemplate: pulumi.String("string"),
TeamPriority: pulumi.String("string"),
})
Copy
var servicesResource = new Services("servicesResource", ServicesArgs.builder()
    .escalationPolicy("string")
    .teamId("string")
    .collation(0)
    .collationTime(0)
    .description("string")
    .name("string")
    .servicesId("string")
    .sla("string")
    .summary("string")
    .taskTemplate("string")
    .teamPriority("string")
    .build());
Copy
services_resource = zenduty.Services("servicesResource",
    escalation_policy="string",
    team_id="string",
    collation=0,
    collation_time=0,
    description="string",
    name="string",
    services_id="string",
    sla="string",
    summary="string",
    task_template="string",
    team_priority="string")
Copy
const servicesResource = new zenduty.Services("servicesResource", {
    escalationPolicy: "string",
    teamId: "string",
    collation: 0,
    collationTime: 0,
    description: "string",
    name: "string",
    servicesId: "string",
    sla: "string",
    summary: "string",
    taskTemplate: "string",
    teamPriority: "string",
});
Copy
type: zenduty:Services
properties:
    collation: 0
    collationTime: 0
    description: string
    escalationPolicy: string
    name: string
    servicesId: string
    sla: string
    summary: string
    taskTemplate: string
    teamId: string
    teamPriority: string
Copy

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

EscalationPolicy This property is required. string
Unique id of the escalation policy to be used by the service
TeamId This property is required. string
Unique id of the team where the service will be created
Collation double
The collation value for the service. Defaults to 1.
CollationTime double
The collation time for the service. Defaults to 1 minute.
Description string
Description of the service
Name string
Name of the service (unique)
ServicesId string
The ID of the Zenduty Service.
Sla string
The SLA value for the service.
Summary string
Summary of the service
TaskTemplate string
The task template value for the service.
TeamPriority string
The team priority value for the service.
EscalationPolicy This property is required. string
Unique id of the escalation policy to be used by the service
TeamId This property is required. string
Unique id of the team where the service will be created
Collation float64
The collation value for the service. Defaults to 1.
CollationTime float64
The collation time for the service. Defaults to 1 minute.
Description string
Description of the service
Name string
Name of the service (unique)
ServicesId string
The ID of the Zenduty Service.
Sla string
The SLA value for the service.
Summary string
Summary of the service
TaskTemplate string
The task template value for the service.
TeamPriority string
The team priority value for the service.
escalationPolicy This property is required. String
Unique id of the escalation policy to be used by the service
teamId This property is required. String
Unique id of the team where the service will be created
collation Double
The collation value for the service. Defaults to 1.
collationTime Double
The collation time for the service. Defaults to 1 minute.
description String
Description of the service
name String
Name of the service (unique)
servicesId String
The ID of the Zenduty Service.
sla String
The SLA value for the service.
summary String
Summary of the service
taskTemplate String
The task template value for the service.
teamPriority String
The team priority value for the service.
escalationPolicy This property is required. string
Unique id of the escalation policy to be used by the service
teamId This property is required. string
Unique id of the team where the service will be created
collation number
The collation value for the service. Defaults to 1.
collationTime number
The collation time for the service. Defaults to 1 minute.
description string
Description of the service
name string
Name of the service (unique)
servicesId string
The ID of the Zenduty Service.
sla string
The SLA value for the service.
summary string
Summary of the service
taskTemplate string
The task template value for the service.
teamPriority string
The team priority value for the service.
escalation_policy This property is required. str
Unique id of the escalation policy to be used by the service
team_id This property is required. str
Unique id of the team where the service will be created
collation float
The collation value for the service. Defaults to 1.
collation_time float
The collation time for the service. Defaults to 1 minute.
description str
Description of the service
name str
Name of the service (unique)
services_id str
The ID of the Zenduty Service.
sla str
The SLA value for the service.
summary str
Summary of the service
task_template str
The task template value for the service.
team_priority str
The team priority value for the service.
escalationPolicy This property is required. String
Unique id of the escalation policy to be used by the service
teamId This property is required. String
Unique id of the team where the service will be created
collation Number
The collation value for the service. Defaults to 1.
collationTime Number
The collation time for the service. Defaults to 1 minute.
description String
Description of the service
name String
Name of the service (unique)
servicesId String
The ID of the Zenduty Service.
sla String
The SLA value for the service.
summary String
Summary of the service
taskTemplate String
The task template value for the service.
teamPriority String
The team priority value for the service.

Outputs

All input properties are implicitly available as output properties. Additionally, the Services 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 str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Services Resource

Get an existing Services 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?: ServicesState, opts?: CustomResourceOptions): Services
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        collation: Optional[float] = None,
        collation_time: Optional[float] = None,
        description: Optional[str] = None,
        escalation_policy: Optional[str] = None,
        name: Optional[str] = None,
        services_id: Optional[str] = None,
        sla: Optional[str] = None,
        summary: Optional[str] = None,
        task_template: Optional[str] = None,
        team_id: Optional[str] = None,
        team_priority: Optional[str] = None) -> Services
func GetServices(ctx *Context, name string, id IDInput, state *ServicesState, opts ...ResourceOption) (*Services, error)
public static Services Get(string name, Input<string> id, ServicesState? state, CustomResourceOptions? opts = null)
public static Services get(String name, Output<String> id, ServicesState state, CustomResourceOptions options)
resources:  _:    type: zenduty:Services    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:
Collation double
The collation value for the service. Defaults to 1.
CollationTime double
The collation time for the service. Defaults to 1 minute.
Description string
Description of the service
EscalationPolicy string
Unique id of the escalation policy to be used by the service
Name string
Name of the service (unique)
ServicesId string
The ID of the Zenduty Service.
Sla string
The SLA value for the service.
Summary string
Summary of the service
TaskTemplate string
The task template value for the service.
TeamId string
Unique id of the team where the service will be created
TeamPriority string
The team priority value for the service.
Collation float64
The collation value for the service. Defaults to 1.
CollationTime float64
The collation time for the service. Defaults to 1 minute.
Description string
Description of the service
EscalationPolicy string
Unique id of the escalation policy to be used by the service
Name string
Name of the service (unique)
ServicesId string
The ID of the Zenduty Service.
Sla string
The SLA value for the service.
Summary string
Summary of the service
TaskTemplate string
The task template value for the service.
TeamId string
Unique id of the team where the service will be created
TeamPriority string
The team priority value for the service.
collation Double
The collation value for the service. Defaults to 1.
collationTime Double
The collation time for the service. Defaults to 1 minute.
description String
Description of the service
escalationPolicy String
Unique id of the escalation policy to be used by the service
name String
Name of the service (unique)
servicesId String
The ID of the Zenduty Service.
sla String
The SLA value for the service.
summary String
Summary of the service
taskTemplate String
The task template value for the service.
teamId String
Unique id of the team where the service will be created
teamPriority String
The team priority value for the service.
collation number
The collation value for the service. Defaults to 1.
collationTime number
The collation time for the service. Defaults to 1 minute.
description string
Description of the service
escalationPolicy string
Unique id of the escalation policy to be used by the service
name string
Name of the service (unique)
servicesId string
The ID of the Zenduty Service.
sla string
The SLA value for the service.
summary string
Summary of the service
taskTemplate string
The task template value for the service.
teamId string
Unique id of the team where the service will be created
teamPriority string
The team priority value for the service.
collation float
The collation value for the service. Defaults to 1.
collation_time float
The collation time for the service. Defaults to 1 minute.
description str
Description of the service
escalation_policy str
Unique id of the escalation policy to be used by the service
name str
Name of the service (unique)
services_id str
The ID of the Zenduty Service.
sla str
The SLA value for the service.
summary str
Summary of the service
task_template str
The task template value for the service.
team_id str
Unique id of the team where the service will be created
team_priority str
The team priority value for the service.
collation Number
The collation value for the service. Defaults to 1.
collationTime Number
The collation time for the service. Defaults to 1 minute.
description String
Description of the service
escalationPolicy String
Unique id of the escalation policy to be used by the service
name String
Name of the service (unique)
servicesId String
The ID of the Zenduty Service.
sla String
The SLA value for the service.
summary String
Summary of the service
taskTemplate String
The task template value for the service.
teamId String
Unique id of the team where the service will be created
teamPriority String
The team priority value for the service.

Import

Services can be imported using the team_id(ie. unique_id of the team) and service_id(ie. unique_id of the service), e.g.

hcl

resource “zenduty_services” “service1” {

}

$ pulumi import zenduty:index/services:Services service1 team_id/service_id`
Copy

$ terraform state show zenduty_services.service1

* copy the output data and paste inside zenduty_services.service1 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.