1. Packages
  2. Sentry
  3. API Docs
  4. getSentryKey
Sentry v0.0.8 published on Saturday, Dec 3, 2022 by Pulumiverse

sentry.getSentryKey

Explore with Pulumi AI

sentry logo
Sentry v0.0.8 published on Saturday, Dec 3, 2022 by Pulumiverse

    # sentry.SentryKey Data Source

    Sentry Key data source.

    Example Usage

    using Pulumi;
    using Sentry = Pulumi.Sentry;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var @default = Output.Create(Sentry.GetSentryKey.InvokeAsync(new Sentry.GetSentryKeyArgs
            {
                Name = "Default",
                Organization = "my-organization",
                Project = "web-app",
            }));
        }
    
    }
    
    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.LookupSentryKey(ctx, &GetSentryKeyArgs{
    			Name:         pulumi.StringRef("Default"),
    			Organization: "my-organization",
    			Project:      "web-app",
    		}, 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 default = Output.of(SentryFunctions.getSentryKey(GetSentryKeyArgs.builder()
                .name("Default")
                .organization("my-organization")
                .project("web-app")
                .build()));
    
        }
    }
    
    import pulumi
    import pulumi_sentry as sentry
    
    default = sentry.get_sentry_key(name="Default",
        organization="my-organization",
        project="web-app")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as sentry from "@pulumi/sentry";
    
    // Retrieve the Default Key
    const defaultSentryKey = pulumi.output(sentry.getSentryKey({
        name: "Default",
        organization: "my-organization",
        project: "web-app",
    }));
    
    variables:
      default:
        Fn::Invoke:
          Function: sentry:getSentryKey
          Arguments:
            name: Default
            organization: my-organization
            project: web-app
    

    Using getSentryKey

    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 getSentryKey(args: GetSentryKeyArgs, opts?: InvokeOptions): Promise<GetSentryKeyResult>
    function getSentryKeyOutput(args: GetSentryKeyOutputArgs, opts?: InvokeOptions): Output<GetSentryKeyResult>
    def get_sentry_key(first: Optional[bool] = None,
                       name: Optional[str] = None,
                       organization: Optional[str] = None,
                       project: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetSentryKeyResult
    def get_sentry_key_output(first: Optional[pulumi.Input[bool]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       organization: Optional[pulumi.Input[str]] = None,
                       project: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetSentryKeyResult]
    func LookupSentryKey(ctx *Context, args *LookupSentryKeyArgs, opts ...InvokeOption) (*LookupSentryKeyResult, error)
    func LookupSentryKeyOutput(ctx *Context, args *LookupSentryKeyOutputArgs, opts ...InvokeOption) LookupSentryKeyResultOutput

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

    public static class GetSentryKey 
    {
        public static Task<GetSentryKeyResult> InvokeAsync(GetSentryKeyArgs args, InvokeOptions? opts = null)
        public static Output<GetSentryKeyResult> Invoke(GetSentryKeyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSentryKeyResult> getSentryKey(GetSentryKeyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: sentry:index/getSentryKey:getSentryKey
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Organization string

    The slug of the organization the key should be created for.

    Project string

    The slug of the project the key should be created for.

    First bool

    Boolean flag indicating that we want the first key of the returned keys.

    Name string

    The name of the key to retrieve.

    Organization string

    The slug of the organization the key should be created for.

    Project string

    The slug of the project the key should be created for.

    First bool

    Boolean flag indicating that we want the first key of the returned keys.

    Name string

    The name of the key to retrieve.

    organization String

    The slug of the organization the key should be created for.

    project String

    The slug of the project the key should be created for.

    first Boolean

    Boolean flag indicating that we want the first key of the returned keys.

    name String

    The name of the key to retrieve.

    organization string

    The slug of the organization the key should be created for.

    project string

    The slug of the project the key should be created for.

    first boolean

    Boolean flag indicating that we want the first key of the returned keys.

    name string

    The name of the key to retrieve.

    organization str

    The slug of the organization the key should be created for.

    project str

    The slug of the project the key should be created for.

    first bool

    Boolean flag indicating that we want the first key of the returned keys.

    name str

    The name of the key to retrieve.

    organization String

    The slug of the organization the key should be created for.

    project String

    The slug of the project the key should be created for.

    first Boolean

    Boolean flag indicating that we want the first key of the returned keys.

    name String

    The name of the key to retrieve.

    getSentryKey Result

    The following output properties are available:

    DsnCsp string

    DSN for the Content Security Policy (CSP) for the key.

    DsnPublic string

    DSN for the key.

    DsnSecret string

    DSN (Deprecated) for the key.

    Id string

    The provider-assigned unique ID for this managed resource.

    IsActive bool

    Flag indicating the key is active.

    Organization string
    Project string
    ProjectId int

    The ID of the project that the key belongs to.

    Public string

    Public key portion of the client key.

    RateLimitCount int

    Number of events that can be reported within the rate limit window.

    RateLimitWindow int

    Length of time that will be considered when checking the rate limit.

    Secret string

    Secret key portion of the client key.

    First bool
    Name string
    DsnCsp string

    DSN for the Content Security Policy (CSP) for the key.

    DsnPublic string

    DSN for the key.

    DsnSecret string

    DSN (Deprecated) for the key.

    Id string

    The provider-assigned unique ID for this managed resource.

    IsActive bool

    Flag indicating the key is active.

    Organization string
    Project string
    ProjectId int

    The ID of the project that the key belongs to.

    Public string

    Public key portion of the client key.

    RateLimitCount int

    Number of events that can be reported within the rate limit window.

    RateLimitWindow int

    Length of time that will be considered when checking the rate limit.

    Secret string

    Secret key portion of the client key.

    First bool
    Name string
    dsnCsp String

    DSN for the Content Security Policy (CSP) for the key.

    dsnPublic String

    DSN for the key.

    dsnSecret String

    DSN (Deprecated) for the key.

    id String

    The provider-assigned unique ID for this managed resource.

    isActive Boolean

    Flag indicating the key is active.

    organization String
    project String
    projectId Integer

    The ID of the project that the key belongs to.

    public_ String

    Public key portion of the client key.

    rateLimitCount Integer

    Number of events that can be reported within the rate limit window.

    rateLimitWindow Integer

    Length of time that will be considered when checking the rate limit.

    secret String

    Secret key portion of the client key.

    first Boolean
    name String
    dsnCsp string

    DSN for the Content Security Policy (CSP) for the key.

    dsnPublic string

    DSN for the key.

    dsnSecret string

    DSN (Deprecated) for the key.

    id string

    The provider-assigned unique ID for this managed resource.

    isActive boolean

    Flag indicating the key is active.

    organization string
    project string
    projectId number

    The ID of the project that the key belongs to.

    public string

    Public key portion of the client key.

    rateLimitCount number

    Number of events that can be reported within the rate limit window.

    rateLimitWindow number

    Length of time that will be considered when checking the rate limit.

    secret string

    Secret key portion of the client key.

    first boolean
    name string
    dsn_csp str

    DSN for the Content Security Policy (CSP) for the key.

    dsn_public str

    DSN for the key.

    dsn_secret str

    DSN (Deprecated) for the key.

    id str

    The provider-assigned unique ID for this managed resource.

    is_active bool

    Flag indicating the key is active.

    organization str
    project str
    project_id int

    The ID of the project that the key belongs to.

    public str

    Public key portion of the client key.

    rate_limit_count int

    Number of events that can be reported within the rate limit window.

    rate_limit_window int

    Length of time that will be considered when checking the rate limit.

    secret str

    Secret key portion of the client key.

    first bool
    name str
    dsnCsp String

    DSN for the Content Security Policy (CSP) for the key.

    dsnPublic String

    DSN for the key.

    dsnSecret String

    DSN (Deprecated) for the key.

    id String

    The provider-assigned unique ID for this managed resource.

    isActive Boolean

    Flag indicating the key is active.

    organization String
    project String
    projectId Number

    The ID of the project that the key belongs to.

    public String

    Public key portion of the client key.

    rateLimitCount Number

    Number of events that can be reported within the rate limit window.

    rateLimitWindow Number

    Length of time that will be considered when checking the rate limit.

    secret String

    Secret key portion of the client key.

    first Boolean
    name String

    Package Details

    Repository
    sentry pulumiverse/pulumi-sentry
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the sentry Terraform Provider.

    sentry logo
    Sentry v0.0.8 published on Saturday, Dec 3, 2022 by Pulumiverse