Qovery v0.41.0 published on Saturday, Sep 28, 2024 by dirien
qovery.getDatabase
Explore with Pulumi AI
# qovery.Database (Data Source)
Provides a Qovery database resource. This can be used to create and manage Qovery databases.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as qovery from "@pulumi/qovery";
const myDatabase = qovery.getDatabase({
id: "<database_id>",
});
import pulumi
import pulumi_qovery as qovery
my_database = qovery.get_database(id="<database_id>")
package main
import (
"github.com/dirien/pulumi-qovery/sdk/go/qovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := qovery.LookupDatabase(ctx, &qovery.LookupDatabaseArgs{
Id: "<database_id>",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Qovery = Pulumi.Qovery;
return await Deployment.RunAsync(() =>
{
var myDatabase = Qovery.GetDatabase.Invoke(new()
{
Id = "<database_id>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.qovery.QoveryFunctions;
import com.pulumi.qovery.inputs.GetDatabaseArgs;
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 myDatabase = QoveryFunctions.getDatabase(GetDatabaseArgs.builder()
.id("<database_id>")
.build());
}
}
variables:
myDatabase:
fn::invoke:
Function: qovery:getDatabase
Arguments:
id: <database_id>
Using getDatabase
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 getDatabase(args: GetDatabaseArgs, opts?: InvokeOptions): Promise<GetDatabaseResult>
function getDatabaseOutput(args: GetDatabaseOutputArgs, opts?: InvokeOptions): Output<GetDatabaseResult>
def get_database(accessibility: Optional[str] = None,
annotations_group_ids: Optional[Sequence[str]] = None,
cpu: Optional[int] = None,
deployment_stage_id: Optional[str] = None,
icon_uri: Optional[str] = None,
id: Optional[str] = None,
instance_type: Optional[str] = None,
labels_group_ids: Optional[Sequence[str]] = None,
memory: Optional[int] = None,
storage: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetDatabaseResult
def get_database_output(accessibility: Optional[pulumi.Input[str]] = None,
annotations_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
cpu: Optional[pulumi.Input[int]] = None,
deployment_stage_id: Optional[pulumi.Input[str]] = None,
icon_uri: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_type: Optional[pulumi.Input[str]] = None,
labels_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
memory: Optional[pulumi.Input[int]] = None,
storage: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseResult]
func LookupDatabase(ctx *Context, args *LookupDatabaseArgs, opts ...InvokeOption) (*LookupDatabaseResult, error)
func LookupDatabaseOutput(ctx *Context, args *LookupDatabaseOutputArgs, opts ...InvokeOption) LookupDatabaseResultOutput
> Note: This function is named LookupDatabase
in the Go SDK.
public static class GetDatabase
{
public static Task<GetDatabaseResult> InvokeAsync(GetDatabaseArgs args, InvokeOptions? opts = null)
public static Output<GetDatabaseResult> Invoke(GetDatabaseInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: qovery:index/getDatabase:getDatabase
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Accessibility string
- Annotations
Group List<string>Ids - Cpu int
- Deployment
Stage stringId - Icon
Uri string - Instance
Type string - Labels
Group List<string>Ids - Memory int
- Storage int
- Id string
- Accessibility string
- Annotations
Group []stringIds - Cpu int
- Deployment
Stage stringId - Icon
Uri string - Instance
Type string - Labels
Group []stringIds - Memory int
- Storage int
- id String
- accessibility String
- annotations
Group List<String>Ids - cpu Integer
- deployment
Stage StringId - icon
Uri String - instance
Type String - labels
Group List<String>Ids - memory Integer
- storage Integer
- id string
- accessibility string
- annotations
Group string[]Ids - cpu number
- deployment
Stage stringId - icon
Uri string - instance
Type string - labels
Group string[]Ids - memory number
- storage number
- id str
- accessibility str
- annotations_
group_ Sequence[str]ids - cpu int
- deployment_
stage_ strid - icon_
uri str - instance_
type str - labels_
group_ Sequence[str]ids - memory int
- storage int
- id String
- accessibility String
- annotations
Group List<String>Ids - cpu Number
- deployment
Stage StringId - icon
Uri String - instance
Type String - labels
Group List<String>Ids - memory Number
- storage Number
getDatabase Result
The following output properties are available:
- Deployment
Stage stringId - Environment
Id string - External
Host string - Icon
Uri string - Id string
- Instance
Type string - Internal
Host string - Login string
- Mode string
- Name string
- Password string
- Port int
- Type string
- Version string
- Accessibility string
- Annotations
Group List<string>Ids - Cpu int
- Labels
Group List<string>Ids - Memory int
- Storage int
- Deployment
Stage stringId - Environment
Id string - External
Host string - Icon
Uri string - Id string
- Instance
Type string - Internal
Host string - Login string
- Mode string
- Name string
- Password string
- Port int
- Type string
- Version string
- Accessibility string
- Annotations
Group []stringIds - Cpu int
- Labels
Group []stringIds - Memory int
- Storage int
- deployment
Stage StringId - environment
Id String - external
Host String - icon
Uri String - id String
- instance
Type String - internal
Host String - login String
- mode String
- name String
- password String
- port Integer
- type String
- version String
- accessibility String
- annotations
Group List<String>Ids - cpu Integer
- labels
Group List<String>Ids - memory Integer
- storage Integer
- deployment
Stage stringId - environment
Id string - external
Host string - icon
Uri string - id string
- instance
Type string - internal
Host string - login string
- mode string
- name string
- password string
- port number
- type string
- version string
- accessibility string
- annotations
Group string[]Ids - cpu number
- labels
Group string[]Ids - memory number
- storage number
- deployment_
stage_ strid - environment_
id str - external_
host str - icon_
uri str - id str
- instance_
type str - internal_
host str - login str
- mode str
- name str
- password str
- port int
- type str
- version str
- accessibility str
- annotations_
group_ Sequence[str]ids - cpu int
- labels_
group_ Sequence[str]ids - memory int
- storage int
- deployment
Stage StringId - environment
Id String - external
Host String - icon
Uri String - id String
- instance
Type String - internal
Host String - login String
- mode String
- name String
- password String
- port Number
- type String
- version String
- accessibility String
- annotations
Group List<String>Ids - cpu Number
- labels
Group List<String>Ids - memory Number
- storage Number
Package Details
- Repository
- qovery dirien/pulumi-qovery
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
qovery
Terraform Provider.