Viewing docs for Scaleway v1.60.0
published on Saturday, Oct 24, 2026 by pulumiverse
published on Saturday, Oct 24, 2026 by pulumiverse
Viewing docs for Scaleway v1.60.0
published on Saturday, Oct 24, 2026 by pulumiverse
published on Saturday, Oct 24, 2026 by pulumiverse
Gets information about available logs for a Scaleway Managed Database Instance.
Refer to the Managed Databases for PostgreSQL and MySQL documentation and API documentation for more information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.databases.Instance("main", {
name: "rdb-instance-logs",
nodeType: "db-dev-s",
engine: "PostgreSQL-15",
isHaCluster: false,
disableBackup: true,
userName: "my_initial_user",
password: "thiZ_is_v&ry_s3cret",
});
const logs = scaleway.databases.getInstanceLogsOutput({
instanceId: main.id,
});
import pulumi
import pulumi_scaleway as scaleway
import pulumiverse_scaleway as scaleway
main = scaleway.databases.Instance("main",
name="rdb-instance-logs",
node_type="db-dev-s",
engine="PostgreSQL-15",
is_ha_cluster=False,
disable_backup=True,
user_name="my_initial_user",
password="thiZ_is_v&ry_s3cret")
logs = scaleway.databases.get_instance_logs_output(instance_id=main.id)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/databases"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
main, err := databases.NewInstance(ctx, "main", &databases.InstanceArgs{
Name: pulumi.String("rdb-instance-logs"),
NodeType: pulumi.String("db-dev-s"),
Engine: pulumi.String("PostgreSQL-15"),
IsHaCluster: pulumi.Bool(false),
DisableBackup: pulumi.Bool(true),
UserName: pulumi.String("my_initial_user"),
Password: pulumi.String("thiZ_is_v&ry_s3cret"),
})
if err != nil {
return err
}
_ = databases.GetInstanceLogsOutput(ctx, databases.GetInstanceLogsOutputArgs{
InstanceId: main.ID().ToIDOutput().ToStringOutput(),
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var main = new Scaleway.Databases.Instance("main", new()
{
Name = "rdb-instance-logs",
NodeType = "db-dev-s",
Engine = "PostgreSQL-15",
IsHaCluster = false,
DisableBackup = true,
UserName = "my_initial_user",
Password = "thiZ_is_v&ry_s3cret",
});
var logs = Scaleway.Databases.GetInstanceLogs.Invoke(new()
{
InstanceId = main.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.databases.Instance;
import com.pulumi.scaleway.databases.InstanceArgs;
import com.pulumi.scaleway.databases.DatabasesFunctions;
import com.pulumi.scaleway.databases.inputs.GetInstanceLogsArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
var main = new Instance("main", InstanceArgs.builder()
.name("rdb-instance-logs")
.nodeType("db-dev-s")
.engine("PostgreSQL-15")
.isHaCluster(false)
.disableBackup(true)
.userName("my_initial_user")
.password("thiZ_is_v&ry_s3cret")
.build());
final var logs = DatabasesFunctions.getInstanceLogs(GetInstanceLogsArgs.builder()
.instanceId(main.id())
.build());
}
}
resources:
main:
type: scaleway:databases:Instance
properties:
name: rdb-instance-logs
nodeType: db-dev-s
engine: PostgreSQL-15
isHaCluster: false
disableBackup: true
userName: my_initial_user
password: thiZ_is_v&ry_s3cret
variables:
logs:
fn::invoke:
function: scaleway:databases:getInstanceLogs
arguments:
instanceId: ${main.id}
pulumi {
required_providers {
scaleway = {
source = "pulumi/scaleway"
}
}
}
data "scaleway_databases_getinstancelogs" "logs" {
instance_id = scaleway_databases_instance.main.id
}
resource "scaleway_databases_instance" "main" {
name = "rdb-instance-logs"
node_type = "db-dev-s"
engine = "PostgreSQL-15"
is_ha_cluster = false
disable_backup = true
user_name = "my_initial_user"
password = "thiZ_is_v&ry_s3cret"
}
Using getInstanceLogs
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 getInstanceLogs(args: GetInstanceLogsArgs, opts?: InvokeOptions): Promise<GetInstanceLogsResult>
function getInstanceLogsOutput(args: GetInstanceLogsOutputArgs, opts?: InvokeOutputOptions): Output<GetInstanceLogsResult>def get_instance_logs(instance_id: Optional[str] = None,
order_by: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstanceLogsResult
def get_instance_logs_output(instance_id: pulumi.Input[Optional[str]] = None,
order_by: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetInstanceLogsResult]func GetInstanceLogs(ctx *Context, args *GetInstanceLogsArgs, opts ...InvokeOption) (*GetInstanceLogsResult, error)
func GetInstanceLogsOutput(ctx *Context, args *GetInstanceLogsOutputArgs, opts ...InvokeOption) GetInstanceLogsResultOutput> Note: This function is named GetInstanceLogs in the Go SDK.
public static class GetInstanceLogs
{
public static Task<GetInstanceLogsResult> InvokeAsync(GetInstanceLogsArgs args, InvokeOptions? opts = null)
public static Output<GetInstanceLogsResult> Invoke(GetInstanceLogsInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetInstanceLogsResult> Invoke(GetInstanceLogsInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetInstanceLogsResult> getInstanceLogs(GetInstanceLogsArgs args, InvokeOptions options)
public static Output<GetInstanceLogsResult> getInstanceLogs(GetInstanceLogsArgs args, InvokeOptions options)
public static Output<GetInstanceLogsResult> getInstanceLogs(GetInstanceLogsArgs args, InvokeOutputOptions options)
fn::invoke:
function: scaleway:databases/getInstanceLogs:getInstanceLogs
arguments:
# arguments dictionarydata "scaleway_databases_get_instance_logs" "name" {
# arguments
}The following arguments are supported:
- Instance
Id string - The ID of the Database Instance. Can be a plain UUID or a regional ID (
{region}/{id}). - Order
By string - Criteria to use when ordering Database Instance logs listing. Possible values are
createdAtAscandcreatedAtDesc. - Region string
region) The region in which the Database Instance exists.
- Instance
Id string - The ID of the Database Instance. Can be a plain UUID or a regional ID (
{region}/{id}). - Order
By string - Criteria to use when ordering Database Instance logs listing. Possible values are
createdAtAscandcreatedAtDesc. - Region string
region) The region in which the Database Instance exists.
- instance_
id string - The ID of the Database Instance. Can be a plain UUID or a regional ID (
{region}/{id}). - order_
by string - Criteria to use when ordering Database Instance logs listing. Possible values are
createdAtAscandcreatedAtDesc. - region string
region) The region in which the Database Instance exists.
- instance
Id String - The ID of the Database Instance. Can be a plain UUID or a regional ID (
{region}/{id}). - order
By String - Criteria to use when ordering Database Instance logs listing. Possible values are
createdAtAscandcreatedAtDesc. - region String
region) The region in which the Database Instance exists.
- instance
Id string - The ID of the Database Instance. Can be a plain UUID or a regional ID (
{region}/{id}). - order
By string - Criteria to use when ordering Database Instance logs listing. Possible values are
createdAtAscandcreatedAtDesc. - region string
region) The region in which the Database Instance exists.
- instance_
id str - The ID of the Database Instance. Can be a plain UUID or a regional ID (
{region}/{id}). - order_
by str - Criteria to use when ordering Database Instance logs listing. Possible values are
createdAtAscandcreatedAtDesc. - region str
region) The region in which the Database Instance exists.
- instance
Id String - The ID of the Database Instance. Can be a plain UUID or a regional ID (
{region}/{id}). - order
By String - Criteria to use when ordering Database Instance logs listing. Possible values are
createdAtAscandcreatedAtDesc. - region String
region) The region in which the Database Instance exists.
getInstanceLogs Result
The following output properties are available:
- Id string
- UUID of the Database Instance log, in the
{region}/{id}format. - Instance
Id string - Instance
Logs List<Pulumiverse.Scaleway. Databases. Outputs. Get Instance Logs Instance Log> - List of available logs for the Database Instance.
- Region string
- Region the Database Instance is in.
- Order
By string
- Id string
- UUID of the Database Instance log, in the
{region}/{id}format. - Instance
Id string - Instance
Logs []GetInstance Logs Instance Log - List of available logs for the Database Instance.
- Region string
- Region the Database Instance is in.
- Order
By string
- id string
- UUID of the Database Instance log, in the
{region}/{id}format. - instance_
id string - instance_
logs list(object) - List of available logs for the Database Instance.
- region string
- Region the Database Instance is in.
- order_
by string
- id String
- UUID of the Database Instance log, in the
{region}/{id}format. - instance
Id String - instance
Logs List<GetInstance Logs Instance Log> - List of available logs for the Database Instance.
- region String
- Region the Database Instance is in.
- order
By String
- id string
- UUID of the Database Instance log, in the
{region}/{id}format. - instance
Id string - instance
Logs GetInstance Logs Instance Log[] - List of available logs for the Database Instance.
- region string
- Region the Database Instance is in.
- order
By string
- id str
- UUID of the Database Instance log, in the
{region}/{id}format. - instance_
id str - instance_
logs Sequence[GetInstance Logs Instance Log] - List of available logs for the Database Instance.
- region str
- Region the Database Instance is in.
- order_
by str
- id String
- UUID of the Database Instance log, in the
{region}/{id}format. - instance
Id String - instance
Logs List<Property Map> - List of available logs for the Database Instance.
- region String
- Region the Database Instance is in.
- order
By String
Supporting Types
GetInstanceLogsInstanceLog
- Created
At string - Creation date of the log (RFC 3339 format).
- Download
Url string - (Sensitive) Presigned Object Storage URL to download the log file.
- Expires
At string - Expiration date of the log (RFC 3339 format).
- Id string
- UUID of the Database Instance log, in the
{region}/{id}format. - Node
Name string - Name of the underlying node.
- Region string
region) The region in which the Database Instance exists.- Status string
- Status of the log (
unknown,ready,creating,error).
- Created
At string - Creation date of the log (RFC 3339 format).
- Download
Url string - (Sensitive) Presigned Object Storage URL to download the log file.
- Expires
At string - Expiration date of the log (RFC 3339 format).
- Id string
- UUID of the Database Instance log, in the
{region}/{id}format. - Node
Name string - Name of the underlying node.
- Region string
region) The region in which the Database Instance exists.- Status string
- Status of the log (
unknown,ready,creating,error).
- created_
at string - Creation date of the log (RFC 3339 format).
- download_
url string - (Sensitive) Presigned Object Storage URL to download the log file.
- expires_
at string - Expiration date of the log (RFC 3339 format).
- id string
- UUID of the Database Instance log, in the
{region}/{id}format. - node_
name string - Name of the underlying node.
- region string
region) The region in which the Database Instance exists.- status string
- Status of the log (
unknown,ready,creating,error).
- created
At String - Creation date of the log (RFC 3339 format).
- download
Url String - (Sensitive) Presigned Object Storage URL to download the log file.
- expires
At String - Expiration date of the log (RFC 3339 format).
- id String
- UUID of the Database Instance log, in the
{region}/{id}format. - node
Name String - Name of the underlying node.
- region String
region) The region in which the Database Instance exists.- status String
- Status of the log (
unknown,ready,creating,error).
- created
At string - Creation date of the log (RFC 3339 format).
- download
Url string - (Sensitive) Presigned Object Storage URL to download the log file.
- expires
At string - Expiration date of the log (RFC 3339 format).
- id string
- UUID of the Database Instance log, in the
{region}/{id}format. - node
Name string - Name of the underlying node.
- region string
region) The region in which the Database Instance exists.- status string
- Status of the log (
unknown,ready,creating,error).
- created_
at str - Creation date of the log (RFC 3339 format).
- download_
url str - (Sensitive) Presigned Object Storage URL to download the log file.
- expires_
at str - Expiration date of the log (RFC 3339 format).
- id str
- UUID of the Database Instance log, in the
{region}/{id}format. - node_
name str - Name of the underlying node.
- region str
region) The region in which the Database Instance exists.- status str
- Status of the log (
unknown,ready,creating,error).
- created
At String - Creation date of the log (RFC 3339 format).
- download
Url String - (Sensitive) Presigned Object Storage URL to download the log file.
- expires
At String - Expiration date of the log (RFC 3339 format).
- id String
- UUID of the Database Instance log, in the
{region}/{id}format. - node
Name String - Name of the underlying node.
- region String
region) The region in which the Database Instance exists.- status String
- Status of the log (
unknown,ready,creating,error).
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
Viewing docs for Scaleway v1.60.0
published on Saturday, Oct 24, 2026 by pulumiverse
published on Saturday, Oct 24, 2026 by pulumiverse