Sentry v0.0.8 published on Saturday, Dec 3, 2022 by Pulumiverse
sentry.getSentryOrganization
Explore with Pulumi AI
# sentry.SentryOrganization Data Source
Sentry Organization data source.
Example Usage
using Pulumi;
using Sentry = Pulumi.Sentry;
class MyStack : Stack
{
    public MyStack()
    {
        var org = Output.Create(Sentry.GetSentryOrganization.InvokeAsync(new Sentry.GetSentryOrganizationArgs
        {
            Slug = "my-organization",
        }));
    }
}
package main
import (
	"github.com/pulumi/pulumi-sentry/sdk/go/sentry"
	"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 {
		_, err := sentry.LookupSentryOrganization(ctx, &GetSentryOrganizationArgs{
			Slug: "my-organization",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var org = Output.of(SentryFunctions.getSentryOrganization(GetSentryOrganizationArgs.builder()
            .slug("my-organization")
            .build()));
    }
}
import pulumi
import pulumi_sentry as sentry
org = sentry.get_sentry_organization(slug="my-organization")
import * as pulumi from "@pulumi/pulumi";
import * as sentry from "@pulumi/sentry";
// Retrieve the organization
const org = pulumi.output(sentry.getSentryOrganization({
    slug: "my-organization",
}));
variables:
  org:
    Fn::Invoke:
      Function: sentry:getSentryOrganization
      Arguments:
        slug: my-organization
Using getSentryOrganization
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 getSentryOrganization(args: GetSentryOrganizationArgs, opts?: InvokeOptions): Promise<GetSentryOrganizationResult>
function getSentryOrganizationOutput(args: GetSentryOrganizationOutputArgs, opts?: InvokeOptions): Output<GetSentryOrganizationResult>def get_sentry_organization(slug: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetSentryOrganizationResult
def get_sentry_organization_output(slug: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetSentryOrganizationResult]func LookupSentryOrganization(ctx *Context, args *LookupSentryOrganizationArgs, opts ...InvokeOption) (*LookupSentryOrganizationResult, error)
func LookupSentryOrganizationOutput(ctx *Context, args *LookupSentryOrganizationOutputArgs, opts ...InvokeOption) LookupSentryOrganizationResultOutput> Note: This function is named LookupSentryOrganization in the Go SDK.
public static class GetSentryOrganization 
{
    public static Task<GetSentryOrganizationResult> InvokeAsync(GetSentryOrganizationArgs args, InvokeOptions? opts = null)
    public static Output<GetSentryOrganizationResult> Invoke(GetSentryOrganizationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSentryOrganizationResult> getSentryOrganization(GetSentryOrganizationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: sentry:index/getSentryOrganization:getSentryOrganization
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Slug string
 - The unique URL slug for this organization.
 
- Slug string
 - The unique URL slug for this organization.
 
- slug String
 - The unique URL slug for this organization.
 
- slug string
 - The unique URL slug for this organization.
 
- slug str
 - The unique URL slug for this organization.
 
- slug String
 - The unique URL slug for this organization.
 
getSentryOrganization Result
The following output properties are available:
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Internal
Id string - Name string
 - The human readable name for this organization.
 - Slug string
 - The unique URL slug for this organization.
 
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Internal
Id string - Name string
 - The human readable name for this organization.
 - Slug string
 - The unique URL slug for this organization.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - internal
Id String - name String
 - The human readable name for this organization.
 - slug String
 - The unique URL slug for this organization.
 
- id string
 - The provider-assigned unique ID for this managed resource.
 - internal
Id string - name string
 - The human readable name for this organization.
 - slug string
 - The unique URL slug for this organization.
 
- id str
 - The provider-assigned unique ID for this managed resource.
 - internal_
id str - name str
 - The human readable name for this organization.
 - slug str
 - The unique URL slug for this organization.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - internal
Id String - name String
 - The human readable name for this organization.
 - slug String
 - The unique URL slug for this organization.
 
Package Details
- Repository
 - sentry pulumiverse/pulumi-sentry
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
sentryTerraform Provider.