PagerDuty

v3.6.0 published on Wednesday, Aug 31, 2022 by Pulumi

getServiceIntegration

Use this data source to get information about a specific service_integration.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

return await Deployment.RunAsync(() => 
{
    var example = Pagerduty.GetServiceIntegration.Invoke(new()
    {
        IntegrationSummary = "Datadog",
        ServiceName = "My Service",
    });

});
package main

import (
	"github.com/pulumi/pulumi-pagerduty/sdk/v3/go/pagerduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := pagerduty.LookupServiceIntegration(ctx, &GetServiceIntegrationArgs{
			IntegrationSummary: "Datadog",
			ServiceName:        "My Service",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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()
            .integrationSummary("Datadog")
            .serviceName("My Service")
            .build());

    }
}
import pulumi
import pulumi_pagerduty as pagerduty

example = pagerduty.get_service_integration(integration_summary="Datadog",
    service_name="My Service")
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";

const example = pulumi.output(pagerduty.getServiceIntegration({
    integrationSummary: "Datadog",
    serviceName: "My Service",
}));
variables:
  example:
    Fn::Invoke:
      Function: pagerduty:getServiceIntegration
      Arguments:
        integrationSummary: Datadog
        serviceName: My Service

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:

IntegrationSummary string

The integration summary used to find the desired integration on the service.

ServiceName string

The service name to use to find a service in the PagerDuty API.

IntegrationSummary string

The integration summary used to find the desired integration on the service.

ServiceName string

The service name to use to find a service in the PagerDuty API.

integrationSummary String

The integration summary used to find the desired integration on the service.

serviceName String

The service name to use to find a service in the PagerDuty API.

integrationSummary string

The integration summary used to find the desired integration on the service.

serviceName 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.

integrationSummary String

The integration summary used to find the desired integration on the service.

serviceName String

The service name to use to find a service in the PagerDuty API.

getServiceIntegration Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

IntegrationKey string

The integration key for the integration. This can be used to configure alerts.

IntegrationSummary string
ServiceName string
Id string

The provider-assigned unique ID for this managed resource.

IntegrationKey string

The integration key for the integration. This can be used to configure alerts.

IntegrationSummary string
ServiceName string
id String

The provider-assigned unique ID for this managed resource.

integrationKey String

The integration key for the integration. This can be used to configure alerts.

integrationSummary String
serviceName String
id string

The provider-assigned unique ID for this managed resource.

integrationKey string

The integration key for the integration. This can be used to configure alerts.

integrationSummary string
serviceName string
id str

The provider-assigned unique ID for this managed resource.

integration_key str

The integration key for the integration. This can be used to configure alerts.

integration_summary str
service_name str
id String

The provider-assigned unique ID for this managed resource.

integrationKey String

The integration key for the integration. This can be used to configure alerts.

integrationSummary String
serviceName String

Package Details

Repository
https://github.com/pulumi/pulumi-pagerduty
License
Apache-2.0
Notes

This Pulumi package is based on the pagerduty Terraform Provider.