Sentry v0.0.8 published on Saturday, Dec 3, 2022 by Pulumiverse
sentry.getSentryKey
Explore with Pulumi AI
# 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:
- Dsn
Csp string - DSN for the Content Security Policy (CSP) for the key.
- Dsn
Public string - DSN for the key.
- Dsn
Secret string - DSN (Deprecated) for the key.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Active bool - Flag indicating the key is active.
- Organization string
- Project string
- Project
Id int - The ID of the project that the key belongs to.
- Public string
- Public key portion of the client key.
- Rate
Limit intCount - Number of events that can be reported within the rate limit window.
- Rate
Limit intWindow - 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
- Dsn
Csp string - DSN for the Content Security Policy (CSP) for the key.
- Dsn
Public string - DSN for the key.
- Dsn
Secret string - DSN (Deprecated) for the key.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Active bool - Flag indicating the key is active.
- Organization string
- Project string
- Project
Id int - The ID of the project that the key belongs to.
- Public string
- Public key portion of the client key.
- Rate
Limit intCount - Number of events that can be reported within the rate limit window.
- Rate
Limit intWindow - 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
- dsn
Csp String - DSN for the Content Security Policy (CSP) for the key.
- dsn
Public String - DSN for the key.
- dsn
Secret String - DSN (Deprecated) for the key.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Active Boolean - Flag indicating the key is active.
- organization String
- project String
- project
Id Integer - The ID of the project that the key belongs to.
- public_ String
- Public key portion of the client key.
- rate
Limit IntegerCount - Number of events that can be reported within the rate limit window.
- rate
Limit IntegerWindow - 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 string - DSN for the Content Security Policy (CSP) for the key.
- dsn
Public string - DSN for the key.
- dsn
Secret string - DSN (Deprecated) for the key.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Active boolean - Flag indicating the key is active.
- organization string
- project string
- project
Id number - The ID of the project that the key belongs to.
- public string
- Public key portion of the client key.
- rate
Limit numberCount - Number of events that can be reported within the rate limit window.
- rate
Limit numberWindow - 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_ intcount - Number of events that can be reported within the rate limit window.
- rate_
limit_ intwindow - 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
- dsn
Csp String - DSN for the Content Security Policy (CSP) for the key.
- dsn
Public String - DSN for the key.
- dsn
Secret String - DSN (Deprecated) for the key.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Active Boolean - Flag indicating the key is active.
- organization String
- project String
- project
Id Number - The ID of the project that the key belongs to.
- public String
- Public key portion of the client key.
- rate
Limit NumberCount - Number of events that can be reported within the rate limit window.
- rate
Limit NumberWindow - 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.