1. Packages
  2. Grafana Cloud
  3. API Docs
  4. getOncallIntegration
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse

grafana.getOncallIntegration

Explore with Pulumi AI

grafana logo
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse
    Deprecated: grafana.index/getoncallintegration.getOncallIntegration has been deprecated in favor of grafana.oncall/getintegration.getIntegration

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumi/grafana";
    
    const exampleIntegration = grafana.onCall.getIntegration({
        id: "CEXAMPLEID123",
    });
    
    import pulumi
    import pulumi_grafana as grafana
    
    example_integration = grafana.onCall.get_integration(id="CEXAMPLEID123")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/onCall"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := onCall.GetIntegration(ctx, &oncall.GetIntegrationArgs{
    			Id: "CEXAMPLEID123",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Grafana = Pulumi.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleIntegration = Grafana.OnCall.GetIntegration.Invoke(new()
        {
            Id = "CEXAMPLEID123",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.onCall.OnCallFunctions;
    import com.pulumi.grafana.onCall.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 exampleIntegration = OnCallFunctions.getIntegration(GetIntegrationArgs.builder()
                .id("CEXAMPLEID123")
                .build());
    
        }
    }
    
    variables:
      exampleIntegration:
        fn::invoke:
          Function: grafana:onCall:getIntegration
          Arguments:
            id: CEXAMPLEID123
    

    Using getOncallIntegration

    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 getOncallIntegration(args: GetOncallIntegrationArgs, opts?: InvokeOptions): Promise<GetOncallIntegrationResult>
    function getOncallIntegrationOutput(args: GetOncallIntegrationOutputArgs, opts?: InvokeOptions): Output<GetOncallIntegrationResult>
    def get_oncall_integration(id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetOncallIntegrationResult
    def get_oncall_integration_output(id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetOncallIntegrationResult]
    func LookupOncallIntegration(ctx *Context, args *LookupOncallIntegrationArgs, opts ...InvokeOption) (*LookupOncallIntegrationResult, error)
    func LookupOncallIntegrationOutput(ctx *Context, args *LookupOncallIntegrationOutputArgs, opts ...InvokeOption) LookupOncallIntegrationResultOutput

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

    public static class GetOncallIntegration 
    {
        public static Task<GetOncallIntegrationResult> InvokeAsync(GetOncallIntegrationArgs args, InvokeOptions? opts = null)
        public static Output<GetOncallIntegrationResult> Invoke(GetOncallIntegrationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOncallIntegrationResult> getOncallIntegration(GetOncallIntegrationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: grafana:index/getOncallIntegration:getOncallIntegration
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The integration ID.
    Id string
    The integration ID.
    id String
    The integration ID.
    id string
    The integration ID.
    id str
    The integration ID.
    id String
    The integration ID.

    getOncallIntegration Result

    The following output properties are available:

    Id string
    The integration ID.
    Name string
    The integration name.
    Id string
    The integration ID.
    Name string
    The integration name.
    id String
    The integration ID.
    name String
    The integration name.
    id string
    The integration ID.
    name string
    The integration name.
    id str
    The integration ID.
    name str
    The integration name.
    id String
    The integration ID.
    name String
    The integration name.

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse