GetSecureCredential

Use this data source to get information about a specific Synthetics secure credential in New Relic that already exists.

Note that the secure credential’s value is not returned as an attribute for security reasons.

Example Usage

using Pulumi;
using NewRelic = Pulumi.NewRelic;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(NewRelic.Synthetics.GetSecureCredential.InvokeAsync(new NewRelic.Synthetics.GetSecureCredentialArgs
        {
            Key = "MY_KEY",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_newrelic as newrelic

foo = newrelic.synthetics.get_secure_credential(key="MY_KEY")
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const foo = pulumi.output(newrelic.synthetics.getSecureCredential({
    key: "MY_KEY",
}, { async: true }));

Using GetSecureCredential

function getSecureCredential(args: GetSecureCredentialArgs, opts?: InvokeOptions): Promise<GetSecureCredentialResult>
function  get_secure_credential(key=None, opts=None)
func LookupSecureCredential(ctx *Context, args *LookupSecureCredentialArgs, opts ...InvokeOption) (*LookupSecureCredentialResult, error)

Note: This function is named LookupSecureCredential in the Go SDK.

public static class GetSecureCredential {
    public static Task<GetSecureCredentialResult> InvokeAsync(GetSecureCredentialArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Key string

The secure credential’s key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.

Key string

The secure credential’s key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.

key string

The secure credential’s key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.

key str

The secure credential’s key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.

GetSecureCredential Result

The following output properties are available:

CreatedAt string

The time the secure credential was created.

Description string

The secure credential’s description.

Id string

The provider-assigned unique ID for this managed resource.

Key string
LastUpdated string

The time the secure credential was last updated.

CreatedAt string

The time the secure credential was created.

Description string

The secure credential’s description.

Id string

The provider-assigned unique ID for this managed resource.

Key string
LastUpdated string

The time the secure credential was last updated.

createdAt string

The time the secure credential was created.

description string

The secure credential’s description.

id string

The provider-assigned unique ID for this managed resource.

key string
lastUpdated string

The time the secure credential was last updated.

created_at str

The time the secure credential was created.

description str

The secure credential’s description.

id str

The provider-assigned unique ID for this managed resource.

key str
last_updated str

The time the secure credential was last updated.

Package Details

Repository
https://github.com/pulumi/pulumi-newrelic
License
Apache-2.0
Notes
This Pulumi package is based on the newrelic Terraform Provider.