1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getComputeBmsKeypairsV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getComputeBmsKeypairsV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    flexibleengine.getComputeBmsKeypairsV2 used to query SSH key pairs.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const keypairName = config.requireObject("keypairName");
    const keypair = flexibleengine.getComputeBmsKeypairsV2({
        name: keypairName,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    keypair_name = config.require_object("keypairName")
    keypair = flexibleengine.get_compute_bms_keypairs_v2(name=keypair_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		keypairName := cfg.RequireObject("keypairName")
    		_, err := flexibleengine.GetComputeBmsKeypairsV2(ctx, &flexibleengine.GetComputeBmsKeypairsV2Args{
    			Name: keypairName,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var keypairName = config.RequireObject<dynamic>("keypairName");
        var keypair = Flexibleengine.GetComputeBmsKeypairsV2.Invoke(new()
        {
            Name = keypairName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetComputeBmsKeypairsV2Args;
    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 config = ctx.config();
            final var keypairName = config.get("keypairName");
            final var keypair = FlexibleengineFunctions.getComputeBmsKeypairsV2(GetComputeBmsKeypairsV2Args.builder()
                .name(keypairName)
                .build());
    
        }
    }
    
    configuration:
      keypairName:
        type: dynamic
    variables:
      keypair:
        fn::invoke:
          function: flexibleengine:getComputeBmsKeypairsV2
          arguments:
            name: ${keypairName}
    

    Using getComputeBmsKeypairsV2

    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 getComputeBmsKeypairsV2(args: GetComputeBmsKeypairsV2Args, opts?: InvokeOptions): Promise<GetComputeBmsKeypairsV2Result>
    function getComputeBmsKeypairsV2Output(args: GetComputeBmsKeypairsV2OutputArgs, opts?: InvokeOptions): Output<GetComputeBmsKeypairsV2Result>
    def get_compute_bms_keypairs_v2(id: Optional[str] = None,
                                    name: Optional[str] = None,
                                    region: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetComputeBmsKeypairsV2Result
    def get_compute_bms_keypairs_v2_output(id: Optional[pulumi.Input[str]] = None,
                                    name: Optional[pulumi.Input[str]] = None,
                                    region: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetComputeBmsKeypairsV2Result]
    func GetComputeBmsKeypairsV2(ctx *Context, args *GetComputeBmsKeypairsV2Args, opts ...InvokeOption) (*GetComputeBmsKeypairsV2Result, error)
    func GetComputeBmsKeypairsV2Output(ctx *Context, args *GetComputeBmsKeypairsV2OutputArgs, opts ...InvokeOption) GetComputeBmsKeypairsV2ResultOutput

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

    public static class GetComputeBmsKeypairsV2 
    {
        public static Task<GetComputeBmsKeypairsV2Result> InvokeAsync(GetComputeBmsKeypairsV2Args args, InvokeOptions? opts = null)
        public static Output<GetComputeBmsKeypairsV2Result> Invoke(GetComputeBmsKeypairsV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetComputeBmsKeypairsV2Result> getComputeBmsKeypairsV2(GetComputeBmsKeypairsV2Args args, InvokeOptions options)
    public static Output<GetComputeBmsKeypairsV2Result> getComputeBmsKeypairsV2(GetComputeBmsKeypairsV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getComputeBmsKeypairsV2:getComputeBmsKeypairsV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    It is the key pair name.
    Id string
    Region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    Name string
    It is the key pair name.
    Id string
    Region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    name String
    It is the key pair name.
    id String
    region String
    The region in which to query the data source. If omitted, the provider-level region will be used.
    name string
    It is the key pair name.
    id string
    region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    name str
    It is the key pair name.
    id str
    region str
    The region in which to query the data source. If omitted, the provider-level region will be used.
    name String
    It is the key pair name.
    id String
    region String
    The region in which to query the data source. If omitted, the provider-level region will be used.

    getComputeBmsKeypairsV2 Result

    The following output properties are available:

    Fingerprint string
    It is the fingerprint information about the key pair.
    Id string
    Name string
    PublicKey string
    It gives the information about the public key in the key pair.
    Region string
    Fingerprint string
    It is the fingerprint information about the key pair.
    Id string
    Name string
    PublicKey string
    It gives the information about the public key in the key pair.
    Region string
    fingerprint String
    It is the fingerprint information about the key pair.
    id String
    name String
    publicKey String
    It gives the information about the public key in the key pair.
    region String
    fingerprint string
    It is the fingerprint information about the key pair.
    id string
    name string
    publicKey string
    It gives the information about the public key in the key pair.
    region string
    fingerprint str
    It is the fingerprint information about the key pair.
    id str
    name str
    public_key str
    It gives the information about the public key in the key pair.
    region str
    fingerprint String
    It is the fingerprint information about the key pair.
    id String
    name String
    publicKey String
    It gives the information about the public key in the key pair.
    region String

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud