Datadog v4.34.0 published on Friday, Oct 4, 2024 by Pulumi
datadog.getApplicationKey
Explore with Pulumi AI
Use this data source to retrieve information about an existing application key. Deprecated. This will be removed in a future release with prior notice. Securely store your application keys using a secret management system or use the datadog.ApplicationKey resource to manage application keys in your Datadog account.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
const foo = datadog.getApplicationKey({
name: "foo-application",
});
import pulumi
import pulumi_datadog as datadog
foo = datadog.get_application_key(name="foo-application")
package main
import (
"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datadog.LookupApplicationKey(ctx, &datadog.LookupApplicationKeyArgs{
Name: pulumi.StringRef("foo-application"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() =>
{
var foo = Datadog.GetApplicationKey.Invoke(new()
{
Name = "foo-application",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.DatadogFunctions;
import com.pulumi.datadog.inputs.GetApplicationKeyArgs;
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) {
final var foo = DatadogFunctions.getApplicationKey(GetApplicationKeyArgs.builder()
.name("foo-application")
.build());
}
}
variables:
foo:
fn::invoke:
Function: datadog:getApplicationKey
Arguments:
name: foo-application
Using getApplicationKey
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 getApplicationKey(args: GetApplicationKeyArgs, opts?: InvokeOptions): Promise<GetApplicationKeyResult>
function getApplicationKeyOutput(args: GetApplicationKeyOutputArgs, opts?: InvokeOptions): Output<GetApplicationKeyResult>
def get_application_key(exact_match: Optional[bool] = None,
id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetApplicationKeyResult
def get_application_key_output(exact_match: Optional[pulumi.Input[bool]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApplicationKeyResult]
func LookupApplicationKey(ctx *Context, args *LookupApplicationKeyArgs, opts ...InvokeOption) (*LookupApplicationKeyResult, error)
func LookupApplicationKeyOutput(ctx *Context, args *LookupApplicationKeyOutputArgs, opts ...InvokeOption) LookupApplicationKeyResultOutput
> Note: This function is named LookupApplicationKey
in the Go SDK.
public static class GetApplicationKey
{
public static Task<GetApplicationKeyResult> InvokeAsync(GetApplicationKeyArgs args, InvokeOptions? opts = null)
public static Output<GetApplicationKeyResult> Invoke(GetApplicationKeyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApplicationKeyResult> getApplicationKey(GetApplicationKeyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: datadog:index/getApplicationKey:getApplicationKey
arguments:
# arguments dictionary
The following arguments are supported:
- Exact
Match bool - Whether to use exact match when searching by name.
- Id string
- Id for Application Key.
- Name string
- Name for Application Key.
- Exact
Match bool - Whether to use exact match when searching by name.
- Id string
- Id for Application Key.
- Name string
- Name for Application Key.
- exact
Match Boolean - Whether to use exact match when searching by name.
- id String
- Id for Application Key.
- name String
- Name for Application Key.
- exact
Match boolean - Whether to use exact match when searching by name.
- id string
- Id for Application Key.
- name string
- Name for Application Key.
- exact_
match bool - Whether to use exact match when searching by name.
- id str
- Id for Application Key.
- name str
- Name for Application Key.
- exact
Match Boolean - Whether to use exact match when searching by name.
- id String
- Id for Application Key.
- name String
- Name for Application Key.
getApplicationKey Result
The following output properties are available:
- Key string
- The value of the Application Key.
- Exact
Match bool - Whether to use exact match when searching by name.
- Id string
- Id for Application Key.
- Name string
- Name for Application Key.
- Key string
- The value of the Application Key.
- Exact
Match bool - Whether to use exact match when searching by name.
- Id string
- Id for Application Key.
- Name string
- Name for Application Key.
- key String
- The value of the Application Key.
- exact
Match Boolean - Whether to use exact match when searching by name.
- id String
- Id for Application Key.
- name String
- Name for Application Key.
- key string
- The value of the Application Key.
- exact
Match boolean - Whether to use exact match when searching by name.
- id string
- Id for Application Key.
- name string
- Name for Application Key.
- key str
- The value of the Application Key.
- exact_
match bool - Whether to use exact match when searching by name.
- id str
- Id for Application Key.
- name str
- Name for Application Key.
- key String
- The value of the Application Key.
- exact
Match Boolean - Whether to use exact match when searching by name.
- id String
- Id for Application Key.
- name String
- Name for Application Key.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.