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
LookupSecureCredentialin the Go SDK.
public static class GetSecureCredential {
public static Task<GetSecureCredentialResult> InvokeAsync(GetSecureCredentialArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetSecureCredential Result
The following output properties are available:
- Created
At 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
- Last
Updated string The time the secure credential was last updated.
- Created
At 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
- Last
Updated string The time the secure credential was last updated.
- created
At 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
- last
Updated 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
newrelicTerraform Provider.