getVendor

Use this data source to get information about a specific vendor that you can use for a service integration (e.g Amazon Cloudwatch, Splunk, Datadog).

Example Usage

using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

class MyStack : Stack
{
    public MyStack()
    {
        var datadog = Output.Create(Pagerduty.GetVendor.InvokeAsync(new Pagerduty.GetVendorArgs
        {
            Name = "Datadog",
        }));
        var exampleUser = new Pagerduty.User("exampleUser", new Pagerduty.UserArgs
        {
            Email = "125.greenholt.earline@graham.name",
            Teams = 
            {
                pagerduty_team.Example.Id,
            },
        });
        var foo = new Pagerduty.EscalationPolicy("foo", new Pagerduty.EscalationPolicyArgs
        {
            NumLoops = 2,
            Rules = 
            {
                new Pagerduty.Inputs.EscalationPolicyRuleArgs
                {
                    EscalationDelayInMinutes = 10,
                    Targets = 
                    {
                        new Pagerduty.Inputs.EscalationPolicyRuleTargetArgs
                        {
                            Type = "user",
                            Id = exampleUser.Id,
                        },
                    },
                },
            },
        });
        var exampleService = new Pagerduty.Service("exampleService", new Pagerduty.ServiceArgs
        {
            AutoResolveTimeout = "14400",
            AcknowledgementTimeout = "600",
            EscalationPolicy = pagerduty_escalation_policy.Example.Id,
        });
        var exampleServiceIntegration = new Pagerduty.ServiceIntegration("exampleServiceIntegration", new Pagerduty.ServiceIntegrationArgs
        {
            Vendor = datadog.Apply(datadog => datadog.Id),
            Service = exampleService.Id,
            Type = "generic_events_api_inbound_integration",
        });
    }

}

Coming soon!

import pulumi
import pulumi_pagerduty as pagerduty

datadog = pagerduty.get_vendor(name="Datadog")
example_user = pagerduty.User("exampleUser",
    email="125.greenholt.earline@graham.name",
    teams=[pagerduty_team["example"]["id"]])
foo = pagerduty.EscalationPolicy("foo",
    num_loops=2,
    rules=[pagerduty.EscalationPolicyRuleArgs(
        escalation_delay_in_minutes=10,
        targets=[pagerduty.EscalationPolicyRuleTargetArgs(
            type="user",
            id=example_user.id,
        )],
    )])
example_service = pagerduty.Service("exampleService",
    auto_resolve_timeout="14400",
    acknowledgement_timeout="600",
    escalation_policy=pagerduty_escalation_policy["example"]["id"])
example_service_integration = pagerduty.ServiceIntegration("exampleServiceIntegration",
    vendor=datadog.id,
    service=example_service.id,
    type="generic_events_api_inbound_integration")
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";

const datadog = pagerduty.getVendor({
    name: "Datadog",
});
const exampleUser = new pagerduty.User("exampleUser", {
    email: "125.greenholt.earline@graham.name",
    teams: [pagerduty_team.example.id],
});
const foo = new pagerduty.EscalationPolicy("foo", {
    numLoops: 2,
    rules: [{
        escalationDelayInMinutes: 10,
        targets: [{
            type: "user",
            id: exampleUser.id,
        }],
    }],
});
const exampleService = new pagerduty.Service("exampleService", {
    autoResolveTimeout: 14400,
    acknowledgementTimeout: 600,
    escalationPolicy: pagerduty_escalation_policy.example.id,
});
const exampleServiceIntegration = new pagerduty.ServiceIntegration("exampleServiceIntegration", {
    vendor: datadog.then(datadog => datadog.id),
    service: exampleService.id,
    type: "generic_events_api_inbound_integration",
});

Using getVendor

function getVendor(args: GetVendorArgs, opts?: InvokeOptions): Promise<GetVendorResult>
def get_vendor(name: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetVendorResult
func GetVendor(ctx *Context, args *GetVendorArgs, opts ...InvokeOption) (*GetVendorResult, error)

Note: This function is named GetVendor in the Go SDK.

public static class GetVendor {
    public static Task<GetVendorResult> InvokeAsync(GetVendorArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string
The vendor name to use to find a vendor in the PagerDuty API.
Name string
The vendor name to use to find a vendor in the PagerDuty API.
name string
The vendor name to use to find a vendor in the PagerDuty API.
name str
The vendor name to use to find a vendor in the PagerDuty API.

getVendor Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The short name of the found vendor.
Type string
The generic service type for this vendor.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The short name of the found vendor.
Type string
The generic service type for this vendor.
id string
The provider-assigned unique ID for this managed resource.
name string
The short name of the found vendor.
type string
The generic service type for this vendor.
id str
The provider-assigned unique ID for this managed resource.
name str
The short name of the found vendor.
type str
The generic service type for this vendor.

Package Details

Repository
https://github.com/pulumi/pulumi-pagerduty
License
Apache-2.0
Notes
This Pulumi package is based on the pagerduty Terraform Provider.