1. Packages
  2. OVH
  3. API Docs
  4. Hosting
  5. getPrivateDatabaseDb
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

ovh.Hosting.getPrivateDatabaseDb

Explore with Pulumi AI

ovh logo
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

    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:

    DatabaseName string
    Database name
    ServiceName string
    The internal name of your private database
    DatabaseName string
    Database name
    ServiceName string
    The internal name of your private database
    databaseName String
    Database name
    serviceName String
    The internal name of your private database
    databaseName string
    Database name
    serviceName string
    The internal name of your private database
    database_name str
    Database name
    service_name str
    The internal name of your private database
    databaseName String
    Database name
    serviceName String
    The internal name of your private database

    getPrivateDatabaseDb Result

    The following output properties are available:

    BackupTime string
    Time of the next backup (every day)
    CreationDate string
    Creation date of the database
    DatabaseName string
    Id string
    The provider-assigned unique ID for this managed resource.
    QuotaUsed int
    Space used by the database (in MB)
    ServiceName string
    Users List<GetPrivateDatabaseDbUser>
    Users granted to this database
    BackupTime string
    Time of the next backup (every day)
    CreationDate string
    Creation date of the database
    DatabaseName string
    Id string
    The provider-assigned unique ID for this managed resource.
    QuotaUsed int
    Space used by the database (in MB)
    ServiceName string
    Users []GetPrivateDatabaseDbUser
    Users granted to this database
    backupTime String
    Time of the next backup (every day)
    creationDate String
    Creation date of the database
    databaseName String
    id String
    The provider-assigned unique ID for this managed resource.
    quotaUsed Integer
    Space used by the database (in MB)
    serviceName String
    users List<GetPrivateDatabaseDbUser>
    Users granted to this database
    backupTime string
    Time of the next backup (every day)
    creationDate string
    Creation date of the database
    databaseName string
    id string
    The provider-assigned unique ID for this managed resource.
    quotaUsed number
    Space used by the database (in MB)
    serviceName string
    users GetPrivateDatabaseDbUser[]
    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.GetPrivateDatabaseDbUser]
    Users granted to this database
    backupTime String
    Time of the next backup (every day)
    creationDate String
    Creation date of the database
    databaseName String
    id String
    The provider-assigned unique ID for this managed resource.
    quotaUsed Number
    Space used by the database (in MB)
    serviceName String
    users List<Property Map>
    Users granted to this database

    Supporting Types

    GetPrivateDatabaseDbUser

    GrantType string
    Grant of this user for this database
    UserName string
    User's name granted on this database
    GrantType string
    Grant of this user for this database
    UserName string
    User's name granted on this database
    grantType String
    Grant of this user for this database
    userName String
    User's name granted on this database
    grantType string
    Grant of this user for this database
    userName string
    User's name granted on this database
    grant_type str
    Grant of this user for this database
    user_name str
    User's name granted on this database
    grantType String
    Grant of this user for this database
    userName String
    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.
    ovh logo
    OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud