Viewing docs for Harness v0.11.6
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
Viewing docs for Harness v0.11.6
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
Data source for retrieving a GPG Signing Key from the IaCM Provider Registry.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = harness.platform.getInfraProviderSigningKey({
id: "signing_key_id",
});
export const keyId = example.then(example => example.keyId);
export const keyName = example.then(example => example.keyName);
import pulumi
import pulumi_harness as harness
example = harness.platform.get_infra_provider_signing_key(id="signing_key_id")
pulumi.export("keyId", example.key_id)
pulumi.export("keyName", example.key_name)
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := platform.LookupInfraProviderSigningKey(ctx, &platform.LookupInfraProviderSigningKeyArgs{
Id: "signing_key_id",
}, nil)
if err != nil {
return err
}
ctx.Export("keyId", example.KeyId)
ctx.Export("keyName", example.KeyName)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var example = Harness.Platform.GetInfraProviderSigningKey.Invoke(new()
{
Id = "signing_key_id",
});
return new Dictionary<string, object?>
{
["keyId"] = example.Apply(getInfraProviderSigningKeyResult => getInfraProviderSigningKeyResult.KeyId),
["keyName"] = example.Apply(getInfraProviderSigningKeyResult => getInfraProviderSigningKeyResult.KeyName),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.PlatformFunctions;
import com.pulumi.harness.platform.inputs.GetInfraProviderSigningKeyArgs;
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 example = PlatformFunctions.getInfraProviderSigningKey(GetInfraProviderSigningKeyArgs.builder()
.id("signing_key_id")
.build());
ctx.export("keyId", example.keyId());
ctx.export("keyName", example.keyName());
}
}
variables:
example:
fn::invoke:
function: harness:platform:getInfraProviderSigningKey
arguments:
id: signing_key_id
outputs:
keyId: ${example.keyId}
keyName: ${example.keyName}
Using getInfraProviderSigningKey
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 getInfraProviderSigningKey(args: GetInfraProviderSigningKeyArgs, opts?: InvokeOptions): Promise<GetInfraProviderSigningKeyResult>
function getInfraProviderSigningKeyOutput(args: GetInfraProviderSigningKeyOutputArgs, opts?: InvokeOptions): Output<GetInfraProviderSigningKeyResult>def get_infra_provider_signing_key(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInfraProviderSigningKeyResult
def get_infra_provider_signing_key_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInfraProviderSigningKeyResult]func LookupInfraProviderSigningKey(ctx *Context, args *LookupInfraProviderSigningKeyArgs, opts ...InvokeOption) (*LookupInfraProviderSigningKeyResult, error)
func LookupInfraProviderSigningKeyOutput(ctx *Context, args *LookupInfraProviderSigningKeyOutputArgs, opts ...InvokeOption) LookupInfraProviderSigningKeyResultOutput> Note: This function is named LookupInfraProviderSigningKey in the Go SDK.
public static class GetInfraProviderSigningKey
{
public static Task<GetInfraProviderSigningKeyResult> InvokeAsync(GetInfraProviderSigningKeyArgs args, InvokeOptions? opts = null)
public static Output<GetInfraProviderSigningKeyResult> Invoke(GetInfraProviderSigningKeyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInfraProviderSigningKeyResult> getInfraProviderSigningKey(GetInfraProviderSigningKeyArgs args, InvokeOptions options)
public static Output<GetInfraProviderSigningKeyResult> getInfraProviderSigningKey(GetInfraProviderSigningKeyArgs args, InvokeOptions options)
fn::invoke:
function: harness:platform/getInfraProviderSigningKey:getInfraProviderSigningKey
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Unique identifier of the signing key.
- Id string
- Unique identifier of the signing key.
- id String
- Unique identifier of the signing key.
- id string
- Unique identifier of the signing key.
- id str
- Unique identifier of the signing key.
- id String
- Unique identifier of the signing key.
getInfraProviderSigningKey Result
The following output properties are available:
- ascii_
armor str - ASCII-armored GPG public key.
- created_
at str - Creation timestamp.
- id str
- Unique identifier of the signing key.
- key_
id str - GPG key ID.
- key_
name str - GPG key name.
- updated_
at str - Last updated timestamp.
- user str
- User who uploaded the key.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
Viewing docs for Harness v0.11.6
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
