Ovh

v0.0.4 published on Saturday, Sep 17, 2022 by lbrlabs

getMeSshKey

Use this data source to retrieve information about an SSH key.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var mykey = Ovh.GetMeSshKey.Invoke(new()
    {
        KeyName = "mykey",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ovh.LookupMeSshKey(ctx, &GetMeSshKeyArgs{
			KeyName: "mykey",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.OvhFunctions;
import com.pulumi.ovh.inputs.GetMeSshKeyArgs;
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 mykey = OvhFunctions.getMeSshKey(GetMeSshKeyArgs.builder()
            .keyName("mykey")
            .build());

    }
}
import pulumi
import pulumi_ovh as ovh

mykey = ovh.get_me_ssh_key(key_name="mykey")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const mykey = pulumi.output(ovh.getMeSshKey({
    keyName: "mykey",
}));
variables:
  mykey:
    Fn::Invoke:
      Function: ovh:getMeSshKey
      Arguments:
        keyName: mykey

Using getMeSshKey

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 getMeSshKey(args: GetMeSshKeyArgs, opts?: InvokeOptions): Promise<GetMeSshKeyResult>
function getMeSshKeyOutput(args: GetMeSshKeyOutputArgs, opts?: InvokeOptions): Output<GetMeSshKeyResult>
def get_me_ssh_key(key_name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetMeSshKeyResult
def get_me_ssh_key_output(key_name: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetMeSshKeyResult]
func LookupMeSshKey(ctx *Context, args *LookupMeSshKeyArgs, opts ...InvokeOption) (*LookupMeSshKeyResult, error)
func LookupMeSshKeyOutput(ctx *Context, args *LookupMeSshKeyOutputArgs, opts ...InvokeOption) LookupMeSshKeyResultOutput

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

public static class GetMeSshKey 
{
    public static Task<GetMeSshKeyResult> InvokeAsync(GetMeSshKeyArgs args, InvokeOptions? opts = null)
    public static Output<GetMeSshKeyResult> Invoke(GetMeSshKeyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMeSshKeyResult> getMeSshKey(GetMeSshKeyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: ovh:index/getMeSshKey:getMeSshKey
  Arguments:
    # Arguments dictionary

The following arguments are supported:

KeyName string

The name of the SSH key.

KeyName string

The name of the SSH key.

keyName String

The name of the SSH key.

keyName string

The name of the SSH key.

key_name str

The name of the SSH key.

keyName String

The name of the SSH key.

getMeSshKey Result

The following output properties are available:

Default bool

True when this public SSH key is used for rescue mode and reinstallations.

Id string

The provider-assigned unique ID for this managed resource.

Key string

The content of the public key. E.g.: "ssh-ed25519 AAAAC3..."

KeyName string

See Argument Reference above.

Default bool

True when this public SSH key is used for rescue mode and reinstallations.

Id string

The provider-assigned unique ID for this managed resource.

Key string

The content of the public key. E.g.: "ssh-ed25519 AAAAC3..."

KeyName string

See Argument Reference above.

default_ Boolean

True when this public SSH key is used for rescue mode and reinstallations.

id String

The provider-assigned unique ID for this managed resource.

key String

The content of the public key. E.g.: "ssh-ed25519 AAAAC3..."

keyName String

See Argument Reference above.

default boolean

True when this public SSH key is used for rescue mode and reinstallations.

id string

The provider-assigned unique ID for this managed resource.

key string

The content of the public key. E.g.: "ssh-ed25519 AAAAC3..."

keyName string

See Argument Reference above.

default bool

True when this public SSH key is used for rescue mode and reinstallations.

id str

The provider-assigned unique ID for this managed resource.

key str

The content of the public key. E.g.: "ssh-ed25519 AAAAC3..."

key_name str

See Argument Reference above.

default Boolean

True when this public SSH key is used for rescue mode and reinstallations.

id String

The provider-assigned unique ID for this managed resource.

key String

The content of the public key. E.g.: "ssh-ed25519 AAAAC3..."

keyName String

See Argument Reference above.

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.