Class GetService
Inheritance
System.Object
GetService
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Pagerduty
Assembly: Pulumi.Pagerduty.dll
Syntax
public static class GetService
Methods
View SourceInvokeAsync(GetServiceArgs, InvokeOptions)
Use this data source to get information about a specific service.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;
class MyStack : Stack
{
public MyStack()
{
var exampleService = Output.Create(Pagerduty.GetService.InvokeAsync(new Pagerduty.GetServiceArgs
{
Name = "My Service",
}));
var datadog = Output.Create(Pagerduty.GetVendor.InvokeAsync(new Pagerduty.GetVendorArgs
{
Name = "Datadog",
}));
var exampleServiceIntegration = new Pagerduty.ServiceIntegration("exampleServiceIntegration", new Pagerduty.ServiceIntegrationArgs
{
Vendor = datadog.Apply(datadog => datadog.Id),
Service = exampleService.Apply(exampleService => exampleService.Id),
Type = "generic_events_api_inbound_integration",
});
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetServiceArgs | args | |
| Pulumi.InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetServiceResult> |