2016-10-20 06:53:51 +02:00
---
layout: "pagerduty"
page_title: "PagerDuty: pagerduty_vendor"
sidebar_current: "docs-pagerduty-datasource-vendor"
description: |-
Get information about a vendor that you can use for a service integration (e.g Amazon Cloudwatch, Splunk, Datadog).
---
# pagerduty\_vendor
Use this data source to get information about a specific [vendor][1] that you can use for a service integration (e.g Amazon Cloudwatch, Splunk, Datadog).
## Example Usage
2017-04-17 12:17:54 +02:00
```hcl
2016-10-20 06:53:51 +02:00
data "pagerduty_vendor" "datadog" {
2017-03-02 00:59:16 +01:00
name = "Datadog"
2016-10-20 06:53:51 +02:00
}
resource "pagerduty_user" "example" {
2017-02-18 23:48:50 +01:00
name = "Earline Greenholt"
email = "125.greenholt.earline@graham.name"
teams = ["${pagerduty_team.example.id}"]
2016-10-20 06:53:51 +02:00
}
resource "pagerduty_escalation_policy" "foo" {
name = "Engineering Escalation Policy"
num_loops = 2
rule {
escalation_delay_in_minutes = 10
target {
type = "user"
id = "${pagerduty_user.example.id}"
}
}
}
resource "pagerduty_service" "example" {
name = "My Web App"
auto_resolve_timeout = 14400
acknowledgement_timeout = 600
escalation_policy = "${pagerduty_escalation_policy.example.id}"
}
resource "pagerduty_service_integration" "example" {
name = "Datadog Integration"
vendor = "${data.pagerduty_vendor.datadog.id}"
service = "${pagerduty_service.example.id}"
type = "generic_events_api_inbound_integration"
}
```
## Argument Reference
The following arguments are supported:
2017-03-02 00:59:16 +01:00
* `name` - (Required) The vendor name to use to find a vendor in the PagerDuty API.
2016-10-20 06:53:51 +02:00
## Attributes Reference
* `name` - The short name of the found vendor.
* `type` - The generic service type for this vendor.
[1]: https://v2.developer.pagerduty.com/v2/page/api-reference#!/Vendors/get_vendors