ovh.Me.getSshKeys

Use this data source to retrieve list of names of the account’s SSH keys.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var mykeys = Ovh.Me.GetSshKeys.Invoke();

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Me.GetSshKeys(ctx, nil, 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.Me.MeFunctions;
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 mykeys = MeFunctions.getSshKeys();

    }
}
import pulumi
import pulumi_ovh as ovh

mykeys = ovh.Me.get_ssh_keys()
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const mykeys = ovh.Me.getSshKeys({});
variables:
  mykeys:
    fn::invoke:
      Function: ovh:Me:getSshKeys
      Arguments: {}

Using getSshKeys

function getSshKeys(opts?: InvokeOptions): Promise<GetSshKeysResult>
def get_ssh_keys(opts: Optional[InvokeOptions] = None) -> GetSshKeysResult
func GetSshKeys(ctx *Context, opts ...InvokeOption) (*GetSshKeysResult, error)

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

public static class GetSshKeys 
{
    public static Task<GetSshKeysResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetSshKeysResult> getSshKeys(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: ovh:Me/getSshKeys:getSshKeys
  arguments:
    # arguments dictionary

getSshKeys Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Names List<string>

The list of the names of all the SSH keys.

Id string

The provider-assigned unique ID for this managed resource.

Names []string

The list of the names of all the SSH keys.

id String

The provider-assigned unique ID for this managed resource.

names List<String>

The list of the names of all the SSH keys.

id string

The provider-assigned unique ID for this managed resource.

names string[]

The list of the names of all the SSH keys.

id str

The provider-assigned unique ID for this managed resource.

names Sequence[str]

The list of the names of all the SSH keys.

id String

The provider-assigned unique ID for this managed resource.

names List<String>

The list of the names of all the SSH keys.

Package Details

Repository
ovh lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.