

scaleway.getDatabaseInstance
Gets information about an RDB instance.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
var myInstance = Scaleway.GetDatabaseInstance.Invoke(new()
{
InstanceId = "11111111-1111-1111-1111-111111111111",
});
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.LookupDatabaseInstance(ctx, &scaleway.LookupDatabaseInstanceArgs{
InstanceId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.ScalewayFunctions;
import com.pulumi.scaleway.inputs.GetDatabaseInstanceArgs;
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 myInstance = ScalewayFunctions.getDatabaseInstance(GetDatabaseInstanceArgs.builder()
.instanceId("11111111-1111-1111-1111-111111111111")
.build());
}
}
import pulumi
import pulumi_scaleway as scaleway
my_instance = scaleway.get_database_instance(instance_id="11111111-1111-1111-1111-111111111111")
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
const myInstance = scaleway.getDatabaseInstance({
instanceId: "11111111-1111-1111-1111-111111111111",
});
variables:
myInstance:
fn::invoke:
Function: scaleway:getDatabaseInstance
Arguments:
instanceId: 11111111-1111-1111-1111-111111111111
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>
def get_database_instance(instance_id: Optional[str] = None,
name: 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,
opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseInstanceResult]
func LookupDatabaseInstance(ctx *Context, args *LookupDatabaseInstanceArgs, opts ...InvokeOption) (*LookupDatabaseInstanceResult, error)
func LookupDatabaseInstanceOutput(ctx *Context, args *LookupDatabaseInstanceOutputArgs, opts ...InvokeOption) LookupDatabaseInstanceResultOutput
> 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)
}
public static CompletableFuture<GetDatabaseInstanceResult> getDatabaseInstance(GetDatabaseInstanceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: scaleway:index/getDatabaseInstance:getDatabaseInstance
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string The RDB instance ID. Only one of
name
andinstance_id
should be specified.- Name string
The name of the RDB instance. Only one of
name
andinstance_id
should be specified.
- Instance
Id string The RDB instance ID. Only one of
name
andinstance_id
should be specified.- Name string
The name of the RDB instance. Only one of
name
andinstance_id
should be specified.
- instance
Id String The RDB instance ID. Only one of
name
andinstance_id
should be specified.- name String
The name of the RDB instance. Only one of
name
andinstance_id
should be specified.
- instance
Id string The RDB instance ID. Only one of
name
andinstance_id
should be specified.- name string
The name of the RDB instance. Only one of
name
andinstance_id
should be specified.
- instance_
id str The RDB instance ID. Only one of
name
andinstance_id
should be specified.- name str
The name of the RDB instance. Only one of
name
andinstance_id
should be specified.
- instance
Id String The RDB instance ID. Only one of
name
andinstance_id
should be specified.- name String
The name of the RDB instance. Only one of
name
andinstance_id
should be specified.
getDatabaseInstance Result
The following output properties are available:
- Backup
Same boolRegion - Backup
Schedule intFrequency - Backup
Schedule intRetention - Certificate string
- Disable
Backup bool - Endpoint
Ip string - Endpoint
Port int - Engine string
- Id string
The provider-assigned unique ID for this managed resource.
- Init
Settings Dictionary<string, string> - Is
Ha boolCluster - Load
Balancers List<Lbrlabs.Pulumi Package. Scaleway. Outputs. Get Database Instance Load Balancer> - Node
Type string - Organization
Id string - Password string
- Private
Networks List<Lbrlabs.Pulumi Package. Scaleway. Outputs. Get Database Instance Private Network> - Project
Id string - Read
Replicas List<Lbrlabs.Pulumi Package. Scaleway. Outputs. Get Database Instance Read Replica> - Region string
- Settings Dictionary<string, string>
- List<string>
- User
Name string - Volume
Size intIn Gb - Volume
Type string - Instance
Id string - Name string
- Backup
Same boolRegion - Backup
Schedule intFrequency - Backup
Schedule intRetention - Certificate string
- Disable
Backup bool - Endpoint
Ip string - Endpoint
Port int - Engine string
- Id string
The provider-assigned unique ID for this managed resource.
- Init
Settings map[string]string - Is
Ha boolCluster - Load
Balancers []GetDatabase Instance Load Balancer - Node
Type string - Organization
Id string - Password string
- Private
Networks []GetDatabase Instance Private Network - Project
Id string - Read
Replicas []GetDatabase Instance Read Replica - Region string
- Settings map[string]string
- []string
- User
Name string - Volume
Size intIn Gb - Volume
Type string - Instance
Id string - Name string
- backup
Same BooleanRegion - backup
Schedule IntegerFrequency - backup
Schedule IntegerRetention - certificate String
- disable
Backup Boolean - endpoint
Ip String - endpoint
Port Integer - engine String
- id String
The provider-assigned unique ID for this managed resource.
- init
Settings Map<String,String> - is
Ha BooleanCluster - load
Balancers List<GetDatabase Instance Load Balancer> - node
Type String - organization
Id String - password String
- private
Networks List<GetDatabase Instance Private Network> - project
Id String - read
Replicas List<GetDatabase Instance Read Replica> - region String
- settings Map<String,String>
- List<String>
- user
Name String - volume
Size IntegerIn Gb - volume
Type String - instance
Id String - name String
- backup
Same booleanRegion - backup
Schedule numberFrequency - backup
Schedule numberRetention - certificate string
- disable
Backup boolean - endpoint
Ip string - endpoint
Port number - engine string
- id string
The provider-assigned unique ID for this managed resource.
- init
Settings {[key: string]: string} - is
Ha booleanCluster - load
Balancers GetDatabase Instance Load Balancer[] - node
Type string - organization
Id string - password string
- private
Networks GetDatabase Instance Private Network[] - project
Id string - read
Replicas GetDatabase Instance Read Replica[] - region string
- settings {[key: string]: string}
- string[]
- user
Name string - volume
Size numberIn Gb - volume
Type string - instance
Id string - name string
- backup_
same_ boolregion - backup_
schedule_ intfrequency - backup_
schedule_ intretention - certificate str
- disable_
backup bool - endpoint_
ip str - endpoint_
port int - engine str
- id str
The provider-assigned unique ID for this managed resource.
- init_
settings Mapping[str, str] - is_
ha_ boolcluster - load_
balancers Sequence[GetDatabase Instance Load Balancer] - node_
type str - organization_
id str - password str
- private_
networks Sequence[GetDatabase Instance Private Network] - project_
id str - read_
replicas Sequence[GetDatabase Instance Read Replica] - region str
- settings Mapping[str, str]
- Sequence[str]
- user_
name str - volume_
size_ intin_ gb - volume_
type str - instance_
id str - name str
- backup
Same BooleanRegion - backup
Schedule NumberFrequency - backup
Schedule NumberRetention - certificate String
- disable
Backup Boolean - endpoint
Ip String - endpoint
Port Number - engine String
- id String
The provider-assigned unique ID for this managed resource.
- init
Settings Map<String> - is
Ha BooleanCluster - load
Balancers List<Property Map> - node
Type String - organization
Id String - password String
- private
Networks List<Property Map> - project
Id String - read
Replicas List<Property Map> - region String
- settings Map<String>
- List<String>
- user
Name String - volume
Size NumberIn Gb - volume
Type String - instance
Id String - name String
Supporting Types
GetDatabaseInstanceLoadBalancer
- Endpoint
Id string - Hostname string
- Ip string
- Name string
The name of the RDB instance. Only one of
name
andinstance_id
should be specified.- Port int
- Endpoint
Id string - Hostname string
- Ip string
- Name string
The name of the RDB instance. Only one of
name
andinstance_id
should be specified.- Port int
- endpoint
Id String - hostname String
- ip String
- name String
The name of the RDB instance. Only one of
name
andinstance_id
should be specified.- port Integer
- endpoint
Id string - hostname string
- ip string
- name string
The name of the RDB instance. Only one of
name
andinstance_id
should be specified.- port number
- endpoint_
id str - hostname str
- ip str
- name str
The name of the RDB instance. Only one of
name
andinstance_id
should be specified.- port int
- endpoint
Id String - hostname String
- ip String
- name String
The name of the RDB instance. Only one of
name
andinstance_id
should be specified.- port Number
GetDatabaseInstancePrivateNetwork
GetDatabaseInstanceReadReplica
Package Details
- Repository
- scaleway lbrlabs/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.