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 exampleStorageSshKeys = gcore.getStorageSshKeys({
name: "name",
});
import pulumi
import pulumi_gcore as gcore
example_storage_ssh_keys = gcore.get_storage_ssh_keys(name="name")
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.GetStorageSshKeys(ctx, &gcore.GetStorageSshKeysArgs{
Name: pulumi.StringRef("name"),
}, 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 exampleStorageSshKeys = Gcore.GetStorageSshKeys.Invoke(new()
{
Name = "name",
});
});
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.GetStorageSshKeysArgs;
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 exampleStorageSshKeys = GcoreFunctions.getStorageSshKeys(GetStorageSshKeysArgs.builder()
.name("name")
.build());
}
}
variables:
exampleStorageSshKeys:
fn::invoke:
function: gcore:getStorageSshKeys
arguments:
name: name
Example coming soon!
Using getStorageSshKeys
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 getStorageSshKeys(args: GetStorageSshKeysArgs, opts?: InvokeOptions): Promise<GetStorageSshKeysResult>
function getStorageSshKeysOutput(args: GetStorageSshKeysOutputArgs, opts?: InvokeOptions): Output<GetStorageSshKeysResult>def get_storage_ssh_keys(max_items: Optional[float] = None,
name: Optional[str] = None,
order_by: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStorageSshKeysResult
def get_storage_ssh_keys_output(max_items: pulumi.Input[Optional[float]] = None,
name: pulumi.Input[Optional[str]] = None,
order_by: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStorageSshKeysResult]func GetStorageSshKeys(ctx *Context, args *GetStorageSshKeysArgs, opts ...InvokeOption) (*GetStorageSshKeysResult, error)
func GetStorageSshKeysOutput(ctx *Context, args *GetStorageSshKeysOutputArgs, opts ...InvokeOption) GetStorageSshKeysResultOutput> Note: This function is named GetStorageSshKeys in the Go SDK.
public static class GetStorageSshKeys
{
public static Task<GetStorageSshKeysResult> InvokeAsync(GetStorageSshKeysArgs args, InvokeOptions? opts = null)
public static Output<GetStorageSshKeysResult> Invoke(GetStorageSshKeysInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStorageSshKeysResult> getStorageSshKeys(GetStorageSshKeysArgs args, InvokeOptions options)
public static Output<GetStorageSshKeysResult> getStorageSshKeys(GetStorageSshKeysArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getStorageSshKeys:getStorageSshKeys
arguments:
# arguments dictionarydata "gcore_getstoragesshkeys" "name" {
# arguments
}The following arguments are supported:
getStorageSshKeys Result
The following output properties are available:
Supporting Types
GetStorageSshKeysItem
- created_
at string - ISO 8601 timestamp when the SSH key was created
- id number
- Unique identifier for the SSH key
- name string
- User-defined name for the SSH key
- public_
key string - The SSH public key content
- created_
at str - ISO 8601 timestamp when the SSH key was created
- id float
- Unique identifier for the SSH key
- name str
- User-defined name for the SSH key
- public_
key str - The SSH public key content
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
