1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getDbaasLogsEncryptionKey
Viewing docs for OVHCloud v2.14.0
published on Monday, Jun 15, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.14.0
published on Monday, Jun 15, 2026 by OVHcloud

    Use this data source to retrieve information about a DBaaS Logs encryption key.

    Example Usage

    By title

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const key = ovh.getDbaasLogsEncryptionKey({
        serviceName: "ldp-xx-xxxxx",
        title: "my-encryption-key",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    key = ovh.get_dbaas_logs_encryption_key(service_name="ldp-xx-xxxxx",
        title="my-encryption-key")
    
    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.LookupDbaasLogsEncryptionKey(ctx, &ovh.LookupDbaasLogsEncryptionKeyArgs{
    			ServiceName: "ldp-xx-xxxxx",
    			Title:       pulumi.StringRef("my-encryption-key"),
    		}, 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 key = Ovh.GetDbaasLogsEncryptionKey.Invoke(new()
        {
            ServiceName = "ldp-xx-xxxxx",
            Title = "my-encryption-key",
        });
    
    });
    
    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.GetDbaasLogsEncryptionKeyArgs;
    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 key = OvhFunctions.getDbaasLogsEncryptionKey(GetDbaasLogsEncryptionKeyArgs.builder()
                .serviceName("ldp-xx-xxxxx")
                .title("my-encryption-key")
                .build());
    
        }
    }
    
    variables:
      key:
        fn::invoke:
          function: ovh:getDbaasLogsEncryptionKey
          arguments:
            serviceName: ldp-xx-xxxxx
            title: my-encryption-key
    
    Example coming soon!
    

    By encryption key ID

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const key = ovh.getDbaasLogsEncryptionKey({
        serviceName: "ldp-xx-xxxxx",
        encryptionKeyId: "dc145bc2-eb01-4efe-a802-XXXXXX",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    key = ovh.get_dbaas_logs_encryption_key(service_name="ldp-xx-xxxxx",
        encryption_key_id="dc145bc2-eb01-4efe-a802-XXXXXX")
    
    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.LookupDbaasLogsEncryptionKey(ctx, &ovh.LookupDbaasLogsEncryptionKeyArgs{
    			ServiceName:     "ldp-xx-xxxxx",
    			EncryptionKeyId: pulumi.StringRef("dc145bc2-eb01-4efe-a802-XXXXXX"),
    		}, 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 key = Ovh.GetDbaasLogsEncryptionKey.Invoke(new()
        {
            ServiceName = "ldp-xx-xxxxx",
            EncryptionKeyId = "dc145bc2-eb01-4efe-a802-XXXXXX",
        });
    
    });
    
    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.GetDbaasLogsEncryptionKeyArgs;
    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 key = OvhFunctions.getDbaasLogsEncryptionKey(GetDbaasLogsEncryptionKeyArgs.builder()
                .serviceName("ldp-xx-xxxxx")
                .encryptionKeyId("dc145bc2-eb01-4efe-a802-XXXXXX")
                .build());
    
        }
    }
    
    variables:
      key:
        fn::invoke:
          function: ovh:getDbaasLogsEncryptionKey
          arguments:
            serviceName: ldp-xx-xxxxx
            encryptionKeyId: dc145bc2-eb01-4efe-a802-XXXXXX
    
    Example coming soon!
    

    Using getDbaasLogsEncryptionKey

    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 getDbaasLogsEncryptionKey(args: GetDbaasLogsEncryptionKeyArgs, opts?: InvokeOptions): Promise<GetDbaasLogsEncryptionKeyResult>
    function getDbaasLogsEncryptionKeyOutput(args: GetDbaasLogsEncryptionKeyOutputArgs, opts?: InvokeOptions): Output<GetDbaasLogsEncryptionKeyResult>
    def get_dbaas_logs_encryption_key(encryption_key_id: Optional[str] = None,
                                      service_name: Optional[str] = None,
                                      title: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetDbaasLogsEncryptionKeyResult
    def get_dbaas_logs_encryption_key_output(encryption_key_id: pulumi.Input[Optional[str]] = None,
                                      service_name: pulumi.Input[Optional[str]] = None,
                                      title: pulumi.Input[Optional[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetDbaasLogsEncryptionKeyResult]
    func LookupDbaasLogsEncryptionKey(ctx *Context, args *LookupDbaasLogsEncryptionKeyArgs, opts ...InvokeOption) (*LookupDbaasLogsEncryptionKeyResult, error)
    func LookupDbaasLogsEncryptionKeyOutput(ctx *Context, args *LookupDbaasLogsEncryptionKeyOutputArgs, opts ...InvokeOption) LookupDbaasLogsEncryptionKeyResultOutput

    > Note: This function is named LookupDbaasLogsEncryptionKey in the Go SDK.

    public static class GetDbaasLogsEncryptionKey 
    {
        public static Task<GetDbaasLogsEncryptionKeyResult> InvokeAsync(GetDbaasLogsEncryptionKeyArgs args, InvokeOptions? opts = null)
        public static Output<GetDbaasLogsEncryptionKeyResult> Invoke(GetDbaasLogsEncryptionKeyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbaasLogsEncryptionKeyResult> getDbaasLogsEncryptionKey(GetDbaasLogsEncryptionKeyArgs args, InvokeOptions options)
    public static Output<GetDbaasLogsEncryptionKeyResult> getDbaasLogsEncryptionKey(GetDbaasLogsEncryptionKeyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getDbaasLogsEncryptionKey:getDbaasLogsEncryptionKey
      arguments:
        # arguments dictionary
    data "ovh_getdbaaslogsencryptionkey" "name" {
        # arguments
    }

    The following arguments are supported:

    ServiceName string
    The LDP service name
    EncryptionKeyId string

    The encryption key ID. Conflicts with title.

    At least one of title or encryption_key_id must be specified.

    Title string
    The encryption key title. Conflicts with encryption_key_id.
    ServiceName string
    The LDP service name
    EncryptionKeyId string

    The encryption key ID. Conflicts with title.

    At least one of title or encryption_key_id must be specified.

    Title string
    The encryption key title. Conflicts with encryption_key_id.
    service_name string
    The LDP service name
    encryption_key_id string

    The encryption key ID. Conflicts with title.

    At least one of title or encryption_key_id must be specified.

    title string
    The encryption key title. Conflicts with encryption_key_id.
    serviceName String
    The LDP service name
    encryptionKeyId String

    The encryption key ID. Conflicts with title.

    At least one of title or encryption_key_id must be specified.

    title String
    The encryption key title. Conflicts with encryption_key_id.
    serviceName string
    The LDP service name
    encryptionKeyId string

    The encryption key ID. Conflicts with title.

    At least one of title or encryption_key_id must be specified.

    title string
    The encryption key title. Conflicts with encryption_key_id.
    service_name str
    The LDP service name
    encryption_key_id str

    The encryption key ID. Conflicts with title.

    At least one of title or encryption_key_id must be specified.

    title str
    The encryption key title. Conflicts with encryption_key_id.
    serviceName String
    The LDP service name
    encryptionKeyId String

    The encryption key ID. Conflicts with title.

    At least one of title or encryption_key_id must be specified.

    title String
    The encryption key title. Conflicts with encryption_key_id.

    getDbaasLogsEncryptionKey Result

    The following output properties are available:

    CreatedAt string
    The encryption key creation date
    EncryptionKeyId string
    Fingerprint string
    The PGP key fingerprint
    Id string
    The provider-assigned unique ID for this managed resource.
    IsEditable bool
    Indicates if the key is editable
    ServiceName string
    Title string
    CreatedAt string
    The encryption key creation date
    EncryptionKeyId string
    Fingerprint string
    The PGP key fingerprint
    Id string
    The provider-assigned unique ID for this managed resource.
    IsEditable bool
    Indicates if the key is editable
    ServiceName string
    Title string
    created_at string
    The encryption key creation date
    encryption_key_id string
    fingerprint string
    The PGP key fingerprint
    id string
    The provider-assigned unique ID for this managed resource.
    is_editable bool
    Indicates if the key is editable
    service_name string
    title string
    createdAt String
    The encryption key creation date
    encryptionKeyId String
    fingerprint String
    The PGP key fingerprint
    id String
    The provider-assigned unique ID for this managed resource.
    isEditable Boolean
    Indicates if the key is editable
    serviceName String
    title String
    createdAt string
    The encryption key creation date
    encryptionKeyId string
    fingerprint string
    The PGP key fingerprint
    id string
    The provider-assigned unique ID for this managed resource.
    isEditable boolean
    Indicates if the key is editable
    serviceName string
    title string
    created_at str
    The encryption key creation date
    encryption_key_id str
    fingerprint str
    The PGP key fingerprint
    id str
    The provider-assigned unique ID for this managed resource.
    is_editable bool
    Indicates if the key is editable
    service_name str
    title str
    createdAt String
    The encryption key creation date
    encryptionKeyId String
    fingerprint String
    The PGP key fingerprint
    id String
    The provider-assigned unique ID for this managed resource.
    isEditable Boolean
    Indicates if the key is editable
    serviceName String
    title String

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.14.0
    published on Monday, Jun 15, 2026 by OVHcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial