scaleway.getDatabaseInstance
Explore with Pulumi AI
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>
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]
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.
Note You must specify at least one:
name
and/orinstance_id
.- Name string
- The name of the RDB instance.
- Project
Id 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 string The RDB instance ID.
Note You must specify at least one:
name
and/orinstance_id
.- Name string
- The name of the RDB instance.
- Project
Id 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 String The RDB instance ID.
Note You must specify at least one:
name
and/orinstance_id
.- name String
- The name of the RDB instance.
- project
Id 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 string The RDB instance ID.
Note You must specify at least one:
name
and/orinstance_id
.- name string
- The name of the RDB instance.
- project
Id 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/orinstance_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.
- instance
Id String The RDB instance ID.
Note You must specify at least one:
name
and/orinstance_id
.- name String
- The name of the RDB instance.
- project
Id 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:
- Backup
Same boolRegion - Backup
Schedule intFrequency - Backup
Schedule intRetention - Certificate string
- Disable
Backup bool - Encryption
At boolRest - 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<Pulumiverse.Scaleway. Outputs. Get Database Instance Load Balancer> - Logs
Policies List<Pulumiverse.Scaleway. Outputs. Get Database Instance Logs Policy> - Node
Type string - Organization
Id string - Password string
- Private
Networks List<Pulumiverse.Scaleway. Outputs. Get Database Instance Private Network> - Read
Replicas List<Pulumiverse.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
- Project
Id string - Region string
- Backup
Same boolRegion - Backup
Schedule intFrequency - Backup
Schedule intRetention - Certificate string
- Disable
Backup bool - Encryption
At boolRest - 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 - Logs
Policies []GetDatabase Instance Logs Policy - Node
Type string - Organization
Id string - Password string
- Private
Networks []GetDatabase Instance Private Network - 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
- Project
Id string - Region string
- backup
Same BooleanRegion - backup
Schedule IntegerFrequency - backup
Schedule IntegerRetention - certificate String
- disable
Backup Boolean - encryption
At BooleanRest - 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> - logs
Policies List<GetDatabase Instance Logs Policy> - node
Type String - organization
Id String - password String
- private
Networks List<GetDatabase Instance Private Network> - 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
- project
Id String - region String
- backup
Same booleanRegion - backup
Schedule numberFrequency - backup
Schedule numberRetention - certificate string
- disable
Backup boolean - encryption
At booleanRest - 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[] - logs
Policies GetDatabase Instance Logs Policy[] - node
Type string - organization
Id string - password string
- private
Networks GetDatabase Instance Private Network[] - 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
- project
Id string - region string
- backup_
same_ boolregion - backup_
schedule_ intfrequency - backup_
schedule_ intretention - certificate str
- disable_
backup bool - encryption_
at_ boolrest - 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] - logs_
policies Sequence[GetDatabase Instance Logs Policy] - node_
type str - organization_
id str - password str
- private_
networks Sequence[GetDatabase Instance Private Network] - 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
- project_
id str - region str
- backup
Same BooleanRegion - backup
Schedule NumberFrequency - backup
Schedule NumberRetention - certificate String
- disable
Backup Boolean - encryption
At BooleanRest - 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> - logs
Policies List<Property Map> - node
Type String - organization
Id String - password String
- private
Networks List<Property Map> - 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
- project
Id String - region String
Supporting Types
GetDatabaseInstanceLoadBalancer
- Endpoint
Id string - The endpoint ID
- Hostname string
- The hostname of your endpoint
- Ip string
- The IP of your load balancer service
- Name string
- The name of the RDB instance.
- Port int
- The port of your load balancer service
- Endpoint
Id string - The endpoint ID
- Hostname string
- The hostname of your endpoint
- Ip string
- The IP of your load balancer service
- Name string
- The name of the RDB instance.
- Port int
- The port of your load balancer service
- endpoint
Id String - The endpoint ID
- hostname String
- The hostname of your endpoint
- ip String
- The IP of your load balancer service
- name String
- The name of the RDB instance.
- port Integer
- The port of your load balancer service
- endpoint
Id string - The endpoint ID
- hostname string
- The hostname of your endpoint
- ip string
- The IP of your load balancer service
- name string
- The name of the RDB instance.
- port number
- The port of your load balancer service
- endpoint_
id str - The endpoint ID
- hostname str
- The hostname of your endpoint
- ip str
- The IP of your load balancer service
- name str
- The name of the RDB instance.
- port int
- The port of your load balancer service
- endpoint
Id String - The endpoint ID
- hostname String
- The hostname of your endpoint
- ip String
- The IP of your load balancer service
- name String
- The name of the RDB instance.
- port Number
- The port of your load balancer service
GetDatabaseInstanceLogsPolicy
- Max
Age intRetention - The max age (in days) of remote logs to keep on the Database Instance
- Total
Disk intRetention - The max disk size of remote logs to keep on the Database Instance.
- Max
Age intRetention - The max age (in days) of remote logs to keep on the Database Instance
- Total
Disk intRetention - The max disk size of remote logs to keep on the Database Instance.
- max
Age IntegerRetention - The max age (in days) of remote logs to keep on the Database Instance
- total
Disk IntegerRetention - The max disk size of remote logs to keep on the Database Instance.
- max
Age numberRetention - The max age (in days) of remote logs to keep on the Database Instance
- total
Disk numberRetention - The max disk size of remote logs to keep on the Database Instance.
- max_
age_ intretention - The max age (in days) of remote logs to keep on the Database Instance
- total_
disk_ intretention - The max disk size of remote logs to keep on the Database Instance.
- max
Age NumberRetention - The max age (in days) of remote logs to keep on the Database Instance
- total
Disk NumberRetention - The max disk size of remote logs to keep on the Database Instance.
GetDatabaseInstancePrivateNetwork
- Enable
Ipam bool - Whether or not the private network endpoint should be configured with IPAM
- Endpoint
Id string - The endpoint ID
- Hostname string
- The hostname of your endpoint
- Ip string
- The IP of your Instance within the private service
- Ip
Net string - The IP with the given mask within the private subnet
- Name string
- The name of the RDB instance.
- Pn
Id string - The private network ID
- Port int
- The port of your private service
- Zone string
- The zone you want to attach the resource to
- Enable
Ipam bool - Whether or not the private network endpoint should be configured with IPAM
- Endpoint
Id string - The endpoint ID
- Hostname string
- The hostname of your endpoint
- Ip string
- The IP of your Instance within the private service
- Ip
Net string - The IP with the given mask within the private subnet
- Name string
- The name of the RDB instance.
- Pn
Id string - The private network ID
- Port int
- The port of your private service
- Zone string
- The zone you want to attach the resource to
- enable
Ipam Boolean - Whether or not the private network endpoint should be configured with IPAM
- endpoint
Id String - The endpoint ID
- hostname String
- The hostname of your endpoint
- ip String
- The IP of your Instance within the private service
- ip
Net String - The IP with the given mask within the private subnet
- name String
- The name of the RDB instance.
- pn
Id String - The private network ID
- port Integer
- The port of your private service
- zone String
- The zone you want to attach the resource to
- enable
Ipam boolean - Whether or not the private network endpoint should be configured with IPAM
- endpoint
Id string - The endpoint ID
- hostname string
- The hostname of your endpoint
- ip string
- The IP of your Instance within the private service
- ip
Net string - The IP with the given mask within the private subnet
- name string
- The name of the RDB instance.
- pn
Id string - The private network ID
- port number
- The port of your private service
- zone string
- The zone you want to attach the resource to
- enable_
ipam bool - Whether or not the private network endpoint should be configured with IPAM
- endpoint_
id str - The endpoint ID
- hostname str
- The hostname of your endpoint
- ip str
- The IP of your Instance within the private service
- ip_
net str - The IP with the given mask within the private subnet
- name str
- The name of the RDB instance.
- pn_
id str - The private network ID
- port int
- The port of your private service
- zone str
- The zone you want to attach the resource to
- enable
Ipam Boolean - Whether or not the private network endpoint should be configured with IPAM
- endpoint
Id String - The endpoint ID
- hostname String
- The hostname of your endpoint
- ip String
- The IP of your Instance within the private service
- ip
Net String - The IP with the given mask within the private subnet
- name String
- The name of the RDB instance.
- pn
Id String - The private network ID
- port Number
- The port of your private service
- zone String
- The zone you want to attach the resource to
GetDatabaseInstanceReadReplica
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.