OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud
ovh.Hosting.getPrivateDatabaseDb
Explore with Pulumi AI
Use this data source to retrieve information about an hosting privatedatabase.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const mydatabase = ovh.Hosting.getPrivateDatabaseDb({
databaseName: "XXXXXX",
serviceName: "XXXXXX",
});
import pulumi
import pulumi_ovh as ovh
mydatabase = ovh.Hosting.get_private_database_db(database_name="XXXXXX",
service_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.GetPrivateDatabaseDb(ctx, &hosting.GetPrivateDatabaseDbArgs{
DatabaseName: "XXXXXX",
ServiceName: "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 mydatabase = Ovh.Hosting.GetPrivateDatabaseDb.Invoke(new()
{
DatabaseName = "XXXXXX",
ServiceName = "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.GetPrivateDatabaseDbArgs;
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 = HostingFunctions.getPrivateDatabaseDb(GetPrivateDatabaseDbArgs.builder()
.databaseName("XXXXXX")
.serviceName("XXXXXX")
.build());
}
}
variables:
mydatabase:
fn::invoke:
Function: ovh:Hosting:getPrivateDatabaseDb
Arguments:
databaseName: XXXXXX
serviceName: XXXXXX
Using getPrivateDatabaseDb
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 getPrivateDatabaseDb(args: GetPrivateDatabaseDbArgs, opts?: InvokeOptions): Promise<GetPrivateDatabaseDbResult>
function getPrivateDatabaseDbOutput(args: GetPrivateDatabaseDbOutputArgs, opts?: InvokeOptions): Output<GetPrivateDatabaseDbResult>
def get_private_database_db(database_name: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPrivateDatabaseDbResult
def get_private_database_db_output(database_name: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPrivateDatabaseDbResult]
func GetPrivateDatabaseDb(ctx *Context, args *GetPrivateDatabaseDbArgs, opts ...InvokeOption) (*GetPrivateDatabaseDbResult, error)
func GetPrivateDatabaseDbOutput(ctx *Context, args *GetPrivateDatabaseDbOutputArgs, opts ...InvokeOption) GetPrivateDatabaseDbResultOutput
> Note: This function is named GetPrivateDatabaseDb
in the Go SDK.
public static class GetPrivateDatabaseDb
{
public static Task<GetPrivateDatabaseDbResult> InvokeAsync(GetPrivateDatabaseDbArgs args, InvokeOptions? opts = null)
public static Output<GetPrivateDatabaseDbResult> Invoke(GetPrivateDatabaseDbInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPrivateDatabaseDbResult> getPrivateDatabaseDb(GetPrivateDatabaseDbArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: ovh:Hosting/getPrivateDatabaseDb:getPrivateDatabaseDb
arguments:
# arguments dictionary
The following arguments are supported:
- Database
Name string - Database name
- Service
Name string - The internal name of your private database
- Database
Name string - Database name
- Service
Name string - The internal name of your private database
- database
Name String - Database name
- service
Name String - The internal name of your private database
- database
Name string - Database name
- service
Name string - The internal name of your private database
- database_
name str - Database name
- service_
name str - The internal name of your private database
- database
Name String - Database name
- service
Name String - The internal name of your private database
getPrivateDatabaseDb Result
The following output properties are available:
- Backup
Time string - Time of the next backup (every day)
- Creation
Date string - Creation date of the database
- Database
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Quota
Used int - Space used by the database (in MB)
- Service
Name string - Users
List<Get
Private Database Db User> - Users granted to this database
- Backup
Time string - Time of the next backup (every day)
- Creation
Date string - Creation date of the database
- Database
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Quota
Used int - Space used by the database (in MB)
- Service
Name string - Users
[]Get
Private Database Db User - Users granted to this database
- backup
Time String - Time of the next backup (every day)
- creation
Date String - Creation date of the database
- database
Name String - id String
- The provider-assigned unique ID for this managed resource.
- quota
Used Integer - Space used by the database (in MB)
- service
Name String - users
List<Get
Private Database Db User> - Users granted to this database
- backup
Time string - Time of the next backup (every day)
- creation
Date string - Creation date of the database
- database
Name string - id string
- The provider-assigned unique ID for this managed resource.
- quota
Used number - Space used by the database (in MB)
- service
Name string - users
Get
Private Database Db User[] - Users granted to this database
- backup_
time str - Time of the next backup (every day)
- creation_
date str - Creation date of the database
- database_
name str - id str
- The provider-assigned unique ID for this managed resource.
- quota_
used int - Space used by the database (in MB)
- service_
name str - users
Sequence[hosting.
Get Private Database Db User] - Users granted to this database
- backup
Time String - Time of the next backup (every day)
- creation
Date String - Creation date of the database
- database
Name String - id String
- The provider-assigned unique ID for this managed resource.
- quota
Used Number - Space used by the database (in MB)
- service
Name String - users List<Property Map>
- Users granted to this database
Supporting Types
GetPrivateDatabaseDbUser
- grant_
type str - Grant of this user for this database
- user_
name str - User's name granted on this database
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.