1. Packages
  2. Sentry
  3. API Docs
  4. getSentryOrganizationIntegration
Sentry v0.0.9 published on Friday, Nov 15, 2024 by Pulumiverse

sentry.getSentryOrganizationIntegration

Explore with Pulumi AI

Sentry Organization Integration data source.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as sentry from "@pulumi/sentry";

// Retrieve a Github organization integration
const github = sentry.getSentryOrganizationIntegration({
    organization: "my-organization",
    providerKey: "github",
    name: "my-github-organization",
});
// Retrieve a Slack integration
const slack = sentry.getSentryOrganizationIntegration({
    organization: "my-organization",
    providerKey: "slack",
    name: "Slack Workspace",
});
Copy
import pulumi
import pulumi_sentry as sentry

# Retrieve a Github organization integration
github = sentry.get_sentry_organization_integration(organization="my-organization",
    provider_key="github",
    name="my-github-organization")
# Retrieve a Slack integration
slack = sentry.get_sentry_organization_integration(organization="my-organization",
    provider_key="slack",
    name="Slack Workspace")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Retrieve a Github organization integration
		_, err := sentry.GetSentryOrganizationIntegration(ctx, &sentry.GetSentryOrganizationIntegrationArgs{
			Organization: "my-organization",
			ProviderKey:  "github",
			Name:         "my-github-organization",
		}, nil)
		if err != nil {
			return err
		}
		// Retrieve a Slack integration
		_, err = sentry.GetSentryOrganizationIntegration(ctx, &sentry.GetSentryOrganizationIntegrationArgs{
			Organization: "my-organization",
			ProviderKey:  "slack",
			Name:         "Slack Workspace",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sentry = Pulumi.Sentry;

return await Deployment.RunAsync(() => 
{
    // Retrieve a Github organization integration
    var github = Sentry.GetSentryOrganizationIntegration.Invoke(new()
    {
        Organization = "my-organization",
        ProviderKey = "github",
        Name = "my-github-organization",
    });

    // Retrieve a Slack integration
    var slack = Sentry.GetSentryOrganizationIntegration.Invoke(new()
    {
        Organization = "my-organization",
        ProviderKey = "slack",
        Name = "Slack Workspace",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sentry.SentryFunctions;
import com.pulumi.sentry.inputs.GetSentryOrganizationIntegrationArgs;
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) {
        // Retrieve a Github organization integration
        final var github = SentryFunctions.getSentryOrganizationIntegration(GetSentryOrganizationIntegrationArgs.builder()
            .organization("my-organization")
            .providerKey("github")
            .name("my-github-organization")
            .build());

        // Retrieve a Slack integration
        final var slack = SentryFunctions.getSentryOrganizationIntegration(GetSentryOrganizationIntegrationArgs.builder()
            .organization("my-organization")
            .providerKey("slack")
            .name("Slack Workspace")
            .build());

    }
}
Copy
variables:
  # Retrieve a Github organization integration
  github:
    fn::invoke:
      Function: sentry:getSentryOrganizationIntegration
      Arguments:
        organization: my-organization
        providerKey: github
        name: my-github-organization
  # Retrieve a Slack integration
  slack:
    fn::invoke:
      Function: sentry:getSentryOrganizationIntegration
      Arguments:
        organization: my-organization
        providerKey: slack
        name: Slack Workspace
Copy

Using getSentryOrganizationIntegration

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 getSentryOrganizationIntegration(args: GetSentryOrganizationIntegrationArgs, opts?: InvokeOptions): Promise<GetSentryOrganizationIntegrationResult>
function getSentryOrganizationIntegrationOutput(args: GetSentryOrganizationIntegrationOutputArgs, opts?: InvokeOptions): Output<GetSentryOrganizationIntegrationResult>
Copy
def get_sentry_organization_integration(name: Optional[str] = None,
                                        organization: Optional[str] = None,
                                        provider_key: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetSentryOrganizationIntegrationResult
def get_sentry_organization_integration_output(name: Optional[pulumi.Input[str]] = None,
                                        organization: Optional[pulumi.Input[str]] = None,
                                        provider_key: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetSentryOrganizationIntegrationResult]
Copy
func GetSentryOrganizationIntegration(ctx *Context, args *GetSentryOrganizationIntegrationArgs, opts ...InvokeOption) (*GetSentryOrganizationIntegrationResult, error)
func GetSentryOrganizationIntegrationOutput(ctx *Context, args *GetSentryOrganizationIntegrationOutputArgs, opts ...InvokeOption) GetSentryOrganizationIntegrationResultOutput
Copy

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

public static class GetSentryOrganizationIntegration 
{
    public static Task<GetSentryOrganizationIntegrationResult> InvokeAsync(GetSentryOrganizationIntegrationArgs args, InvokeOptions? opts = null)
    public static Output<GetSentryOrganizationIntegrationResult> Invoke(GetSentryOrganizationIntegrationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSentryOrganizationIntegrationResult> getSentryOrganizationIntegration(GetSentryOrganizationIntegrationArgs args, InvokeOptions options)
public static Output<GetSentryOrganizationIntegrationResult> getSentryOrganizationIntegration(GetSentryOrganizationIntegrationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: sentry:index/getSentryOrganizationIntegration:getSentryOrganizationIntegration
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of the organization integration.
Organization This property is required. string
The slug of the organization the integration belongs to.
ProviderKey This property is required. string
The key of the organization integration provider.
Name This property is required. string
The name of the organization integration.
Organization This property is required. string
The slug of the organization the integration belongs to.
ProviderKey This property is required. string
The key of the organization integration provider.
name This property is required. String
The name of the organization integration.
organization This property is required. String
The slug of the organization the integration belongs to.
providerKey This property is required. String
The key of the organization integration provider.
name This property is required. string
The name of the organization integration.
organization This property is required. string
The slug of the organization the integration belongs to.
providerKey This property is required. string
The key of the organization integration provider.
name This property is required. str
The name of the organization integration.
organization This property is required. str
The slug of the organization the integration belongs to.
provider_key This property is required. str
The key of the organization integration provider.
name This property is required. String
The name of the organization integration.
organization This property is required. String
The slug of the organization the integration belongs to.
providerKey This property is required. String
The key of the organization integration provider.

getSentryOrganizationIntegration Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
InternalId string
The internal ID for this organization integration.
Name string
The name of the organization integration.
Organization string
The slug of the organization the integration belongs to.
ProviderKey string
The key of the organization integration provider.
Id string
The provider-assigned unique ID for this managed resource.
InternalId string
The internal ID for this organization integration.
Name string
The name of the organization integration.
Organization string
The slug of the organization the integration belongs to.
ProviderKey string
The key of the organization integration provider.
id String
The provider-assigned unique ID for this managed resource.
internalId String
The internal ID for this organization integration.
name String
The name of the organization integration.
organization String
The slug of the organization the integration belongs to.
providerKey String
The key of the organization integration provider.
id string
The provider-assigned unique ID for this managed resource.
internalId string
The internal ID for this organization integration.
name string
The name of the organization integration.
organization string
The slug of the organization the integration belongs to.
providerKey string
The key of the organization integration provider.
id str
The provider-assigned unique ID for this managed resource.
internal_id str
The internal ID for this organization integration.
name str
The name of the organization integration.
organization str
The slug of the organization the integration belongs to.
provider_key str
The key of the organization integration provider.
id String
The provider-assigned unique ID for this managed resource.
internalId String
The internal ID for this organization integration.
name String
The name of the organization integration.
organization String
The slug of the organization the integration belongs to.
providerKey String
The key of the organization integration provider.

Package Details

Repository
sentry pulumiverse/pulumi-sentry
License
Apache-2.0
Notes
This Pulumi package is based on the sentry Terraform Provider.