1. Packages
  2. OVH
  3. API Docs
  4. getCloudProjectSshKeys
OVHCloud v2.8.0 published on Wednesday, Sep 24, 2025 by OVHcloud

ovh.getCloudProjectSshKeys

Start a Neo task
Explain and create an ovh.getCloudProjectSshKeys resource
ovh logo
OVHCloud v2.8.0 published on Wednesday, Sep 24, 2025 by OVHcloud

    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:

    ServiceName string
    Service name
    Region string
    Region
    ServiceName string
    Service name
    Region string
    Region
    serviceName String
    Service name
    region String
    Region
    serviceName string
    Service name
    region string
    Region
    service_name str
    Service name
    region str
    Region
    serviceName 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
    ServiceName string
    Service name
    SshKeys List<GetCloudProjectSshKeysSshKey>
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    Region
    ServiceName string
    Service name
    SshKeys []GetCloudProjectSshKeysSshKey
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    Region
    serviceName String
    Service name
    sshKeys List<GetCloudProjectSshKeysSshKey>
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    Region
    serviceName string
    Service name
    sshKeys GetCloudProjectSshKeysSshKey[]
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    Region
    service_name str
    Service name
    ssh_keys Sequence[GetCloudProjectSshKeysSshKey]
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    Region
    serviceName String
    Service name
    sshKeys List<Property Map>

    Supporting Types

    GetCloudProjectSshKeysSshKey

    Id string
    SSH key ID
    Name string
    SSH key name
    PublicKey string
    SSH public key
    Regions List<string>
    SSH key regions
    Id string
    SSH key ID
    Name string
    SSH key name
    PublicKey string
    SSH public key
    Regions []string
    SSH key regions
    id String
    SSH key ID
    name String
    SSH key name
    publicKey String
    SSH public key
    regions List<String>
    SSH key regions
    id string
    SSH key ID
    name string
    SSH key name
    publicKey string
    SSH public key
    regions string[]
    SSH key regions
    id str
    SSH key ID
    name str
    SSH key name
    public_key str
    SSH public key
    regions Sequence[str]
    SSH key regions
    id String
    SSH key ID
    name String
    SSH key name
    publicKey String
    SSH public key
    regions List<String>
    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.
    ovh logo
    OVHCloud v2.8.0 published on Wednesday, Sep 24, 2025 by OVHcloud
      Meet Neo: Your AI Platform Teammate