1. Packages
  2. SignalFx
  3. API Docs
  4. pagerduty
  5. getIntegration
SignalFx v7.0.2 published on Tuesday, Jan 23, 2024 by Pulumi

signalfx.pagerduty.getIntegration

Explore with Pulumi AI

signalfx logo
SignalFx v7.0.2 published on Tuesday, Jan 23, 2024 by Pulumi

    Use this data source to get information on an existing PagerDuty integration.

    Example

    import * as pulumi from "@pulumi/pulumi";
    import * as signalfx from "@pulumi/signalfx";
    
    const pdIntegration = signalfx.pagerduty.getIntegration({
        name: "PD-Integration",
    });
    
    import pulumi
    import pulumi_signalfx as signalfx
    
    pd_integration = signalfx.pagerduty.get_integration(name="PD-Integration")
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using SignalFx = Pulumi.SignalFx;
    
    return await Deployment.RunAsync(() => 
    {
        var pdIntegration = SignalFx.PagerDuty.GetIntegration.Invoke(new()
        {
            Name = "PD-Integration",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-signalfx/sdk/v7/go/signalfx/pagerduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := pagerduty.LookupIntegration(ctx, &pagerduty.LookupIntegrationArgs{
    			Name: "PD-Integration",
    		}, 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.signalfx.pagerduty.PagerdutyFunctions;
    import com.pulumi.signalfx.pagerduty.inputs.GetIntegrationArgs;
    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 pdIntegration = PagerdutyFunctions.getIntegration(GetIntegrationArgs.builder()
                .name("PD-Integration")
                .build());
    
        }
    }
    
    variables:
      pdIntegration:
        fn::invoke:
          Function: signalfx:pagerduty:getIntegration
          Arguments:
            name: PD-Integration
    

    Arguments

    • name - Specify the exact name of the desired PagerDuty integration

    Attributes

    • id - The ID of the integration.
    • name - The name of the integration.
    • enabled - Whether the integration is enabled.

    Using getIntegration

    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 getIntegration(args: GetIntegrationArgs, opts?: InvokeOptions): Promise<GetIntegrationResult>
    function getIntegrationOutput(args: GetIntegrationOutputArgs, opts?: InvokeOptions): Output<GetIntegrationResult>
    def get_integration(name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetIntegrationResult
    def get_integration_output(name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetIntegrationResult]
    func LookupIntegration(ctx *Context, args *LookupIntegrationArgs, opts ...InvokeOption) (*LookupIntegrationResult, error)
    func LookupIntegrationOutput(ctx *Context, args *LookupIntegrationOutputArgs, opts ...InvokeOption) LookupIntegrationResultOutput

    > Note: This function is named LookupIntegration in the Go SDK.

    public static class GetIntegration 
    {
        public static Task<GetIntegrationResult> InvokeAsync(GetIntegrationArgs args, InvokeOptions? opts = null)
        public static Output<GetIntegrationResult> Invoke(GetIntegrationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIntegrationResult> getIntegration(GetIntegrationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: signalfx:pagerduty/getIntegration:getIntegration
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name string
    name String
    name string
    name str
    name String

    getIntegration Result

    The following output properties are available:

    Enabled bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Enabled bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    enabled Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    enabled boolean
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    enabled bool
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    enabled Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    name String

    Package Details

    Repository
    SignalFx pulumi/pulumi-signalfx
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the signalfx Terraform Provider.
    signalfx logo
    SignalFx v7.0.2 published on Tuesday, Jan 23, 2024 by Pulumi