Hetzner Cloud v1.18.0 published on Wednesday, Mar 27, 2024 by Pulumi
hcloud.getSshKeys
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as hcloud from "@pulumi/hcloud";
const allKeys = hcloud.getSshKeys({});
const keysBySelector = hcloud.getSshKeys({
withSelector: "foo=bar",
});
const main = new hcloud.Server("main", {sshKeys: allKeys.then(allKeys => allKeys.sshKeys.map(__item => __item.name))});
import pulumi
import pulumi_hcloud as hcloud
all_keys = hcloud.get_ssh_keys()
keys_by_selector = hcloud.get_ssh_keys(with_selector="foo=bar")
main = hcloud.Server("main", ssh_keys=[__item.name for __item in all_keys.ssh_keys])
package main
import (
"github.com/pulumi/pulumi-hcloud/sdk/go/hcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
allKeys, err := hcloud.GetSshKeys(ctx, nil, nil)
if err != nil {
return err
}
_, err = hcloud.GetSshKeys(ctx, &hcloud.GetSshKeysArgs{
WithSelector: pulumi.StringRef("foo=bar"),
}, nil)
if err != nil {
return err
}
var splat0 []*string
for _, val0 := range allKeys.SshKeys {
splat0 = append(splat0, val0.Name)
}
_, err = hcloud.NewServer(ctx, "main", &hcloud.ServerArgs{
SshKeys: splat0,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using HCloud = Pulumi.HCloud;
return await Deployment.RunAsync(() =>
{
var allKeys = HCloud.GetSshKeys.Invoke();
var keysBySelector = HCloud.GetSshKeys.Invoke(new()
{
WithSelector = "foo=bar",
});
var main = new HCloud.Server("main", new()
{
SshKeys = allKeys.Apply(getSshKeysResult => getSshKeysResult.SshKeys).Select(__item => __item.Name).ToList(),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hcloud.HcloudFunctions;
import com.pulumi.hcloud.inputs.GetSshKeysArgs;
import com.pulumi.hcloud.Server;
import com.pulumi.hcloud.ServerArgs;
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 allKeys = HcloudFunctions.getSshKeys();
final var keysBySelector = HcloudFunctions.getSshKeys(GetSshKeysArgs.builder()
.withSelector("foo=bar")
.build());
var main = new Server("main", ServerArgs.builder()
.sshKeys(allKeys.applyValue(getSshKeysResult -> getSshKeysResult.sshKeys()).stream().map(element -> element.name()).collect(toList()))
.build());
}
}
Coming soon!```
</pulumi-choosable>
</div>
## Using getSshKeys {#using}
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.
<div>
<pulumi-chooser type="language" options="typescript,python,go,csharp,java,yaml"></pulumi-chooser>
</div>
<div>
<pulumi-choosable type="language" values="javascript,typescript">
<div class="highlight"
><pre class="chroma"><code class="language-typescript" data-lang="typescript"
><span class="k">function </span>getSshKeys<span class="p">(</span><span class="nx">args</span><span class="p">:</span> <span class="nx">GetSshKeysArgs</span><span class="p">,</span> <span class="nx">opts</span><span class="p">?:</span> <span class="nx"><a href="/docs/reference/pkg/nodejs/pulumi/pulumi/#InvokeOptions">InvokeOptions</a></span><span class="p">): Promise<<span class="nx"><a href="#result">GetSshKeysResult</a></span>></span
><span class="k">
function </span>getSshKeysOutput<span class="p">(</span><span class="nx">args</span><span class="p">:</span> <span class="nx">GetSshKeysOutputArgs</span><span class="p">,</span> <span class="nx">opts</span><span class="p">?:</span> <span class="nx"><a href="/docs/reference/pkg/nodejs/pulumi/pulumi/#InvokeOptions">InvokeOptions</a></span><span class="p">): Output<<span class="nx"><a href="#result">GetSshKeysResult</a></span>></span
></code></pre></div>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="python">
<div class="highlight"><pre class="chroma"><code class="language-python" data-lang="python"
><span class="k">def </span>get_ssh_keys<span class="p">(</span><span class="nx">id</span><span class="p">:</span> <span class="nx">Optional[str]</span> = None<span class="p">,</span>
<span class="nx">with_selector</span><span class="p">:</span> <span class="nx">Optional[str]</span> = None<span class="p">,</span>
<span class="nx">opts</span><span class="p">:</span> <span class="nx"><a href="/docs/reference/pkg/python/pulumi/#pulumi.InvokeOptions">Optional[InvokeOptions]</a></span> = None<span class="p">) -></span> <span>GetSshKeysResult</span
><span class="k">
def </span>get_ssh_keys_output<span class="p">(</span><span class="nx">id</span><span class="p">:</span> <span class="nx">Optional[pulumi.Input[str]]</span> = None<span class="p">,</span>
<span class="nx">with_selector</span><span class="p">:</span> <span class="nx">Optional[pulumi.Input[str]]</span> = None<span class="p">,</span>
<span class="nx">opts</span><span class="p">:</span> <span class="nx"><a href="/docs/reference/pkg/python/pulumi/#pulumi.InvokeOptions">Optional[InvokeOptions]</a></span> = None<span class="p">) -></span> <span>Output[GetSshKeysResult]</span
></code></pre></div>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="go">
<div class="highlight"><pre class="chroma"><code class="language-go" data-lang="go"
><span class="k">func </span>GetSshKeys<span class="p">(</span><span class="nx">ctx</span><span class="p"> *</span><span class="nx"><a href="https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3/go/pulumi?tab=doc#Context">Context</a></span><span class="p">,</span> <span class="nx">args</span><span class="p"> *</span><span class="nx">GetSshKeysArgs</span><span class="p">,</span> <span class="nx">opts</span><span class="p"> ...</span><span class="nx"><a href="https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3/go/pulumi?tab=doc#InvokeOption">InvokeOption</a></span><span class="p">) (*<span class="nx"><a href="#result">GetSshKeysResult</a></span>, error)</span
><span class="k">
func </span>GetSshKeysOutput<span class="p">(</span><span class="nx">ctx</span><span class="p"> *</span><span class="nx"><a href="https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3/go/pulumi?tab=doc#Context">Context</a></span><span class="p">,</span> <span class="nx">args</span><span class="p"> *</span><span class="nx">GetSshKeysOutputArgs</span><span class="p">,</span> <span class="nx">opts</span><span class="p"> ...</span><span class="nx"><a href="https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3/go/pulumi?tab=doc#InvokeOption">InvokeOption</a></span><span class="p">) GetSshKeysResultOutput</span
></code></pre></div>
> Note: This function is named `GetSshKeys` in the Go SDK.
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="csharp">
<div class="highlight"><pre class="chroma"><code class="language-csharp" data-lang="csharp"><span class="k">public static class </span><span class="nx">GetSshKeys </span><span class="p">
{</span><span class="k">
public static </span>Task<<span class="nx"><a href="#result">GetSshKeysResult</a></span>> <span class="p">InvokeAsync(</span><span class="nx">GetSshKeysArgs</span><span class="p"> </span><span class="nx">args<span class="p">,</span> <span class="nx"><a href="/docs/reference/pkg/dotnet/Pulumi/Pulumi.InvokeOptions.html">InvokeOptions</a></span><span class="p">? </span><span class="nx">opts = null<span class="p">)</span><span class="k">
public static </span>Output<<span class="nx"><a href="#result">GetSshKeysResult</a></span>> <span class="p">Invoke(</span><span class="nx">GetSshKeysInvokeArgs</span><span class="p"> </span><span class="nx">args<span class="p">,</span> <span class="nx"><a href="/docs/reference/pkg/dotnet/Pulumi/Pulumi.InvokeOptions.html">InvokeOptions</a></span><span class="p">? </span><span class="nx">opts = null<span class="p">)</span><span class="p">
}</span></code></pre></div>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="java">
<div class="highlight"><pre class="chroma"><code class="language-java" data-lang="java"><span class="k">public static CompletableFuture<<span class="nx"><a href="#result">GetSshKeysResult</a></span>> </span>getSshKeys<span class="p">(</span><span class="nx">GetSshKeysArgs</span><span class="p"> </span><span class="nx">args<span class="p">,</span> <span class="nx">InvokeOptions</span><span class="p"> </span><span class="nx">options<span class="p">)</span>
<span class="c">// Output-based functions aren't available in Java yet</span>
</code></pre></div>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="yaml">
<div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml"><span class="k">fn::invoke:</span>
<span class="k"> function:</span> hcloud:index/getSshKeys:getSshKeys
<span class="k"> arguments:</span>
<span class="c"> # arguments dictionary</span></code></pre></div>
</pulumi-choosable>
</div>
The following arguments are supported:
<div>
<pulumi-choosable type="language" values="csharp">
<dl class="resources-properties"><dt class="property-optional"
title="Optional">
<span id="id_csharp">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_csharp" style="color: inherit; text-decoration: inherit;">Id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd></dd><dt class="property-optional"
title="Optional">
<span id="withselector_csharp">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#withselector_csharp" style="color: inherit; text-decoration: inherit;">With<wbr>Selector</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd><a href="https://docs.hetzner.cloud/#overview-label-selector">Label selector</a></dd></dl>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="go">
<dl class="resources-properties"><dt class="property-optional"
title="Optional">
<span id="id_go">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_go" style="color: inherit; text-decoration: inherit;">Id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd></dd><dt class="property-optional"
title="Optional">
<span id="withselector_go">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#withselector_go" style="color: inherit; text-decoration: inherit;">With<wbr>Selector</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd><a href="https://docs.hetzner.cloud/#overview-label-selector">Label selector</a></dd></dl>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="java">
<dl class="resources-properties"><dt class="property-optional"
title="Optional">
<span id="id_java">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_java" style="color: inherit; text-decoration: inherit;">id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">String</span>
</dt>
<dd></dd><dt class="property-optional"
title="Optional">
<span id="withselector_java">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#withselector_java" style="color: inherit; text-decoration: inherit;">with<wbr>Selector</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">String</span>
</dt>
<dd><a href="https://docs.hetzner.cloud/#overview-label-selector">Label selector</a></dd></dl>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="javascript,typescript">
<dl class="resources-properties"><dt class="property-optional"
title="Optional">
<span id="id_nodejs">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_nodejs" style="color: inherit; text-decoration: inherit;">id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd></dd><dt class="property-optional"
title="Optional">
<span id="withselector_nodejs">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#withselector_nodejs" style="color: inherit; text-decoration: inherit;">with<wbr>Selector</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd><a href="https://docs.hetzner.cloud/#overview-label-selector">Label selector</a></dd></dl>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="python">
<dl class="resources-properties"><dt class="property-optional"
title="Optional">
<span id="id_python">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_python" style="color: inherit; text-decoration: inherit;">id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">str</span>
</dt>
<dd></dd><dt class="property-optional"
title="Optional">
<span id="with_selector_python">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#with_selector_python" style="color: inherit; text-decoration: inherit;">with_<wbr>selector</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">str</span>
</dt>
<dd><a href="https://docs.hetzner.cloud/#overview-label-selector">Label selector</a></dd></dl>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="yaml">
<dl class="resources-properties"><dt class="property-optional"
title="Optional">
<span id="id_yaml">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_yaml" style="color: inherit; text-decoration: inherit;">id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">String</span>
</dt>
<dd></dd><dt class="property-optional"
title="Optional">
<span id="withselector_yaml">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#withselector_yaml" style="color: inherit; text-decoration: inherit;">with<wbr>Selector</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">String</span>
</dt>
<dd><a href="https://docs.hetzner.cloud/#overview-label-selector">Label selector</a></dd></dl>
</pulumi-choosable>
</div>
## getSshKeys Result {#result}
The following output properties are available:
<div>
<pulumi-choosable type="language" values="csharp">
<dl class="resources-properties"><dt class="property-"
title="">
<span id="sshkeys_csharp">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#sshkeys_csharp" style="color: inherit; text-decoration: inherit;">Ssh<wbr>Keys</a>
</span>
<span class="property-indicator"></span>
<span class="property-type"><a href="#getsshkeyssshkey">List<Pulumi.<wbr>HCloud.<wbr>Outputs.<wbr>Get<wbr>Ssh<wbr>Keys<wbr>Ssh<wbr>Key></a></span>
</dt>
<dd>(list) List of all matches SSH keys. See <code>data.hcloud_ssh_key</code> for schema.</dd><dt class="property-"
title="">
<span id="id_csharp">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_csharp" style="color: inherit; text-decoration: inherit;">Id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd></dd><dt class="property-"
title="">
<span id="withselector_csharp">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#withselector_csharp" style="color: inherit; text-decoration: inherit;">With<wbr>Selector</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd></dd></dl>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="go">
<dl class="resources-properties"><dt class="property-"
title="">
<span id="sshkeys_go">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#sshkeys_go" style="color: inherit; text-decoration: inherit;">Ssh<wbr>Keys</a>
</span>
<span class="property-indicator"></span>
<span class="property-type"><a href="#getsshkeyssshkey">[]Get<wbr>Ssh<wbr>Keys<wbr>Ssh<wbr>Key</a></span>
</dt>
<dd>(list) List of all matches SSH keys. See <code>data.hcloud_ssh_key</code> for schema.</dd><dt class="property-"
title="">
<span id="id_go">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_go" style="color: inherit; text-decoration: inherit;">Id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd></dd><dt class="property-"
title="">
<span id="withselector_go">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#withselector_go" style="color: inherit; text-decoration: inherit;">With<wbr>Selector</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd></dd></dl>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="java">
<dl class="resources-properties"><dt class="property-"
title="">
<span id="sshkeys_java">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#sshkeys_java" style="color: inherit; text-decoration: inherit;">ssh<wbr>Keys</a>
</span>
<span class="property-indicator"></span>
<span class="property-type"><a href="#getsshkeyssshkey">List<Get<wbr>Ssh<wbr>Keys<wbr>Ssh<wbr>Key></a></span>
</dt>
<dd>(list) List of all matches SSH keys. See <code>data.hcloud_ssh_key</code> for schema.</dd><dt class="property-"
title="">
<span id="id_java">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_java" style="color: inherit; text-decoration: inherit;">id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">String</span>
</dt>
<dd></dd><dt class="property-"
title="">
<span id="withselector_java">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#withselector_java" style="color: inherit; text-decoration: inherit;">with<wbr>Selector</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">String</span>
</dt>
<dd></dd></dl>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="javascript,typescript">
<dl class="resources-properties"><dt class="property-"
title="">
<span id="sshkeys_nodejs">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#sshkeys_nodejs" style="color: inherit; text-decoration: inherit;">ssh<wbr>Keys</a>
</span>
<span class="property-indicator"></span>
<span class="property-type"><a href="#getsshkeyssshkey">Get<wbr>Ssh<wbr>Keys<wbr>Ssh<wbr>Key[]</a></span>
</dt>
<dd>(list) List of all matches SSH keys. See <code>data.hcloud_ssh_key</code> for schema.</dd><dt class="property-"
title="">
<span id="id_nodejs">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_nodejs" style="color: inherit; text-decoration: inherit;">id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd></dd><dt class="property-"
title="">
<span id="withselector_nodejs">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#withselector_nodejs" style="color: inherit; text-decoration: inherit;">with<wbr>Selector</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd></dd></dl>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="python">
<dl class="resources-properties"><dt class="property-"
title="">
<span id="ssh_keys_python">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#ssh_keys_python" style="color: inherit; text-decoration: inherit;">ssh_<wbr>keys</a>
</span>
<span class="property-indicator"></span>
<span class="property-type"><a href="#getsshkeyssshkey">Sequence[Get<wbr>Ssh<wbr>Keys<wbr>Ssh<wbr>Key]</a></span>
</dt>
<dd>(list) List of all matches SSH keys. See <code>data.hcloud_ssh_key</code> for schema.</dd><dt class="property-"
title="">
<span id="id_python">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_python" style="color: inherit; text-decoration: inherit;">id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">str</span>
</dt>
<dd></dd><dt class="property-"
title="">
<span id="with_selector_python">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#with_selector_python" style="color: inherit; text-decoration: inherit;">with_<wbr>selector</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">str</span>
</dt>
<dd></dd></dl>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="yaml">
<dl class="resources-properties"><dt class="property-"
title="">
<span id="sshkeys_yaml">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#sshkeys_yaml" style="color: inherit; text-decoration: inherit;">ssh<wbr>Keys</a>
</span>
<span class="property-indicator"></span>
<span class="property-type"><a href="#getsshkeyssshkey">List<Property Map></a></span>
</dt>
<dd>(list) List of all matches SSH keys. See <code>data.hcloud_ssh_key</code> for schema.</dd><dt class="property-"
title="">
<span id="id_yaml">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_yaml" style="color: inherit; text-decoration: inherit;">id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">String</span>
</dt>
<dd></dd><dt class="property-"
title="">
<span id="withselector_yaml">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#withselector_yaml" style="color: inherit; text-decoration: inherit;">with<wbr>Selector</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">String</span>
</dt>
<dd></dd></dl>
</pulumi-choosable>
</div>
## Supporting Types
<h4 id="getsshkeyssshkey">Get<wbr>Ssh<wbr>Keys<wbr>Ssh<wbr>Key</h4>
<div>
<pulumi-choosable type="language" values="csharp">
<dl class="resources-properties"><dt class="property-required"
title="Required">
<span id="fingerprint_csharp">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#fingerprint_csharp" style="color: inherit; text-decoration: inherit;">Fingerprint</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd>Fingerprint of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="id_csharp">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_csharp" style="color: inherit; text-decoration: inherit;">Id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">int</span>
</dt>
<dd>ID of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="labels_csharp">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#labels_csharp" style="color: inherit; text-decoration: inherit;">Labels</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">Dictionary<string, string></span>
</dt>
<dd>User-defined <a href="https://docs.hetzner.cloud/#labels">labels</a> (key-value pairs) for the resource.</dd><dt class="property-required"
title="Required">
<span id="name_csharp">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#name_csharp" style="color: inherit; text-decoration: inherit;">Name</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd>Name of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="publickey_csharp">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#publickey_csharp" style="color: inherit; text-decoration: inherit;">Public<wbr>Key</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd>Public key of the SSH key pair.</dd></dl>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="go">
<dl class="resources-properties"><dt class="property-required"
title="Required">
<span id="fingerprint_go">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#fingerprint_go" style="color: inherit; text-decoration: inherit;">Fingerprint</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd>Fingerprint of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="id_go">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_go" style="color: inherit; text-decoration: inherit;">Id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">int</span>
</dt>
<dd>ID of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="labels_go">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#labels_go" style="color: inherit; text-decoration: inherit;">Labels</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">map[string]string</span>
</dt>
<dd>User-defined <a href="https://docs.hetzner.cloud/#labels">labels</a> (key-value pairs) for the resource.</dd><dt class="property-required"
title="Required">
<span id="name_go">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#name_go" style="color: inherit; text-decoration: inherit;">Name</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd>Name of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="publickey_go">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#publickey_go" style="color: inherit; text-decoration: inherit;">Public<wbr>Key</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd>Public key of the SSH key pair.</dd></dl>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="java">
<dl class="resources-properties"><dt class="property-required"
title="Required">
<span id="fingerprint_java">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#fingerprint_java" style="color: inherit; text-decoration: inherit;">fingerprint</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">String</span>
</dt>
<dd>Fingerprint of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="id_java">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_java" style="color: inherit; text-decoration: inherit;">id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">Integer</span>
</dt>
<dd>ID of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="labels_java">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#labels_java" style="color: inherit; text-decoration: inherit;">labels</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">Map<String,String></span>
</dt>
<dd>User-defined <a href="https://docs.hetzner.cloud/#labels">labels</a> (key-value pairs) for the resource.</dd><dt class="property-required"
title="Required">
<span id="name_java">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#name_java" style="color: inherit; text-decoration: inherit;">name</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">String</span>
</dt>
<dd>Name of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="publickey_java">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#publickey_java" style="color: inherit; text-decoration: inherit;">public<wbr>Key</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">String</span>
</dt>
<dd>Public key of the SSH key pair.</dd></dl>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="javascript,typescript">
<dl class="resources-properties"><dt class="property-required"
title="Required">
<span id="fingerprint_nodejs">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#fingerprint_nodejs" style="color: inherit; text-decoration: inherit;">fingerprint</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd>Fingerprint of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="id_nodejs">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_nodejs" style="color: inherit; text-decoration: inherit;">id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">number</span>
</dt>
<dd>ID of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="labels_nodejs">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#labels_nodejs" style="color: inherit; text-decoration: inherit;">labels</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">{[key: string]: string}</span>
</dt>
<dd>User-defined <a href="https://docs.hetzner.cloud/#labels">labels</a> (key-value pairs) for the resource.</dd><dt class="property-required"
title="Required">
<span id="name_nodejs">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#name_nodejs" style="color: inherit; text-decoration: inherit;">name</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd>Name of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="publickey_nodejs">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#publickey_nodejs" style="color: inherit; text-decoration: inherit;">public<wbr>Key</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">string</span>
</dt>
<dd>Public key of the SSH key pair.</dd></dl>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="python">
<dl class="resources-properties"><dt class="property-required"
title="Required">
<span id="fingerprint_python">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#fingerprint_python" style="color: inherit; text-decoration: inherit;">fingerprint</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">str</span>
</dt>
<dd>Fingerprint of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="id_python">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_python" style="color: inherit; text-decoration: inherit;">id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">int</span>
</dt>
<dd>ID of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="labels_python">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#labels_python" style="color: inherit; text-decoration: inherit;">labels</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">Mapping[str, str]</span>
</dt>
<dd>User-defined <a href="https://docs.hetzner.cloud/#labels">labels</a> (key-value pairs) for the resource.</dd><dt class="property-required"
title="Required">
<span id="name_python">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#name_python" style="color: inherit; text-decoration: inherit;">name</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">str</span>
</dt>
<dd>Name of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="public_key_python">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#public_key_python" style="color: inherit; text-decoration: inherit;">public_<wbr>key</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">str</span>
</dt>
<dd>Public key of the SSH key pair.</dd></dl>
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="yaml">
<dl class="resources-properties"><dt class="property-required"
title="Required">
<span id="fingerprint_yaml">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#fingerprint_yaml" style="color: inherit; text-decoration: inherit;">fingerprint</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">String</span>
</dt>
<dd>Fingerprint of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="id_yaml">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#id_yaml" style="color: inherit; text-decoration: inherit;">id</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">Number</span>
</dt>
<dd>ID of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="labels_yaml">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#labels_yaml" style="color: inherit; text-decoration: inherit;">labels</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">Map<String></span>
</dt>
<dd>User-defined <a href="https://docs.hetzner.cloud/#labels">labels</a> (key-value pairs) for the resource.</dd><dt class="property-required"
title="Required">
<span id="name_yaml">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#name_yaml" style="color: inherit; text-decoration: inherit;">name</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">String</span>
</dt>
<dd>Name of the SSH key.</dd><dt class="property-required"
title="Required">
<span id="publickey_yaml">
<a data-swiftype-name="resource-property" data-swiftype-type="text" href="#publickey_yaml" style="color: inherit; text-decoration: inherit;">public<wbr>Key</a>
</span>
<span class="property-indicator"></span>
<span class="property-type">String</span>
</dt>
<dd>Public key of the SSH key pair.</dd></dl>
</pulumi-choosable>
</div>
<h2 id="package-details">Package Details</h2>
<dl class="package-details">
<dt>Repository</dt>
<dd><a href="https://github.com/pulumi/pulumi-hcloud">Hetzner Cloud pulumi/pulumi-hcloud</a></dd>
<dt>License</dt>
<dd>Apache-2.0</dd>
<dt>Notes</dt>
<dd>This Pulumi package is based on the <a href="https://github.com/hetznercloud/terraform-provider-hcloud"><code>hcloud</code> Terraform Provider</a>.</dd>
</dl>