1. Packages
  2. Scaleway
  3. API Docs
  4. getDatabaseInstance
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.getDatabaseInstance

Explore with Pulumi AI

Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse
Deprecated: scaleway.index/getdatabaseinstance.getDatabaseInstance has been deprecated in favor of scaleway.databases/getinstance.getInstance

Gets information about an Database Instance.

For further information refer the Managed Databases for PostgreSQL and MySQL API documentation

Using getDatabaseInstance

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 getDatabaseInstance(args: GetDatabaseInstanceArgs, opts?: InvokeOptions): Promise<GetDatabaseInstanceResult>
function getDatabaseInstanceOutput(args: GetDatabaseInstanceOutputArgs, opts?: InvokeOptions): Output<GetDatabaseInstanceResult>
Copy
def get_database_instance(instance_id: Optional[str] = None,
                          name: Optional[str] = None,
                          project_id: Optional[str] = None,
                          region: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetDatabaseInstanceResult
def get_database_instance_output(instance_id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          project_id: Optional[pulumi.Input[str]] = None,
                          region: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseInstanceResult]
Copy
func LookupDatabaseInstance(ctx *Context, args *LookupDatabaseInstanceArgs, opts ...InvokeOption) (*LookupDatabaseInstanceResult, error)
func LookupDatabaseInstanceOutput(ctx *Context, args *LookupDatabaseInstanceOutputArgs, opts ...InvokeOption) LookupDatabaseInstanceResultOutput
Copy

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

public static class GetDatabaseInstance 
{
    public static Task<GetDatabaseInstanceResult> InvokeAsync(GetDatabaseInstanceArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseInstanceResult> Invoke(GetDatabaseInstanceInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDatabaseInstanceResult> getDatabaseInstance(GetDatabaseInstanceArgs args, InvokeOptions options)
public static Output<GetDatabaseInstanceResult> getDatabaseInstance(GetDatabaseInstanceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: scaleway:index/getDatabaseInstance:getDatabaseInstance
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId string

The RDB instance ID.

Note You must specify at least one: name and/or instance_id.

Name string
The name of the RDB instance.
ProjectId string
The ID of the project the Database Instance is in. Can be used to filter instances when using name.
Region string
region) The region in which the Database Instance exists.
InstanceId string

The RDB instance ID.

Note You must specify at least one: name and/or instance_id.

Name string
The name of the RDB instance.
ProjectId string
The ID of the project the Database Instance is in. Can be used to filter instances when using name.
Region string
region) The region in which the Database Instance exists.
instanceId String

The RDB instance ID.

Note You must specify at least one: name and/or instance_id.

name String
The name of the RDB instance.
projectId String
The ID of the project the Database Instance is in. Can be used to filter instances when using name.
region String
region) The region in which the Database Instance exists.
instanceId string

The RDB instance ID.

Note You must specify at least one: name and/or instance_id.

name string
The name of the RDB instance.
projectId string
The ID of the project the Database Instance is in. Can be used to filter instances when using name.
region string
region) The region in which the Database Instance exists.
instance_id str

The RDB instance ID.

Note You must specify at least one: name and/or instance_id.

name str
The name of the RDB instance.
project_id str
The ID of the project the Database Instance is in. Can be used to filter instances when using name.
region str
region) The region in which the Database Instance exists.
instanceId String

The RDB instance ID.

Note You must specify at least one: name and/or instance_id.

name String
The name of the RDB instance.
projectId String
The ID of the project the Database Instance is in. Can be used to filter instances when using name.
region String
region) The region in which the Database Instance exists.

getDatabaseInstance Result

The following output properties are available:

BackupSameRegion bool
BackupScheduleFrequency int
BackupScheduleRetention int
Certificate string
DisableBackup bool
EncryptionAtRest bool
EndpointIp string
EndpointPort int
Engine string
Id string
The provider-assigned unique ID for this managed resource.
InitSettings Dictionary<string, string>
IsHaCluster bool
LoadBalancers List<Pulumiverse.Scaleway.Outputs.GetDatabaseInstanceLoadBalancer>
LogsPolicies List<Pulumiverse.Scaleway.Outputs.GetDatabaseInstanceLogsPolicy>
NodeType string
OrganizationId string
Password string
PrivateNetworks List<Pulumiverse.Scaleway.Outputs.GetDatabaseInstancePrivateNetwork>
ReadReplicas List<Pulumiverse.Scaleway.Outputs.GetDatabaseInstanceReadReplica>
Settings Dictionary<string, string>
SnapshotId string
Tags List<string>
UserName string
VolumeSizeInGb int
VolumeType string
InstanceId string
Name string
ProjectId string
Region string

Supporting Types

GetDatabaseInstanceLoadBalancer

EndpointId This property is required. string
The endpoint ID
Hostname This property is required. string
The hostname of your endpoint
Ip This property is required. string
The IP of your load balancer service
Name This property is required. string
The name of the RDB instance.
Port This property is required. int
The port of your load balancer service
EndpointId This property is required. string
The endpoint ID
Hostname This property is required. string
The hostname of your endpoint
Ip This property is required. string
The IP of your load balancer service
Name This property is required. string
The name of the RDB instance.
Port This property is required. int
The port of your load balancer service
endpointId This property is required. String
The endpoint ID
hostname This property is required. String
The hostname of your endpoint
ip This property is required. String
The IP of your load balancer service
name This property is required. String
The name of the RDB instance.
port This property is required. Integer
The port of your load balancer service
endpointId This property is required. string
The endpoint ID
hostname This property is required. string
The hostname of your endpoint
ip This property is required. string
The IP of your load balancer service
name This property is required. string
The name of the RDB instance.
port This property is required. number
The port of your load balancer service
endpoint_id This property is required. str
The endpoint ID
hostname This property is required. str
The hostname of your endpoint
ip This property is required. str
The IP of your load balancer service
name This property is required. str
The name of the RDB instance.
port This property is required. int
The port of your load balancer service
endpointId This property is required. String
The endpoint ID
hostname This property is required. String
The hostname of your endpoint
ip This property is required. String
The IP of your load balancer service
name This property is required. String
The name of the RDB instance.
port This property is required. Number
The port of your load balancer service

GetDatabaseInstanceLogsPolicy

MaxAgeRetention This property is required. int
The max age (in days) of remote logs to keep on the Database Instance
TotalDiskRetention This property is required. int
The max disk size of remote logs to keep on the Database Instance.
MaxAgeRetention This property is required. int
The max age (in days) of remote logs to keep on the Database Instance
TotalDiskRetention This property is required. int
The max disk size of remote logs to keep on the Database Instance.
maxAgeRetention This property is required. Integer
The max age (in days) of remote logs to keep on the Database Instance
totalDiskRetention This property is required. Integer
The max disk size of remote logs to keep on the Database Instance.
maxAgeRetention This property is required. number
The max age (in days) of remote logs to keep on the Database Instance
totalDiskRetention This property is required. number
The max disk size of remote logs to keep on the Database Instance.
max_age_retention This property is required. int
The max age (in days) of remote logs to keep on the Database Instance
total_disk_retention This property is required. int
The max disk size of remote logs to keep on the Database Instance.
maxAgeRetention This property is required. Number
The max age (in days) of remote logs to keep on the Database Instance
totalDiskRetention This property is required. Number
The max disk size of remote logs to keep on the Database Instance.

GetDatabaseInstancePrivateNetwork

EnableIpam This property is required. bool
Whether or not the private network endpoint should be configured with IPAM
EndpointId This property is required. string
The endpoint ID
Hostname This property is required. string
The hostname of your endpoint
Ip This property is required. string
The IP of your Instance within the private service
IpNet This property is required. string
The IP with the given mask within the private subnet
Name This property is required. string
The name of the RDB instance.
PnId This property is required. string
The private network ID
Port This property is required. int
The port of your private service
Zone This property is required. string
The zone you want to attach the resource to
EnableIpam This property is required. bool
Whether or not the private network endpoint should be configured with IPAM
EndpointId This property is required. string
The endpoint ID
Hostname This property is required. string
The hostname of your endpoint
Ip This property is required. string
The IP of your Instance within the private service
IpNet This property is required. string
The IP with the given mask within the private subnet
Name This property is required. string
The name of the RDB instance.
PnId This property is required. string
The private network ID
Port This property is required. int
The port of your private service
Zone This property is required. string
The zone you want to attach the resource to
enableIpam This property is required. Boolean
Whether or not the private network endpoint should be configured with IPAM
endpointId This property is required. String
The endpoint ID
hostname This property is required. String
The hostname of your endpoint
ip This property is required. String
The IP of your Instance within the private service
ipNet This property is required. String
The IP with the given mask within the private subnet
name This property is required. String
The name of the RDB instance.
pnId This property is required. String
The private network ID
port This property is required. Integer
The port of your private service
zone This property is required. String
The zone you want to attach the resource to
enableIpam This property is required. boolean
Whether or not the private network endpoint should be configured with IPAM
endpointId This property is required. string
The endpoint ID
hostname This property is required. string
The hostname of your endpoint
ip This property is required. string
The IP of your Instance within the private service
ipNet This property is required. string
The IP with the given mask within the private subnet
name This property is required. string
The name of the RDB instance.
pnId This property is required. string
The private network ID
port This property is required. number
The port of your private service
zone This property is required. string
The zone you want to attach the resource to
enable_ipam This property is required. bool
Whether or not the private network endpoint should be configured with IPAM
endpoint_id This property is required. str
The endpoint ID
hostname This property is required. str
The hostname of your endpoint
ip This property is required. str
The IP of your Instance within the private service
ip_net This property is required. str
The IP with the given mask within the private subnet
name This property is required. str
The name of the RDB instance.
pn_id This property is required. str
The private network ID
port This property is required. int
The port of your private service
zone This property is required. str
The zone you want to attach the resource to
enableIpam This property is required. Boolean
Whether or not the private network endpoint should be configured with IPAM
endpointId This property is required. String
The endpoint ID
hostname This property is required. String
The hostname of your endpoint
ip This property is required. String
The IP of your Instance within the private service
ipNet This property is required. String
The IP with the given mask within the private subnet
name This property is required. String
The name of the RDB instance.
pnId This property is required. String
The private network ID
port This property is required. Number
The port of your private service
zone This property is required. String
The zone you want to attach the resource to

GetDatabaseInstanceReadReplica

Ip This property is required. string
IP of the replica
Name This property is required. string
The name of the RDB instance.
Port This property is required. int
Port of the replica
Ip This property is required. string
IP of the replica
Name This property is required. string
The name of the RDB instance.
Port This property is required. int
Port of the replica
ip This property is required. String
IP of the replica
name This property is required. String
The name of the RDB instance.
port This property is required. Integer
Port of the replica
ip This property is required. string
IP of the replica
name This property is required. string
The name of the RDB instance.
port This property is required. number
Port of the replica
ip This property is required. str
IP of the replica
name This property is required. str
The name of the RDB instance.
port This property is required. int
Port of the replica
ip This property is required. String
IP of the replica
name This property is required. String
The name of the RDB instance.
port This property is required. Number
Port of the replica

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse