1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getComputeBmsKeypairsV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getComputeBmsKeypairsV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for BMSs SSH key pairs you can get at documentation portal

    Use this data source to get details about SSH key pairs of BMSs from OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const keypairName = config.requireObject("keypairName");
    const queryBmsKeypair = opentelekomcloud.getComputeBmsKeypairsV2({
        name: keypairName,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    keypair_name = config.require_object("keypairName")
    query_bms_keypair = opentelekomcloud.get_compute_bms_keypairs_v2(name=keypair_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"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 := opentelekomcloud.GetComputeBmsKeypairsV2(ctx, &opentelekomcloud.GetComputeBmsKeypairsV2Args{
    			Name: keypairName,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var keypairName = config.RequireObject<dynamic>("keypairName");
        var queryBmsKeypair = Opentelekomcloud.GetComputeBmsKeypairsV2.Invoke(new()
        {
            Name = keypairName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.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 queryBmsKeypair = OpentelekomcloudFunctions.getComputeBmsKeypairsV2(GetComputeBmsKeypairsV2Args.builder()
                .name(keypairName)
                .build());
    
        }
    }
    
    configuration:
      keypairName:
        type: dynamic
    variables:
      queryBmsKeypair:
        fn::invoke:
          function: opentelekomcloud: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: opentelekomcloud:index/getComputeBmsKeypairsV2:getComputeBmsKeypairsV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    It is the key pair name.
    Id string
    Region string
    Name string
    It is the key pair name.
    Id string
    Region string
    name String
    It is the key pair name.
    id String
    region String
    name string
    It is the key pair name.
    id string
    region string
    name str
    It is the key pair name.
    id str
    region str
    name String
    It is the key pair name.
    id String
    region String

    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
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud