Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core
published on Monday, Mar 30, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core
published on Monday, Mar 30, 2026 by g-core
SSH key pairs provide secure authentication to cloud instances, supporting both generated and imported public keys.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleCloudSshKeys = gcore.getCloudSshKeys({
projectId: 1,
name: "my-ssh-key",
});
import pulumi
import pulumi_gcore as gcore
example_cloud_ssh_keys = gcore.get_cloud_ssh_keys(project_id=1,
name="my-ssh-key")
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.GetCloudSshKeys(ctx, &gcore.GetCloudSshKeysArgs{
ProjectId: pulumi.Float64Ref(1),
Name: pulumi.StringRef("my-ssh-key"),
}, 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 exampleCloudSshKeys = Gcore.GetCloudSshKeys.Invoke(new()
{
ProjectId = 1,
Name = "my-ssh-key",
});
});
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.GetCloudSshKeysArgs;
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 exampleCloudSshKeys = GcoreFunctions.getCloudSshKeys(GetCloudSshKeysArgs.builder()
.projectId(1)
.name("my-ssh-key")
.build());
}
}
variables:
exampleCloudSshKeys:
fn::invoke:
function: gcore:getCloudSshKeys
arguments:
projectId: 1
name: my-ssh-key
Using getCloudSshKeys
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 getCloudSshKeys(args: GetCloudSshKeysArgs, opts?: InvokeOptions): Promise<GetCloudSshKeysResult>
function getCloudSshKeysOutput(args: GetCloudSshKeysOutputArgs, opts?: InvokeOptions): Output<GetCloudSshKeysResult>def get_cloud_ssh_keys(max_items: Optional[float] = None,
name: Optional[str] = None,
order_by: Optional[str] = None,
project_id: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudSshKeysResult
def get_cloud_ssh_keys_output(max_items: Optional[pulumi.Input[float]] = None,
name: Optional[pulumi.Input[str]] = None,
order_by: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudSshKeysResult]func GetCloudSshKeys(ctx *Context, args *GetCloudSshKeysArgs, opts ...InvokeOption) (*GetCloudSshKeysResult, error)
func GetCloudSshKeysOutput(ctx *Context, args *GetCloudSshKeysOutputArgs, opts ...InvokeOption) GetCloudSshKeysResultOutput> Note: This function is named GetCloudSshKeys in the Go SDK.
public static class GetCloudSshKeys
{
public static Task<GetCloudSshKeysResult> InvokeAsync(GetCloudSshKeysArgs args, InvokeOptions? opts = null)
public static Output<GetCloudSshKeysResult> Invoke(GetCloudSshKeysInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudSshKeysResult> getCloudSshKeys(GetCloudSshKeysArgs args, InvokeOptions options)
public static Output<GetCloudSshKeysResult> getCloudSshKeys(GetCloudSshKeysArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getCloudSshKeys:getCloudSshKeys
arguments:
# arguments dictionaryThe following arguments are supported:
- Max
Items double - Max items to fetch, default: 1000
- Name string
- SSH key name. Partial substring match. Example:
name=abcmatches any key containingabcin name. - Order
By string - Sort order for the SSH keys Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
- Project
Id double - Project ID
- Max
Items float64 - Max items to fetch, default: 1000
- Name string
- SSH key name. Partial substring match. Example:
name=abcmatches any key containingabcin name. - Order
By string - Sort order for the SSH keys Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
- Project
Id float64 - Project ID
- max
Items Double - Max items to fetch, default: 1000
- name String
- SSH key name. Partial substring match. Example:
name=abcmatches any key containingabcin name. - order
By String - Sort order for the SSH keys Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
- project
Id Double - Project ID
- max
Items number - Max items to fetch, default: 1000
- name string
- SSH key name. Partial substring match. Example:
name=abcmatches any key containingabcin name. - order
By string - Sort order for the SSH keys Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
- project
Id number - Project ID
- max_
items float - Max items to fetch, default: 1000
- name str
- SSH key name. Partial substring match. Example:
name=abcmatches any key containingabcin name. - order_
by str - Sort order for the SSH keys Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
- project_
id float - Project ID
- max
Items Number - Max items to fetch, default: 1000
- name String
- SSH key name. Partial substring match. Example:
name=abcmatches any key containingabcin name. - order
By String - Sort order for the SSH keys Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
- project
Id Number - Project ID
getCloudSshKeys Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Cloud Ssh Keys Item> - The items returned by the data source
- Order
By string - Sort order for the SSH keys Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
- Max
Items double - Max items to fetch, default: 1000
- Name string
- SSH key name. Partial substring match. Example:
name=abcmatches any key containingabcin name. - Project
Id double - Project ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Cloud Ssh Keys Item - The items returned by the data source
- Order
By string - Sort order for the SSH keys Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
- Max
Items float64 - Max items to fetch, default: 1000
- Name string
- SSH key name. Partial substring match. Example:
name=abcmatches any key containingabcin name. - Project
Id float64 - Project ID
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Cloud Ssh Keys Item> - The items returned by the data source
- order
By String - Sort order for the SSH keys Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
- max
Items Double - Max items to fetch, default: 1000
- name String
- SSH key name. Partial substring match. Example:
name=abcmatches any key containingabcin name. - project
Id Double - Project ID
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Cloud Ssh Keys Item[] - The items returned by the data source
- order
By string - Sort order for the SSH keys Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
- max
Items number - Max items to fetch, default: 1000
- name string
- SSH key name. Partial substring match. Example:
name=abcmatches any key containingabcin name. - project
Id number - Project ID
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[Get
Cloud Ssh Keys Item] - The items returned by the data source
- order_
by str - Sort order for the SSH keys Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
- max_
items float - Max items to fetch, default: 1000
- name str
- SSH key name. Partial substring match. Example:
name=abcmatches any key containingabcin name. - project_
id float - Project ID
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- The items returned by the data source
- order
By String - Sort order for the SSH keys Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
- max
Items Number - Max items to fetch, default: 1000
- name String
- SSH key name. Partial substring match. Example:
name=abcmatches any key containingabcin name. - project
Id Number - Project ID
Supporting Types
GetCloudSshKeysItem
- Created
At string - SSH key creation time
- Fingerprint string
- Fingerprint
- Id string
- SSH key ID
- Name string
- SSH key name
- Project
Id double - Project ID
- Public
Key string - The public part of an SSH key is the shareable portion of an SSH key pair. It can be safely sent to servers or services to grant access. It does not contain sensitive information.
- bool
- SSH key will be visible to all users in the project
- State string
- SSH key state Available values: "ACTIVE", "DELETING".
- Created
At string - SSH key creation time
- Fingerprint string
- Fingerprint
- Id string
- SSH key ID
- Name string
- SSH key name
- Project
Id float64 - Project ID
- Public
Key string - The public part of an SSH key is the shareable portion of an SSH key pair. It can be safely sent to servers or services to grant access. It does not contain sensitive information.
- bool
- SSH key will be visible to all users in the project
- State string
- SSH key state Available values: "ACTIVE", "DELETING".
- created
At String - SSH key creation time
- fingerprint String
- Fingerprint
- id String
- SSH key ID
- name String
- SSH key name
- project
Id Double - Project ID
- public
Key String - The public part of an SSH key is the shareable portion of an SSH key pair. It can be safely sent to servers or services to grant access. It does not contain sensitive information.
- Boolean
- SSH key will be visible to all users in the project
- state String
- SSH key state Available values: "ACTIVE", "DELETING".
- created
At string - SSH key creation time
- fingerprint string
- Fingerprint
- id string
- SSH key ID
- name string
- SSH key name
- project
Id number - Project ID
- public
Key string - The public part of an SSH key is the shareable portion of an SSH key pair. It can be safely sent to servers or services to grant access. It does not contain sensitive information.
- boolean
- SSH key will be visible to all users in the project
- state string
- SSH key state Available values: "ACTIVE", "DELETING".
- created_
at str - SSH key creation time
- fingerprint str
- Fingerprint
- id str
- SSH key ID
- name str
- SSH key name
- project_
id float - Project ID
- public_
key str - The public part of an SSH key is the shareable portion of an SSH key pair. It can be safely sent to servers or services to grant access. It does not contain sensitive information.
- bool
- SSH key will be visible to all users in the project
- state str
- SSH key state Available values: "ACTIVE", "DELETING".
- created
At String - SSH key creation time
- fingerprint String
- Fingerprint
- id String
- SSH key ID
- name String
- SSH key name
- project
Id Number - Project ID
- public
Key String - The public part of an SSH key is the shareable portion of an SSH key pair. It can be safely sent to servers or services to grant access. It does not contain sensitive information.
- Boolean
- SSH key will be visible to all users in the project
- state String
- SSH key state Available values: "ACTIVE", "DELETING".
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.3
published on Monday, Mar 30, 2026 by g-core
published on Monday, Mar 30, 2026 by g-core
