1. Packages
  2. StrongDM
  3. API Docs
  4. getSshCaPubkey
StrongDM v1.32.0 published on Monday, Oct 13, 2025 by Piers Karsenbarg

sdm.getSshCaPubkey

Start a Neo task
Explain and create a sdm.getSshCaPubkey resource
sdm logo
StrongDM v1.32.0 published on Monday, Oct 13, 2025 by Piers Karsenbarg

    The SSH CA Pubkey is a public key used for setting up SSH resources.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sdm from "@pierskarsenbarg/sdm";
    
    const sshPubkeyQuery = sdm.getSshCaPubkey({});
    export const sshca = sshPubkeyQuery.then(sshPubkeyQuery => sshPubkeyQuery.publicKey);
    
    import pulumi
    import pulumi_sdm as sdm
    
    ssh_pubkey_query = sdm.get_ssh_ca_pubkey()
    pulumi.export("sshca", ssh_pubkey_query.public_key)
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-sdm/sdk/go/sdm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		sshPubkeyQuery, err := sdm.GetSshCaPubkey(ctx, &sdm.GetSshCaPubkeyArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("sshca", sshPubkeyQuery.PublicKey)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sdm = Pulumi.Sdm;
    
    return await Deployment.RunAsync(() => 
    {
        var sshPubkeyQuery = Sdm.GetSshCaPubkey.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["sshca"] = sshPubkeyQuery.Apply(getSshCaPubkeyResult => getSshCaPubkeyResult.PublicKey),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sdm.SdmFunctions;
    import com.pulumi.sdm.inputs.GetSshCaPubkeyArgs;
    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 sshPubkeyQuery = SdmFunctions.getSshCaPubkey(GetSshCaPubkeyArgs.builder()
                .build());
    
            ctx.export("sshca", sshPubkeyQuery.publicKey());
        }
    }
    
    variables:
      sshPubkeyQuery:
        fn::invoke:
          function: sdm:getSshCaPubkey
          arguments: {}
    outputs:
      sshca: ${sshPubkeyQuery.publicKey}
    

    Using getSshCaPubkey

    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 getSshCaPubkey(args: GetSshCaPubkeyArgs, opts?: InvokeOptions): Promise<GetSshCaPubkeyResult>
    function getSshCaPubkeyOutput(args: GetSshCaPubkeyOutputArgs, opts?: InvokeOptions): Output<GetSshCaPubkeyResult>
    def get_ssh_ca_pubkey(id: Optional[str] = None,
                          public_key: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetSshCaPubkeyResult
    def get_ssh_ca_pubkey_output(id: Optional[pulumi.Input[str]] = None,
                          public_key: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetSshCaPubkeyResult]
    func GetSshCaPubkey(ctx *Context, args *GetSshCaPubkeyArgs, opts ...InvokeOption) (*GetSshCaPubkeyResult, error)
    func GetSshCaPubkeyOutput(ctx *Context, args *GetSshCaPubkeyOutputArgs, opts ...InvokeOption) GetSshCaPubkeyResultOutput

    > Note: This function is named GetSshCaPubkey in the Go SDK.

    public static class GetSshCaPubkey 
    {
        public static Task<GetSshCaPubkeyResult> InvokeAsync(GetSshCaPubkeyArgs args, InvokeOptions? opts = null)
        public static Output<GetSshCaPubkeyResult> Invoke(GetSshCaPubkeyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSshCaPubkeyResult> getSshCaPubkey(GetSshCaPubkeyArgs args, InvokeOptions options)
    public static Output<GetSshCaPubkeyResult> getSshCaPubkey(GetSshCaPubkeyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: sdm:index/getSshCaPubkey:getSshCaPubkey
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    a generated id representing this request.
    PublicKey string
    the SSH Certificate Authority public key.
    Id string
    a generated id representing this request.
    PublicKey string
    the SSH Certificate Authority public key.
    id String
    a generated id representing this request.
    publicKey String
    the SSH Certificate Authority public key.
    id string
    a generated id representing this request.
    publicKey string
    the SSH Certificate Authority public key.
    id str
    a generated id representing this request.
    public_key str
    the SSH Certificate Authority public key.
    id String
    a generated id representing this request.
    publicKey String
    the SSH Certificate Authority public key.

    getSshCaPubkey Result

    The following output properties are available:

    Id string
    a generated id representing this request.
    PublicKey string
    the SSH Certificate Authority public key.
    Id string
    a generated id representing this request.
    PublicKey string
    the SSH Certificate Authority public key.
    id String
    a generated id representing this request.
    publicKey String
    the SSH Certificate Authority public key.
    id string
    a generated id representing this request.
    publicKey string
    the SSH Certificate Authority public key.
    id str
    a generated id representing this request.
    public_key str
    the SSH Certificate Authority public key.
    id String
    a generated id representing this request.
    publicKey String
    the SSH Certificate Authority public key.

    Package Details

    Repository
    sdm pierskarsenbarg/pulumi-sdm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sdm Terraform Provider.
    sdm logo
    StrongDM v1.32.0 published on Monday, Oct 13, 2025 by Piers Karsenbarg
      Meet Neo: Your AI Platform Teammate