published on Monday, Jun 15, 2026 by OVHcloud
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 dictionarydata "ovh_getdbaaslogsencryptionkey" "name" {
# arguments
}The following arguments are supported:
- Service
Name string - The LDP service name
- Encryption
Key stringId The encryption key ID. Conflicts with
title.At least one of
titleorencryption_key_idmust be specified.- Title string
- The encryption key title. Conflicts with
encryption_key_id.
- Service
Name string - The LDP service name
- Encryption
Key stringId The encryption key ID. Conflicts with
title.At least one of
titleorencryption_key_idmust be specified.- Title string
- The encryption key title. Conflicts with
encryption_key_id.
- service_
name string - The LDP service name
- encryption_
key_ stringid The encryption key ID. Conflicts with
title.At least one of
titleorencryption_key_idmust be specified.- title string
- The encryption key title. Conflicts with
encryption_key_id.
- service
Name String - The LDP service name
- encryption
Key StringId The encryption key ID. Conflicts with
title.At least one of
titleorencryption_key_idmust be specified.- title String
- The encryption key title. Conflicts with
encryption_key_id.
- service
Name string - The LDP service name
- encryption
Key stringId The encryption key ID. Conflicts with
title.At least one of
titleorencryption_key_idmust be specified.- title string
- The encryption key title. Conflicts with
encryption_key_id.
- service_
name str - The LDP service name
- encryption_
key_ strid The encryption key ID. Conflicts with
title.At least one of
titleorencryption_key_idmust be specified.- title str
- The encryption key title. Conflicts with
encryption_key_id.
- service
Name String - The LDP service name
- encryption
Key StringId The encryption key ID. Conflicts with
title.At least one of
titleorencryption_key_idmust be specified.- title String
- The encryption key title. Conflicts with
encryption_key_id.
getDbaasLogsEncryptionKey Result
The following output properties are available:
- Created
At string - The encryption key creation date
- Encryption
Key stringId - 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
- Created
At string - The encryption key creation date
- Encryption
Key stringId - 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
- created_
at string - The encryption key creation date
- encryption_
key_ stringid - 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
- created
At String - The encryption key creation date
- encryption
Key StringId - fingerprint String
- The PGP key fingerprint
- id String
- The provider-assigned unique ID for this managed resource.
- is
Editable Boolean - Indicates if the key is editable
- service
Name String - title String
- created
At string - The encryption key creation date
- encryption
Key stringId - fingerprint string
- The PGP key fingerprint
- id string
- The provider-assigned unique ID for this managed resource.
- is
Editable boolean - Indicates if the key is editable
- service
Name string - title string
- created_
at str - The encryption key creation date
- encryption_
key_ strid - 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
- created
At String - The encryption key creation date
- encryption
Key StringId - fingerprint String
- The PGP key fingerprint
- id String
- The provider-assigned unique ID for this managed resource.
- is
Editable Boolean - Indicates if the key is editable
- service
Name String - title String
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
published on Monday, Jun 15, 2026 by OVHcloud