1. Packages
  2. PagerDuty
  3. API Docs
  4. getServiceIntegration
PagerDuty v4.10.1 published on Wednesday, Mar 27, 2024 by Pulumi

pagerduty.getServiceIntegration

Explore with Pulumi AI

pagerduty logo
PagerDuty v4.10.1 published on Wednesday, Mar 27, 2024 by Pulumi

    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({
        integrationSummary: "Datadog",
        serviceName: "My Service",
    });
    
    import pulumi
    import pulumi_pagerduty as pagerduty
    
    example = pagerduty.get_service_integration(integration_summary="Datadog",
        service_name="My Service")
    
    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{
    			IntegrationSummary: "Datadog",
    			ServiceName:        "My Service",
    		}, 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()
        {
            IntegrationSummary = "Datadog",
            ServiceName = "My Service",
        });
    
    });
    
    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());
    
        }
    }
    
    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
    PagerDuty pulumi/pulumi-pagerduty
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the pagerduty Terraform Provider.
    pagerduty logo
    PagerDuty v4.10.1 published on Wednesday, Mar 27, 2024 by Pulumi