Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud
This data source uses a Beta API. Use this data source to list the SSH keys of a Public Cloud project (API v2).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const myKeys = ovh.getCloudSshKeys({
serviceName: "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
});
import pulumi
import pulumi_ovh as ovh
my_keys = ovh.get_cloud_ssh_keys(service_name="aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
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.GetCloudSshKeys(ctx, &ovh.GetCloudSshKeysArgs{
ServiceName: pulumi.StringRef("aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"),
}, 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 myKeys = Ovh.GetCloudSshKeys.Invoke(new()
{
ServiceName = "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
});
});
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.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 myKeys = OvhFunctions.getCloudSshKeys(GetCloudSshKeysArgs.builder()
.serviceName("aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
.build());
}
}
variables:
myKeys:
fn::invoke:
function: ovh:getCloudSshKeys
arguments:
serviceName: aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
Example coming soon!
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(service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudSshKeysResult
def get_cloud_ssh_keys_output(service_name: pulumi.Input[Optional[str]] = 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: ovh:index/getCloudSshKeys:getCloudSshKeys
arguments:
# arguments dictionarydata "ovh_get_cloud_ssh_keys" "name" {
# arguments
}The following arguments are supported:
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- service_
name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- service_
name str - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
getCloudSshKeys Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ssh
Keys List<GetCloud Ssh Keys Ssh Key> - The list of SSH keys of the project. Each element contains:
- Service
Name string - The id of the public cloud project.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ssh
Keys []GetCloud Ssh Keys Ssh Key - The list of SSH keys of the project. Each element contains:
- Service
Name string - The id of the public cloud project.
- id string
- The provider-assigned unique ID for this managed resource.
- ssh_
keys list(object) - The list of SSH keys of the project. Each element contains:
- service_
name string - The id of the public cloud project.
- id String
- The provider-assigned unique ID for this managed resource.
- ssh
Keys List<GetCloud Ssh Keys Ssh Key> - The list of SSH keys of the project. Each element contains:
- service
Name String - The id of the public cloud project.
- id string
- The provider-assigned unique ID for this managed resource.
- ssh
Keys GetCloud Ssh Keys Ssh Key[] - The list of SSH keys of the project. Each element contains:
- service
Name string - The id of the public cloud project.
- id str
- The provider-assigned unique ID for this managed resource.
- ssh_
keys Sequence[GetCloud Ssh Keys Ssh Key] - The list of SSH keys of the project. Each element contains:
- service_
name str - The id of the public cloud project.
- id String
- The provider-assigned unique ID for this managed resource.
- ssh
Keys List<Property Map> - The list of SSH keys of the project. Each element contains:
- service
Name String - The id of the public cloud project.
Supporting Types
GetCloudSshKeysSshKey
- created_
at string - Creation date of the SSH key (RFC 3339 format).
- name string
- SSH key name.
- public_
key string - SSH public key content.
- updated_
at string - Last update date of the SSH key (RFC 3339 format).
- created_
at str - Creation date of the SSH key (RFC 3339 format).
- name str
- SSH key name.
- public_
key str - SSH public key content.
- updated_
at str - Last update date of the SSH key (RFC 3339 format).
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud