Viewing docs for gcore 2.0.0-alpha.8
published on Wednesday, May 20, 2026 by g-core
published on Wednesday, May 20, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.8
published on Wednesday, May 20, 2026 by g-core
published on Wednesday, May 20, 2026 by g-core
SSH keys enable secure access to SFTP storage by associating public keys with user accounts for authentication.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleStorageSshKey = gcore.getStorageSshKey({
sshKeyId: 0,
});
import pulumi
import pulumi_gcore as gcore
example_storage_ssh_key = gcore.get_storage_ssh_key(ssh_key_id=0)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.LookupStorageSshKey(ctx, &gcore.LookupStorageSshKeyArgs{
SshKeyId: pulumi.Float64Ref(0),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var exampleStorageSshKey = Gcore.GetStorageSshKey.Invoke(new()
{
SshKeyId = 0,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.GcoreFunctions;
import com.pulumi.gcore.inputs.GetStorageSshKeyArgs;
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 exampleStorageSshKey = GcoreFunctions.getStorageSshKey(GetStorageSshKeyArgs.builder()
.sshKeyId(0)
.build());
}
}
variables:
exampleStorageSshKey:
fn::invoke:
function: gcore:getStorageSshKey
arguments:
sshKeyId: 0
Example coming soon!
Using getStorageSshKey
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 getStorageSshKey(args: GetStorageSshKeyArgs, opts?: InvokeOptions): Promise<GetStorageSshKeyResult>
function getStorageSshKeyOutput(args: GetStorageSshKeyOutputArgs, opts?: InvokeOptions): Output<GetStorageSshKeyResult>def get_storage_ssh_key(find_one_by: Optional[GetStorageSshKeyFindOneBy] = None,
ssh_key_id: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetStorageSshKeyResult
def get_storage_ssh_key_output(find_one_by: pulumi.Input[Optional[GetStorageSshKeyFindOneByArgs]] = None,
ssh_key_id: pulumi.Input[Optional[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStorageSshKeyResult]func LookupStorageSshKey(ctx *Context, args *LookupStorageSshKeyArgs, opts ...InvokeOption) (*LookupStorageSshKeyResult, error)
func LookupStorageSshKeyOutput(ctx *Context, args *LookupStorageSshKeyOutputArgs, opts ...InvokeOption) LookupStorageSshKeyResultOutput> Note: This function is named LookupStorageSshKey in the Go SDK.
public static class GetStorageSshKey
{
public static Task<GetStorageSshKeyResult> InvokeAsync(GetStorageSshKeyArgs args, InvokeOptions? opts = null)
public static Output<GetStorageSshKeyResult> Invoke(GetStorageSshKeyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStorageSshKeyResult> getStorageSshKey(GetStorageSshKeyArgs args, InvokeOptions options)
public static Output<GetStorageSshKeyResult> getStorageSshKey(GetStorageSshKeyArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getStorageSshKey:getStorageSshKey
arguments:
# arguments dictionarydata "gcore_getstoragesshkey" "name" {
# arguments
}The following arguments are supported:
- find_
one_ objectby - ssh_
key_ numberid
- find
One Property MapBy - ssh
Key NumberId
getStorageSshKey Result
The following output properties are available:
- created_
at string - ISO 8601 timestamp when the SSH key was created
- id number
- The ID of this resource.
- name string
- User-defined name for the SSH key
- public_
key string - The SSH public key content
- find_
one_ objectby - ssh_
key_ numberid
- created_
at str - ISO 8601 timestamp when the SSH key was created
- id float
- The ID of this resource.
- name str
- User-defined name for the SSH key
- public_
key str - The SSH public key content
- find_
one_ Getby Storage Ssh Key Find One By - ssh_
key_ floatid
Supporting Types
GetStorageSshKeyFindOneBy
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
Viewing docs for gcore 2.0.0-alpha.8
published on Wednesday, May 20, 2026 by g-core
published on Wednesday, May 20, 2026 by g-core
