1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getInfraProviderSigningKey
Viewing docs for Harness v0.11.8
published on Friday, Mar 27, 2026 by Pulumi
harness logo
Viewing docs for Harness v0.11.8
published on Friday, Mar 27, 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 dictionary

    The 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:

    AsciiArmor string
    ASCII-armored GPG public key.
    CreatedAt string
    Creation timestamp.
    Id string
    Unique identifier of the signing key.
    KeyId string
    GPG key ID.
    KeyName string
    GPG key name.
    UpdatedAt string
    Last updated timestamp.
    User string
    User who uploaded the key.
    AsciiArmor string
    ASCII-armored GPG public key.
    CreatedAt string
    Creation timestamp.
    Id string
    Unique identifier of the signing key.
    KeyId string
    GPG key ID.
    KeyName string
    GPG key name.
    UpdatedAt string
    Last updated timestamp.
    User string
    User who uploaded the key.
    asciiArmor String
    ASCII-armored GPG public key.
    createdAt String
    Creation timestamp.
    id String
    Unique identifier of the signing key.
    keyId String
    GPG key ID.
    keyName String
    GPG key name.
    updatedAt String
    Last updated timestamp.
    user String
    User who uploaded the key.
    asciiArmor string
    ASCII-armored GPG public key.
    createdAt string
    Creation timestamp.
    id string
    Unique identifier of the signing key.
    keyId string
    GPG key ID.
    keyName string
    GPG key name.
    updatedAt string
    Last updated timestamp.
    user string
    User who uploaded the key.
    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.
    asciiArmor String
    ASCII-armored GPG public key.
    createdAt String
    Creation timestamp.
    id String
    Unique identifier of the signing key.
    keyId String
    GPG key ID.
    keyName String
    GPG key name.
    updatedAt String
    Last updated timestamp.
    user String
    User who uploaded the key.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Viewing docs for Harness v0.11.8
    published on Friday, Mar 27, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.