OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud
ovh.Hosting.getPrivateDatabaseUser
Explore with Pulumi AI
Use this data source to retrieve information about an hosting privatedatabase user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const user = ovh.Hosting.getPrivateDatabaseUser({
serviceName: "XXXXXX",
userName: "XXXXXX",
});
import pulumi
import pulumi_ovh as ovh
user = ovh.Hosting.get_private_database_user(service_name="XXXXXX",
user_name="XXXXXX")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/go/ovh/Hosting"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Hosting.GetPrivateDatabaseUser(ctx, &hosting.GetPrivateDatabaseUserArgs{
ServiceName: "XXXXXX",
UserName: "XXXXXX",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var user = Ovh.Hosting.GetPrivateDatabaseUser.Invoke(new()
{
ServiceName = "XXXXXX",
UserName = "XXXXXX",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Hosting.HostingFunctions;
import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseUserArgs;
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 user = HostingFunctions.getPrivateDatabaseUser(GetPrivateDatabaseUserArgs.builder()
.serviceName("XXXXXX")
.userName("XXXXXX")
.build());
}
}
variables:
user:
fn::invoke:
Function: ovh:Hosting:getPrivateDatabaseUser
Arguments:
serviceName: XXXXXX
userName: XXXXXX
Using getPrivateDatabaseUser
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 getPrivateDatabaseUser(args: GetPrivateDatabaseUserArgs, opts?: InvokeOptions): Promise<GetPrivateDatabaseUserResult>
function getPrivateDatabaseUserOutput(args: GetPrivateDatabaseUserOutputArgs, opts?: InvokeOptions): Output<GetPrivateDatabaseUserResult>
def get_private_database_user(service_name: Optional[str] = None,
user_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPrivateDatabaseUserResult
def get_private_database_user_output(service_name: Optional[pulumi.Input[str]] = None,
user_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPrivateDatabaseUserResult]
func GetPrivateDatabaseUser(ctx *Context, args *GetPrivateDatabaseUserArgs, opts ...InvokeOption) (*GetPrivateDatabaseUserResult, error)
func GetPrivateDatabaseUserOutput(ctx *Context, args *GetPrivateDatabaseUserOutputArgs, opts ...InvokeOption) GetPrivateDatabaseUserResultOutput
> Note: This function is named GetPrivateDatabaseUser
in the Go SDK.
public static class GetPrivateDatabaseUser
{
public static Task<GetPrivateDatabaseUserResult> InvokeAsync(GetPrivateDatabaseUserArgs args, InvokeOptions? opts = null)
public static Output<GetPrivateDatabaseUserResult> Invoke(GetPrivateDatabaseUserInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPrivateDatabaseUserResult> getPrivateDatabaseUser(GetPrivateDatabaseUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: ovh:Hosting/getPrivateDatabaseUser:getPrivateDatabaseUser
arguments:
# arguments dictionary
The following arguments are supported:
- Service
Name string - The internal name of your private database
- User
Name string - User name
- Service
Name string - The internal name of your private database
- User
Name string - User name
- service
Name String - The internal name of your private database
- user
Name String - User name
- service
Name string - The internal name of your private database
- user
Name string - User name
- service_
name str - The internal name of your private database
- user_
name str - User name
- service
Name String - The internal name of your private database
- user
Name String - User name
getPrivateDatabaseUser Result
The following output properties are available:
- Creation
Date string - Creation date of the database
- Databases
List<Get
Private Database User Database> - Users granted to this database
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Name string - User
Name string
- Creation
Date string - Creation date of the database
- Databases
[]Get
Private Database User Database - Users granted to this database
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Name string - User
Name string
- creation
Date String - Creation date of the database
- databases
List<Get
Private Database User Database> - Users granted to this database
- id String
- The provider-assigned unique ID for this managed resource.
- service
Name String - user
Name String
- creation
Date string - Creation date of the database
- databases
Get
Private Database User Database[] - Users granted to this database
- id string
- The provider-assigned unique ID for this managed resource.
- service
Name string - user
Name string
- creation_
date str - Creation date of the database
- databases
Sequence[hosting.
Get Private Database User Database] - Users granted to this database
- id str
- The provider-assigned unique ID for this managed resource.
- service_
name str - user_
name str
- creation
Date String - Creation date of the database
- databases List<Property Map>
- Users granted to this database
- id String
- The provider-assigned unique ID for this managed resource.
- service
Name String - user
Name String
Supporting Types
GetPrivateDatabaseUserDatabase
- Database
Name string - Database's name linked to this user
- Grant
Type string - Grant of this user for this database
- Database
Name string - Database's name linked to this user
- Grant
Type string - Grant of this user for this database
- database
Name String - Database's name linked to this user
- grant
Type String - Grant of this user for this database
- database
Name string - Database's name linked to this user
- grant
Type string - Grant of this user for this database
- database_
name str - Database's name linked to this user
- grant_
type str - Grant of this user for this database
- database
Name String - Database's name linked to this user
- grant
Type String - Grant of this user for this database
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.