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 string
- The unique name of the resource.
- args IntegrationsArgs
- 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 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 string
- The unique name of the resource.
- args IntegrationsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IntegrationsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
const integrationsResource = new zenduty.Integrations("integrationsResource", {
    application: "string",
    serviceId: "string",
    summary: "string",
    teamId: "string",
    createIncidentFor: 0,
    defaultUrgency: 0,
    integrationsId: "string",
    isEnabled: false,
    name: "string",
});
type: zenduty:Integrations
properties:
    application: string
    createIncidentFor: 0
    defaultUrgency: 0
    integrationsId: string
    isEnabled: false
    name: string
    serviceId: string
    summary: string
    teamId: string
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 string
- The application id you want to be integrated.
- 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.
- CreateIncident doubleFor 
- 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 1for high0for 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 string
- The application id you want to be integrated.
- 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.
- CreateIncident float64For 
- 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 1for high0for 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 String
- The application id you want to be integrated.
- 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.
- createIncident DoubleFor 
- 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 1for high0for 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 string
- The application id you want to be integrated.
- 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.
- createIncident numberFor 
- 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 1for high0for 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 str
- The application id you want to be integrated.
- 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.
- create_incident_ floatfor 
- 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 1for high0for 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 String
- The application id you want to be integrated.
- 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.
- createIncident NumberFor 
- 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 1for high0for 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) -> Integrationsfunc 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
- 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.
- Application string
- The application id you want to be integrated.
- CreateIncident doubleFor 
- 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 1for high0for 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.
- CreateIncident float64For 
- 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 1for high0for 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.
- createIncident DoubleFor 
- 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 1for high0for 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.
- createIncident numberFor 
- 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 1for high0for 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_ floatfor 
- 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 1for high0for 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.
- createIncident NumberFor 
- 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 1for high0for 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`
$ 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 zendutyTerraform Provider.