scaleway.getDatabaseInstance
Explore with Pulumi AI
Gets information about an RDB instance. For further information see our developers website
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,
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,
region: 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.- Region string
region
) The region in which the RDB instance exists.
- 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.- Region string
region
) The region in which the RDB instance exists.
- 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.- region String
region
) The region in which the RDB instance exists.
- 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.- region string
region
) The region in which the RDB instance exists.
- 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.- region str
region
) The region in which the RDB instance exists.
- 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.- region String
region
) The region in which the RDB instance exists.
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> - Settings Dictionary<string, string>
- List<string>
- User
Name string - Volume
Size intIn Gb - Volume
Type string - Instance
Id string - Name string
- Region 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 - Settings map[string]string
- []string
- User
Name string - Volume
Size intIn Gb - Volume
Type string - Instance
Id string - Name string
- Region 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> - settings Map<String,String>
- List<String>
- user
Name String - volume
Size IntegerIn Gb - volume
Type String - instance
Id String - name String
- region 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[] - settings {[key: string]: string}
- string[]
- user
Name string - volume
Size numberIn Gb - volume
Type string - instance
Id string - name string
- region 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] - settings Mapping[str, str]
- Sequence[str]
- user_
name str - volume_
size_ intin_ gb - volume_
type str - instance_
id str - name str
- region 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> - settings Map<String>
- List<String>
- user
Name String - volume
Size NumberIn Gb - volume
Type String - instance
Id String - name String
- region 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.