OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud
ovh.getCloudProjectSshKeys
Explore with Pulumi AI
Get SSH keys in a Public Cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const keys = ovh.getCloudProjectSshKeys({
serviceName: "XXX",
});
import pulumi
import pulumi_ovh as ovh
keys = ovh.get_cloud_project_ssh_keys(service_name="XXX")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ovh.GetCloudProjectSshKeys(ctx, &ovh.GetCloudProjectSshKeysArgs{
ServiceName: "XXX",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var keys = Ovh.GetCloudProjectSshKeys.Invoke(new()
{
ServiceName = "XXX",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.OvhFunctions;
import com.pulumi.ovh.inputs.GetCloudProjectSshKeysArgs;
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 keys = OvhFunctions.getCloudProjectSshKeys(GetCloudProjectSshKeysArgs.builder()
.serviceName("XXX")
.build());
}
}
variables:
keys:
fn::invoke:
function: ovh:getCloudProjectSshKeys
arguments:
serviceName: XXX
Using getCloudProjectSshKeys
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 getCloudProjectSshKeys(args: GetCloudProjectSshKeysArgs, opts?: InvokeOptions): Promise<GetCloudProjectSshKeysResult>
function getCloudProjectSshKeysOutput(args: GetCloudProjectSshKeysOutputArgs, opts?: InvokeOptions): Output<GetCloudProjectSshKeysResult>
def get_cloud_project_ssh_keys(region: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudProjectSshKeysResult
def get_cloud_project_ssh_keys_output(region: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudProjectSshKeysResult]
func GetCloudProjectSshKeys(ctx *Context, args *GetCloudProjectSshKeysArgs, opts ...InvokeOption) (*GetCloudProjectSshKeysResult, error)
func GetCloudProjectSshKeysOutput(ctx *Context, args *GetCloudProjectSshKeysOutputArgs, opts ...InvokeOption) GetCloudProjectSshKeysResultOutput
> Note: This function is named GetCloudProjectSshKeys
in the Go SDK.
public static class GetCloudProjectSshKeys
{
public static Task<GetCloudProjectSshKeysResult> InvokeAsync(GetCloudProjectSshKeysArgs args, InvokeOptions? opts = null)
public static Output<GetCloudProjectSshKeysResult> Invoke(GetCloudProjectSshKeysInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCloudProjectSshKeysResult> getCloudProjectSshKeys(GetCloudProjectSshKeysArgs args, InvokeOptions options)
public static Output<GetCloudProjectSshKeysResult> getCloudProjectSshKeys(GetCloudProjectSshKeysArgs args, InvokeOptions options)
fn::invoke:
function: ovh:index/getCloudProjectSshKeys:getCloudProjectSshKeys
arguments:
# arguments dictionary
The following arguments are supported:
- Service
Name string - Service name
- Region string
- Region
- Service
Name string - Service name
- Region string
- Region
- service
Name String - Service name
- region String
- Region
- service
Name string - Service name
- region string
- Region
- service_
name str - Service name
- region str
- Region
- service
Name String - Service name
- region String
- Region
getCloudProjectSshKeys Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Region
- Service
Name string - Service name
- Ssh
Keys List<GetCloud Project Ssh Keys Ssh Key>
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Region
- Service
Name string - Service name
- Ssh
Keys []GetCloud Project Ssh Keys Ssh Key
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- Region
- service
Name String - Service name
- ssh
Keys List<GetCloud Project Ssh Keys Ssh Key>
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- Region
- service
Name string - Service name
- ssh
Keys GetCloud Project Ssh Keys Ssh Key[]
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- Region
- service_
name str - Service name
- ssh_
keys Sequence[GetCloud Project Ssh Keys Ssh Key]
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- Region
- service
Name String - Service name
- ssh
Keys List<Property Map>
Supporting Types
GetCloudProjectSshKeysSshKey
- id str
- SSH key ID
- name str
- SSH key name
- public_
key str - SSH public key
- regions Sequence[str]
- SSH key regions
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.