vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs
vkcs.getDbUser
Explore with Pulumi AI
Use this data source to get the information on a db user resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const dbUser = vkcs.getDbUser({
id: "d0438c95-1854-4ced-806c-c3b4125b586d/myuser",
});
import pulumi
import pulumi_vkcs as vkcs
db_user = vkcs.get_db_user(id="d0438c95-1854-4ced-806c-c3b4125b586d/myuser")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.LookupDbUser(ctx, &vkcs.LookupDbUserArgs{
Id: "d0438c95-1854-4ced-806c-c3b4125b586d/myuser",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var dbUser = Vkcs.GetDbUser.Invoke(new()
{
Id = "d0438c95-1854-4ced-806c-c3b4125b586d/myuser",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.VkcsFunctions;
import com.pulumi.vkcs.inputs.GetDbUserArgs;
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 dbUser = VkcsFunctions.getDbUser(GetDbUserArgs.builder()
.id("d0438c95-1854-4ced-806c-c3b4125b586d/myuser")
.build());
}
}
variables:
dbUser:
fn::invoke:
function: vkcs:getDbUser
arguments:
id: d0438c95-1854-4ced-806c-c3b4125b586d/myuser
Using getDbUser
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 getDbUser(args: GetDbUserArgs, opts?: InvokeOptions): Promise<GetDbUserResult>
function getDbUserOutput(args: GetDbUserOutputArgs, opts?: InvokeOptions): Output<GetDbUserResult>
def get_db_user(databases: Optional[Sequence[str]] = None,
dbms_id: Optional[str] = None,
host: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbUserResult
def get_db_user_output(databases: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
dbms_id: Optional[pulumi.Input[str]] = None,
host: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
password: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbUserResult]
func LookupDbUser(ctx *Context, args *LookupDbUserArgs, opts ...InvokeOption) (*LookupDbUserResult, error)
func LookupDbUserOutput(ctx *Context, args *LookupDbUserOutputArgs, opts ...InvokeOption) LookupDbUserResultOutput
> Note: This function is named LookupDbUser
in the Go SDK.
public static class GetDbUser
{
public static Task<GetDbUserResult> InvokeAsync(GetDbUserArgs args, InvokeOptions? opts = null)
public static Output<GetDbUserResult> Invoke(GetDbUserInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbUserResult> getDbUser(GetDbUserArgs args, InvokeOptions options)
public static Output<GetDbUserResult> getDbUser(GetDbUserArgs args, InvokeOptions options)
fn::invoke:
function: vkcs:index/getDbUser:getDbUser
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- required string → The id of the user in form "dbms_id/user_name".
- Databases List<string>
- optional set of string → List of names of the databases, that user is created for.
- Dbms
Id string - optional string → ID of the instance or cluster that user is created for.
- Host string
- optional string → IP address of the host that user will be accessible from.
- Name string
- optional string → The name of the user. Changing this creates a new user.
- Password string
- optional string → The password of the user.
- Id string
- required string → The id of the user in form "dbms_id/user_name".
- Databases []string
- optional set of string → List of names of the databases, that user is created for.
- Dbms
Id string - optional string → ID of the instance or cluster that user is created for.
- Host string
- optional string → IP address of the host that user will be accessible from.
- Name string
- optional string → The name of the user. Changing this creates a new user.
- Password string
- optional string → The password of the user.
- id String
- required string → The id of the user in form "dbms_id/user_name".
- databases List<String>
- optional set of string → List of names of the databases, that user is created for.
- dbms
Id String - optional string → ID of the instance or cluster that user is created for.
- host String
- optional string → IP address of the host that user will be accessible from.
- name String
- optional string → The name of the user. Changing this creates a new user.
- password String
- optional string → The password of the user.
- id string
- required string → The id of the user in form "dbms_id/user_name".
- databases string[]
- optional set of string → List of names of the databases, that user is created for.
- dbms
Id string - optional string → ID of the instance or cluster that user is created for.
- host string
- optional string → IP address of the host that user will be accessible from.
- name string
- optional string → The name of the user. Changing this creates a new user.
- password string
- optional string → The password of the user.
- id str
- required string → The id of the user in form "dbms_id/user_name".
- databases Sequence[str]
- optional set of string → List of names of the databases, that user is created for.
- dbms_
id str - optional string → ID of the instance or cluster that user is created for.
- host str
- optional string → IP address of the host that user will be accessible from.
- name str
- optional string → The name of the user. Changing this creates a new user.
- password str
- optional string → The password of the user.
- id String
- required string → The id of the user in form "dbms_id/user_name".
- databases List<String>
- optional set of string → List of names of the databases, that user is created for.
- dbms
Id String - optional string → ID of the instance or cluster that user is created for.
- host String
- optional string → IP address of the host that user will be accessible from.
- name String
- optional string → The name of the user. Changing this creates a new user.
- password String
- optional string → The password of the user.
getDbUser Result
The following output properties are available:
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.