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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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>
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]
func GetSentryOrganizationIntegration(ctx *Context, args *GetSentryOrganizationIntegrationArgs, opts ...InvokeOption) (*GetSentryOrganizationIntegrationResult, error)
func GetSentryOrganizationIntegrationOutput(ctx *Context, args *GetSentryOrganizationIntegrationOutputArgs, opts ...InvokeOption) GetSentryOrganizationIntegrationResultOutput
> 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)
}
public static CompletableFuture<GetSentryOrganizationIntegrationResult> getSentryOrganizationIntegration(GetSentryOrganizationIntegrationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: sentry:index/getSentryOrganizationIntegration:getSentryOrganizationIntegration
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the organization integration.
- Organization string
- The slug of the organization the integration belongs to.
- Provider
Key string - The key of the organization integration provider.
- Name string
- The name of the organization integration.
- Organization string
- The slug of the organization the integration belongs to.
- Provider
Key string - The key of the organization integration provider.
- name String
- The name of the organization integration.
- organization String
- The slug of the organization the integration belongs to.
- provider
Key String - The key of the organization integration provider.
- name string
- The name of the organization integration.
- organization string
- The slug of the organization the integration belongs to.
- provider
Key string - The key of the organization integration provider.
- 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.
- name String
- The name of the organization integration.
- organization String
- The slug of the organization the integration belongs to.
- provider
Key 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.
- Internal
Id 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.
- Provider
Key string - The key of the organization integration provider.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Id 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.
- Provider
Key string - The key of the organization integration provider.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Id 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.
- provider
Key String - The key of the organization integration provider.
- id string
- The provider-assigned unique ID for this managed resource.
- internal
Id 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.
- provider
Key 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.
- internal
Id 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.
- provider
Key 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.