1. Packages
  2. Packages
  3. Gcore Provider
  4. API Docs
  5. getStorageSshKeys
Viewing docs for gcore 2.0.0-alpha.8
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

    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 dictionary
    data "gcore_getstoragesshkeys" "name" {
        # arguments
    }

    The following arguments are supported:

    MaxItems double
    Max items to fetch, default: 1000
    Name string
    Filter by name (partial match)
    OrderBy string
    MaxItems float64
    Max items to fetch, default: 1000
    Name string
    Filter by name (partial match)
    OrderBy string
    max_items number
    Max items to fetch, default: 1000
    name string
    Filter by name (partial match)
    order_by string
    maxItems Double
    Max items to fetch, default: 1000
    name String
    Filter by name (partial match)
    orderBy String
    maxItems number
    Max items to fetch, default: 1000
    name string
    Filter by name (partial match)
    orderBy string
    max_items float
    Max items to fetch, default: 1000
    name str
    Filter by name (partial match)
    order_by str
    maxItems Number
    Max items to fetch, default: 1000
    name String
    Filter by name (partial match)
    orderBy String

    getStorageSshKeys Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetStorageSshKeysItem>
    The items returned by the data source
    OrderBy string
    MaxItems double
    Max items to fetch, default: 1000
    Name string
    Filter by name (partial match)
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetStorageSshKeysItem
    The items returned by the data source
    OrderBy string
    MaxItems float64
    Max items to fetch, default: 1000
    Name string
    Filter by name (partial match)
    id string
    The provider-assigned unique ID for this managed resource.
    items list(object)
    The items returned by the data source
    order_by string
    max_items number
    Max items to fetch, default: 1000
    name string
    Filter by name (partial match)
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetStorageSshKeysItem>
    The items returned by the data source
    orderBy String
    maxItems Double
    Max items to fetch, default: 1000
    name String
    Filter by name (partial match)
    id string
    The provider-assigned unique ID for this managed resource.
    items GetStorageSshKeysItem[]
    The items returned by the data source
    orderBy string
    maxItems number
    Max items to fetch, default: 1000
    name string
    Filter by name (partial match)
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetStorageSshKeysItem]
    The items returned by the data source
    order_by str
    max_items float
    Max items to fetch, default: 1000
    name str
    Filter by name (partial match)
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    The items returned by the data source
    orderBy String
    maxItems Number
    Max items to fetch, default: 1000
    name String
    Filter by name (partial match)

    Supporting Types

    GetStorageSshKeysItem

    CreatedAt string
    ISO 8601 timestamp when the SSH key was created
    Id double
    Unique identifier for the SSH key
    Name string
    User-defined name for the SSH key
    PublicKey string
    The SSH public key content
    CreatedAt string
    ISO 8601 timestamp when the SSH key was created
    Id float64
    Unique identifier for the SSH key
    Name string
    User-defined name for the SSH key
    PublicKey string
    The SSH public key content
    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
    createdAt String
    ISO 8601 timestamp when the SSH key was created
    id Double
    Unique identifier for the SSH key
    name String
    User-defined name for the SSH key
    publicKey String
    The SSH public key content
    createdAt 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
    publicKey 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
    createdAt 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
    publicKey String
    The SSH public key content

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    Viewing docs for gcore 2.0.0-alpha.8
    published on Wednesday, May 20, 2026 by g-core
      Try Pulumi Cloud free. Your team will thank you.