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

zenduty.Integrations

Explore with Pulumi AI

zenduty.Integrations is a resource to manage integrations of a service.

Create Integrations Resource

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

Constructor syntax

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

@overload
def Integrations(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 application: Optional[str] = None,
                 service_id: Optional[str] = None,
                 summary: Optional[str] = None,
                 team_id: Optional[str] = None,
                 create_incident_for: Optional[float] = None,
                 default_urgency: Optional[float] = None,
                 integrations_id: Optional[str] = None,
                 is_enabled: Optional[bool] = None,
                 name: Optional[str] = None)
func NewIntegrations(ctx *Context, name string, args IntegrationsArgs, opts ...ResourceOption) (*Integrations, error)
public Integrations(string name, IntegrationsArgs args, CustomResourceOptions? opts = null)
public Integrations(String name, IntegrationsArgs args)
public Integrations(String name, IntegrationsArgs args, CustomResourceOptions options)
type: zenduty:Integrations
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. IntegrationsArgs
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. IntegrationsArgs
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. IntegrationsArgs
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. IntegrationsArgs
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. IntegrationsArgs
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 integrationsResource = new Zenduty.Integrations("integrationsResource", new()
{
    Application = "string",
    ServiceId = "string",
    Summary = "string",
    TeamId = "string",
    CreateIncidentFor = 0,
    DefaultUrgency = 0,
    IntegrationsId = "string",
    IsEnabled = false,
    Name = "string",
});
Copy
example, err := zenduty.NewIntegrations(ctx, "integrationsResource", &zenduty.IntegrationsArgs{
	Application:       pulumi.String("string"),
	ServiceId:         pulumi.String("string"),
	Summary:           pulumi.String("string"),
	TeamId:            pulumi.String("string"),
	CreateIncidentFor: pulumi.Float64(0),
	DefaultUrgency:    pulumi.Float64(0),
	IntegrationsId:    pulumi.String("string"),
	IsEnabled:         pulumi.Bool(false),
	Name:              pulumi.String("string"),
})
Copy
var integrationsResource = new Integrations("integrationsResource", IntegrationsArgs.builder()
    .application("string")
    .serviceId("string")
    .summary("string")
    .teamId("string")
    .createIncidentFor(0)
    .defaultUrgency(0)
    .integrationsId("string")
    .isEnabled(false)
    .name("string")
    .build());
Copy
integrations_resource = zenduty.Integrations("integrationsResource",
    application="string",
    service_id="string",
    summary="string",
    team_id="string",
    create_incident_for=0,
    default_urgency=0,
    integrations_id="string",
    is_enabled=False,
    name="string")
Copy
const integrationsResource = new zenduty.Integrations("integrationsResource", {
    application: "string",
    serviceId: "string",
    summary: "string",
    teamId: "string",
    createIncidentFor: 0,
    defaultUrgency: 0,
    integrationsId: "string",
    isEnabled: false,
    name: "string",
});
Copy
type: zenduty:Integrations
properties:
    application: string
    createIncidentFor: 0
    defaultUrgency: 0
    integrationsId: string
    isEnabled: false
    name: string
    serviceId: string
    summary: string
    teamId: string
Copy

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

Application This property is required. string
The application id you want to be integrated.
ServiceId This property is required. string
The Unique_ID of the service to which the integration belongs.
Summary This property is required. string
The summary for the integration.
TeamId This property is required. string
The Unique_ID of the team to which the integration belongs.
CreateIncidentFor double
Type of Alerts to create an incident.0:Don't create incidents,1:critical alerts, 2:critical and error alerts, 3:critical, error and warning alerts
DefaultUrgency double
The default urgency of the incident. values are 1 for high 0 for low.

  • To get application id, vist https://www.zenduty.com/api/account/applications/ and get unique_id of the application.
IntegrationsId string
The ID of the Integration.
IsEnabled bool
Whether the integration is enabled or not.
Name string
The name of the integration.
Application This property is required. string
The application id you want to be integrated.
ServiceId This property is required. string
The Unique_ID of the service to which the integration belongs.
Summary This property is required. string
The summary for the integration.
TeamId This property is required. string
The Unique_ID of the team to which the integration belongs.
CreateIncidentFor float64
Type of Alerts to create an incident.0:Don't create incidents,1:critical alerts, 2:critical and error alerts, 3:critical, error and warning alerts
DefaultUrgency float64
The default urgency of the incident. values are 1 for high 0 for low.

  • To get application id, vist https://www.zenduty.com/api/account/applications/ and get unique_id of the application.
IntegrationsId string
The ID of the Integration.
IsEnabled bool
Whether the integration is enabled or not.
Name string
The name of the integration.
application This property is required. String
The application id you want to be integrated.
serviceId This property is required. String
The Unique_ID of the service to which the integration belongs.
summary This property is required. String
The summary for the integration.
teamId This property is required. String
The Unique_ID of the team to which the integration belongs.
createIncidentFor Double
Type of Alerts to create an incident.0:Don't create incidents,1:critical alerts, 2:critical and error alerts, 3:critical, error and warning alerts
defaultUrgency Double
The default urgency of the incident. values are 1 for high 0 for low.

  • To get application id, vist https://www.zenduty.com/api/account/applications/ and get unique_id of the application.
integrationsId String
The ID of the Integration.
isEnabled Boolean
Whether the integration is enabled or not.
name String
The name of the integration.
application This property is required. string
The application id you want to be integrated.
serviceId This property is required. string
The Unique_ID of the service to which the integration belongs.
summary This property is required. string
The summary for the integration.
teamId This property is required. string
The Unique_ID of the team to which the integration belongs.
createIncidentFor number
Type of Alerts to create an incident.0:Don't create incidents,1:critical alerts, 2:critical and error alerts, 3:critical, error and warning alerts
defaultUrgency number
The default urgency of the incident. values are 1 for high 0 for low.

  • To get application id, vist https://www.zenduty.com/api/account/applications/ and get unique_id of the application.
integrationsId string
The ID of the Integration.
isEnabled boolean
Whether the integration is enabled or not.
name string
The name of the integration.
application This property is required. str
The application id you want to be integrated.
service_id This property is required. str
The Unique_ID of the service to which the integration belongs.
summary This property is required. str
The summary for the integration.
team_id This property is required. str
The Unique_ID of the team to which the integration belongs.
create_incident_for float
Type of Alerts to create an incident.0:Don't create incidents,1:critical alerts, 2:critical and error alerts, 3:critical, error and warning alerts
default_urgency float
The default urgency of the incident. values are 1 for high 0 for low.

  • To get application id, vist https://www.zenduty.com/api/account/applications/ and get unique_id of the application.
integrations_id str
The ID of the Integration.
is_enabled bool
Whether the integration is enabled or not.
name str
The name of the integration.
application This property is required. String
The application id you want to be integrated.
serviceId This property is required. String
The Unique_ID of the service to which the integration belongs.
summary This property is required. String
The summary for the integration.
teamId This property is required. String
The Unique_ID of the team to which the integration belongs.
createIncidentFor Number
Type of Alerts to create an incident.0:Don't create incidents,1:critical alerts, 2:critical and error alerts, 3:critical, error and warning alerts
defaultUrgency Number
The default urgency of the incident. values are 1 for high 0 for low.

  • To get application id, vist https://www.zenduty.com/api/account/applications/ and get unique_id of the application.
integrationsId String
The ID of the Integration.
isEnabled Boolean
Whether the integration is enabled or not.
name String
The name of the integration.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
IntegrationKey string
The integration key of the Integration.
WebhookUrl string
The webhook url of the Integration.
Id string
The provider-assigned unique ID for this managed resource.
IntegrationKey string
The integration key of the Integration.
WebhookUrl string
The webhook url of the Integration.
id String
The provider-assigned unique ID for this managed resource.
integrationKey String
The integration key of the Integration.
webhookUrl String
The webhook url of the Integration.
id string
The provider-assigned unique ID for this managed resource.
integrationKey string
The integration key of the Integration.
webhookUrl string
The webhook url of the Integration.
id str
The provider-assigned unique ID for this managed resource.
integration_key str
The integration key of the Integration.
webhook_url str
The webhook url of the Integration.
id String
The provider-assigned unique ID for this managed resource.
integrationKey String
The integration key of the Integration.
webhookUrl String
The webhook url of the Integration.

Look up Existing Integrations Resource

Get an existing Integrations 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?: IntegrationsState, opts?: CustomResourceOptions): Integrations
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        application: Optional[str] = None,
        create_incident_for: Optional[float] = None,
        default_urgency: Optional[float] = None,
        integration_key: Optional[str] = None,
        integrations_id: Optional[str] = None,
        is_enabled: Optional[bool] = None,
        name: Optional[str] = None,
        service_id: Optional[str] = None,
        summary: Optional[str] = None,
        team_id: Optional[str] = None,
        webhook_url: Optional[str] = None) -> Integrations
func GetIntegrations(ctx *Context, name string, id IDInput, state *IntegrationsState, opts ...ResourceOption) (*Integrations, error)
public static Integrations Get(string name, Input<string> id, IntegrationsState? state, CustomResourceOptions? opts = null)
public static Integrations get(String name, Output<String> id, IntegrationsState state, CustomResourceOptions options)
resources:  _:    type: zenduty:Integrations    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:
Application string
The application id you want to be integrated.
CreateIncidentFor double
Type of Alerts to create an incident.0:Don't create incidents,1:critical alerts, 2:critical and error alerts, 3:critical, error and warning alerts
DefaultUrgency double
The default urgency of the incident. values are 1 for high 0 for low.

  • To get application id, vist https://www.zenduty.com/api/account/applications/ and get unique_id of the application.
IntegrationKey string
The integration key of the Integration.
IntegrationsId string
The ID of the Integration.
IsEnabled bool
Whether the integration is enabled or not.
Name string
The name of the integration.
ServiceId string
The Unique_ID of the service to which the integration belongs.
Summary string
The summary for the integration.
TeamId string
The Unique_ID of the team to which the integration belongs.
WebhookUrl string
The webhook url of the Integration.
Application string
The application id you want to be integrated.
CreateIncidentFor float64
Type of Alerts to create an incident.0:Don't create incidents,1:critical alerts, 2:critical and error alerts, 3:critical, error and warning alerts
DefaultUrgency float64
The default urgency of the incident. values are 1 for high 0 for low.

  • To get application id, vist https://www.zenduty.com/api/account/applications/ and get unique_id of the application.
IntegrationKey string
The integration key of the Integration.
IntegrationsId string
The ID of the Integration.
IsEnabled bool
Whether the integration is enabled or not.
Name string
The name of the integration.
ServiceId string
The Unique_ID of the service to which the integration belongs.
Summary string
The summary for the integration.
TeamId string
The Unique_ID of the team to which the integration belongs.
WebhookUrl string
The webhook url of the Integration.
application String
The application id you want to be integrated.
createIncidentFor Double
Type of Alerts to create an incident.0:Don't create incidents,1:critical alerts, 2:critical and error alerts, 3:critical, error and warning alerts
defaultUrgency Double
The default urgency of the incident. values are 1 for high 0 for low.

  • To get application id, vist https://www.zenduty.com/api/account/applications/ and get unique_id of the application.
integrationKey String
The integration key of the Integration.
integrationsId String
The ID of the Integration.
isEnabled Boolean
Whether the integration is enabled or not.
name String
The name of the integration.
serviceId String
The Unique_ID of the service to which the integration belongs.
summary String
The summary for the integration.
teamId String
The Unique_ID of the team to which the integration belongs.
webhookUrl String
The webhook url of the Integration.
application string
The application id you want to be integrated.
createIncidentFor number
Type of Alerts to create an incident.0:Don't create incidents,1:critical alerts, 2:critical and error alerts, 3:critical, error and warning alerts
defaultUrgency number
The default urgency of the incident. values are 1 for high 0 for low.

  • To get application id, vist https://www.zenduty.com/api/account/applications/ and get unique_id of the application.
integrationKey string
The integration key of the Integration.
integrationsId string
The ID of the Integration.
isEnabled boolean
Whether the integration is enabled or not.
name string
The name of the integration.
serviceId string
The Unique_ID of the service to which the integration belongs.
summary string
The summary for the integration.
teamId string
The Unique_ID of the team to which the integration belongs.
webhookUrl string
The webhook url of the Integration.
application str
The application id you want to be integrated.
create_incident_for float
Type of Alerts to create an incident.0:Don't create incidents,1:critical alerts, 2:critical and error alerts, 3:critical, error and warning alerts
default_urgency float
The default urgency of the incident. values are 1 for high 0 for low.

  • To get application id, vist https://www.zenduty.com/api/account/applications/ and get unique_id of the application.
integration_key str
The integration key of the Integration.
integrations_id str
The ID of the Integration.
is_enabled bool
Whether the integration is enabled or not.
name str
The name of the integration.
service_id str
The Unique_ID of the service to which the integration belongs.
summary str
The summary for the integration.
team_id str
The Unique_ID of the team to which the integration belongs.
webhook_url str
The webhook url of the Integration.
application String
The application id you want to be integrated.
createIncidentFor Number
Type of Alerts to create an incident.0:Don't create incidents,1:critical alerts, 2:critical and error alerts, 3:critical, error and warning alerts
defaultUrgency Number
The default urgency of the incident. values are 1 for high 0 for low.

  • To get application id, vist https://www.zenduty.com/api/account/applications/ and get unique_id of the application.
integrationKey String
The integration key of the Integration.
integrationsId String
The ID of the Integration.
isEnabled Boolean
Whether the integration is enabled or not.
name String
The name of the integration.
serviceId String
The Unique_ID of the service to which the integration belongs.
summary String
The summary for the integration.
teamId String
The Unique_ID of the team to which the integration belongs.
webhookUrl String
The webhook url of the Integration.

Import

Integrations can be imported using the team_id(ie. unique_id of the team) and service_id(ie. unique_id of the service)integration_id(ie. unique_id of the integration).

hcl

resource “zenduty_integrations” “integration1” {

}

$ pulumi import zenduty:index/integrations:Integrations integration1 team_id/service_id/integration_id`
Copy

$ terraform state show zenduty_integrations.integration1

* copy the output data and paste inside zenduty_integrations.integration1 resource block and remove the id,integration_key,webhook_url attributes

$ 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.