SignalFx v7.4.0 published on Monday, Nov 18, 2024 by Pulumi
signalfx.pagerduty.getIntegration
Explore with Pulumi AI
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")
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
})
}
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 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
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
- Specify the exact name of the desired PagerDuty integration
- Name string
- Specify the exact name of the desired PagerDuty integration
- name String
- Specify the exact name of the desired PagerDuty integration
- name string
- Specify the exact name of the desired PagerDuty integration
- name str
- Specify the exact name of the desired PagerDuty integration
- name String
- Specify the exact name of the desired PagerDuty integration
getIntegration Result
The following output properties are available:
Package Details
- Repository
- SignalFx pulumi/pulumi-signalfx
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
signalfx
Terraform Provider.