1. Packages
  2. StrongDM
  3. API Docs
  4. getSshCaPubkey
StrongDM v1.12.0 published on Sunday, Apr 28, 2024 by Piers Karsenbarg

sdm.getSshCaPubkey

Explore with Pulumi AI

sdm logo
StrongDM v1.12.0 published on Sunday, Apr 28, 2024 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 "@pulumi/sdm";
    
    const sshPubkeyQuery = sdm.getSshCaPubkey({});
    
    import pulumi
    import pulumi_sdm as sdm
    
    ssh_pubkey_query = sdm.get_ssh_ca_pubkey()
    
    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 {
    		_, err := sdm.GetSshCaPubkey(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sdm = Pulumi.Sdm;
    
    return await Deployment.RunAsync(() => 
    {
        var sshPubkeyQuery = Sdm.GetSshCaPubkey.Invoke();
    
    });
    
    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();
    
        }
    }
    
    variables:
      sshPubkeyQuery:
        fn::invoke:
          Function: sdm:getSshCaPubkey
          Arguments: {}
    

    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)
    // Output-based functions aren't available in Java yet
    
    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.12.0 published on Sunday, Apr 28, 2024 by Piers Karsenbarg