PagerDuty v4.13.2 published on Thursday, Jun 27, 2024 by Pulumi
pagerduty.getServiceIntegration
Explore with Pulumi AI
Use this data source to get information about a specific service_integration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";
const example = pagerduty.getServiceIntegration({
serviceName: "My Service",
integrationSummary: "Datadog",
});
import pulumi
import pulumi_pagerduty as pagerduty
example = pagerduty.get_service_integration(service_name="My Service",
integration_summary="Datadog")
package main
import (
"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := pagerduty.LookupServiceIntegration(ctx, &pagerduty.LookupServiceIntegrationArgs{
ServiceName: "My Service",
IntegrationSummary: "Datadog",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;
return await Deployment.RunAsync(() =>
{
var example = Pagerduty.GetServiceIntegration.Invoke(new()
{
ServiceName = "My Service",
IntegrationSummary = "Datadog",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.pagerduty.PagerdutyFunctions;
import com.pulumi.pagerduty.inputs.GetServiceIntegrationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = PagerdutyFunctions.getServiceIntegration(GetServiceIntegrationArgs.builder()
.serviceName("My Service")
.integrationSummary("Datadog")
.build());
}
}
variables:
example:
fn::invoke:
Function: pagerduty:getServiceIntegration
Arguments:
serviceName: My Service
integrationSummary: Datadog
Using getServiceIntegration
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getServiceIntegration(args: GetServiceIntegrationArgs, opts?: InvokeOptions): Promise<GetServiceIntegrationResult>
function getServiceIntegrationOutput(args: GetServiceIntegrationOutputArgs, opts?: InvokeOptions): Output<GetServiceIntegrationResult>
def get_service_integration(integration_summary: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceIntegrationResult
def get_service_integration_output(integration_summary: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceIntegrationResult]
func LookupServiceIntegration(ctx *Context, args *LookupServiceIntegrationArgs, opts ...InvokeOption) (*LookupServiceIntegrationResult, error)
func LookupServiceIntegrationOutput(ctx *Context, args *LookupServiceIntegrationOutputArgs, opts ...InvokeOption) LookupServiceIntegrationResultOutput
> Note: This function is named LookupServiceIntegration
in the Go SDK.
public static class GetServiceIntegration
{
public static Task<GetServiceIntegrationResult> InvokeAsync(GetServiceIntegrationArgs args, InvokeOptions? opts = null)
public static Output<GetServiceIntegrationResult> Invoke(GetServiceIntegrationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServiceIntegrationResult> getServiceIntegration(GetServiceIntegrationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: pagerduty:index/getServiceIntegration:getServiceIntegration
arguments:
# arguments dictionary
The following arguments are supported:
- Integration
Summary string - The integration summary used to find the desired integration on the service.
- Service
Name string - The service name to use to find a service in the PagerDuty API.
- Integration
Summary string - The integration summary used to find the desired integration on the service.
- Service
Name string - The service name to use to find a service in the PagerDuty API.
- integration
Summary String - The integration summary used to find the desired integration on the service.
- service
Name String - The service name to use to find a service in the PagerDuty API.
- integration
Summary string - The integration summary used to find the desired integration on the service.
- service
Name string - The service name to use to find a service in the PagerDuty API.
- integration_
summary str - The integration summary used to find the desired integration on the service.
- service_
name str - The service name to use to find a service in the PagerDuty API.
- integration
Summary String - The integration summary used to find the desired integration on the service.
- service
Name String - The service name to use to find a service in the PagerDuty API.
getServiceIntegration Result
The following output properties are available:
- Id string
- Integration
Key string - The integration key for the integration. This can be used to configure alerts.
- Integration
Summary string - Service
Name string
- Id string
- Integration
Key string - The integration key for the integration. This can be used to configure alerts.
- Integration
Summary string - Service
Name string
- id String
- integration
Key String - The integration key for the integration. This can be used to configure alerts.
- integration
Summary String - service
Name String
- id string
- integration
Key string - The integration key for the integration. This can be used to configure alerts.
- integration
Summary string - service
Name string
- id str
- integration_
key str - The integration key for the integration. This can be used to configure alerts.
- integration_
summary str - service_
name str
- id String
- integration
Key String - The integration key for the integration. This can be used to configure alerts.
- integration
Summary String - service
Name String
Package Details
- Repository
- PagerDuty pulumi/pulumi-pagerduty
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
pagerduty
Terraform Provider.