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

ovh.Hosting.getPrivateDatabase

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 database.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const database = ovh.Hosting.getPrivateDatabase({
        serviceName: "XXXXXX",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    database = ovh.Hosting.get_private_database(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.GetPrivateDatabase(ctx, &hosting.GetPrivateDatabaseArgs{
    			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 database = Ovh.Hosting.GetPrivateDatabase.Invoke(new()
        {
            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.GetPrivateDatabaseArgs;
    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 database = HostingFunctions.getPrivateDatabase(GetPrivateDatabaseArgs.builder()
                .serviceName("XXXXXX")
                .build());
    
        }
    }
    
    variables:
      database:
        fn::invoke:
          Function: ovh:Hosting:getPrivateDatabase
          Arguments:
            serviceName: XXXXXX
    

    Using getPrivateDatabase

    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 getPrivateDatabase(args: GetPrivateDatabaseArgs, opts?: InvokeOptions): Promise<GetPrivateDatabaseResult>
    function getPrivateDatabaseOutput(args: GetPrivateDatabaseOutputArgs, opts?: InvokeOptions): Output<GetPrivateDatabaseResult>
    def get_private_database(service_name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetPrivateDatabaseResult
    def get_private_database_output(service_name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetPrivateDatabaseResult]
    func GetPrivateDatabase(ctx *Context, args *GetPrivateDatabaseArgs, opts ...InvokeOption) (*GetPrivateDatabaseResult, error)
    func GetPrivateDatabaseOutput(ctx *Context, args *GetPrivateDatabaseOutputArgs, opts ...InvokeOption) GetPrivateDatabaseResultOutput

    > Note: This function is named GetPrivateDatabase in the Go SDK.

    public static class GetPrivateDatabase 
    {
        public static Task<GetPrivateDatabaseResult> InvokeAsync(GetPrivateDatabaseArgs args, InvokeOptions? opts = null)
        public static Output<GetPrivateDatabaseResult> Invoke(GetPrivateDatabaseInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPrivateDatabaseResult> getPrivateDatabase(GetPrivateDatabaseArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:Hosting/getPrivateDatabase:getPrivateDatabase
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceName string
    The internal name of your private database
    ServiceName string
    The internal name of your private database
    serviceName String
    The internal name of your private database
    serviceName string
    The internal name of your private database
    service_name str
    The internal name of your private database
    serviceName String
    The internal name of your private database

    getPrivateDatabase Result

    The following output properties are available:

    Cpu int
    Number of CPU on your private database
    Datacenter string
    Datacenter where this private database is located
    DisplayName string
    Name displayed in customer panel for your private database
    Hostname string
    Private database hostname
    HostnameFtp string
    Private database FTP hostname
    Id string
    The provider-assigned unique ID for this managed resource.
    Infrastructure string
    Infrastructure where service was stored
    Offer string
    Type of the private database offer
    Port int
    Private database service port
    PortFtp int
    Private database FTP port
    QuotaSize int
    Space allowed (in MB) on your private database
    QuotaUsed int
    Sapce used (in MB) on your private database
    Ram int
    Amount of ram (in MB) on your private database
    Server string
    Private database server name
    ServiceName string
    State string
    Private database state
    Type string
    Urn string
    URN of the private database
    Version string
    Private database available versions
    VersionLabel string
    Private database version label
    VersionNumber double
    Private database version number
    Cpu int
    Number of CPU on your private database
    Datacenter string
    Datacenter where this private database is located
    DisplayName string
    Name displayed in customer panel for your private database
    Hostname string
    Private database hostname
    HostnameFtp string
    Private database FTP hostname
    Id string
    The provider-assigned unique ID for this managed resource.
    Infrastructure string
    Infrastructure where service was stored
    Offer string
    Type of the private database offer
    Port int
    Private database service port
    PortFtp int
    Private database FTP port
    QuotaSize int
    Space allowed (in MB) on your private database
    QuotaUsed int
    Sapce used (in MB) on your private database
    Ram int
    Amount of ram (in MB) on your private database
    Server string
    Private database server name
    ServiceName string
    State string
    Private database state
    Type string
    Urn string
    URN of the private database
    Version string
    Private database available versions
    VersionLabel string
    Private database version label
    VersionNumber float64
    Private database version number
    cpu Integer
    Number of CPU on your private database
    datacenter String
    Datacenter where this private database is located
    displayName String
    Name displayed in customer panel for your private database
    hostname String
    Private database hostname
    hostnameFtp String
    Private database FTP hostname
    id String
    The provider-assigned unique ID for this managed resource.
    infrastructure String
    Infrastructure where service was stored
    offer String
    Type of the private database offer
    port Integer
    Private database service port
    portFtp Integer
    Private database FTP port
    quotaSize Integer
    Space allowed (in MB) on your private database
    quotaUsed Integer
    Sapce used (in MB) on your private database
    ram Integer
    Amount of ram (in MB) on your private database
    server String
    Private database server name
    serviceName String
    state String
    Private database state
    type String
    urn String
    URN of the private database
    version String
    Private database available versions
    versionLabel String
    Private database version label
    versionNumber Double
    Private database version number
    cpu number
    Number of CPU on your private database
    datacenter string
    Datacenter where this private database is located
    displayName string
    Name displayed in customer panel for your private database
    hostname string
    Private database hostname
    hostnameFtp string
    Private database FTP hostname
    id string
    The provider-assigned unique ID for this managed resource.
    infrastructure string
    Infrastructure where service was stored
    offer string
    Type of the private database offer
    port number
    Private database service port
    portFtp number
    Private database FTP port
    quotaSize number
    Space allowed (in MB) on your private database
    quotaUsed number
    Sapce used (in MB) on your private database
    ram number
    Amount of ram (in MB) on your private database
    server string
    Private database server name
    serviceName string
    state string
    Private database state
    type string
    urn string
    URN of the private database
    version string
    Private database available versions
    versionLabel string
    Private database version label
    versionNumber number
    Private database version number
    cpu int
    Number of CPU on your private database
    datacenter str
    Datacenter where this private database is located
    display_name str
    Name displayed in customer panel for your private database
    hostname str
    Private database hostname
    hostname_ftp str
    Private database FTP hostname
    id str
    The provider-assigned unique ID for this managed resource.
    infrastructure str
    Infrastructure where service was stored
    offer str
    Type of the private database offer
    port int
    Private database service port
    port_ftp int
    Private database FTP port
    quota_size int
    Space allowed (in MB) on your private database
    quota_used int
    Sapce used (in MB) on your private database
    ram int
    Amount of ram (in MB) on your private database
    server str
    Private database server name
    service_name str
    state str
    Private database state
    type str
    urn str
    URN of the private database
    version str
    Private database available versions
    version_label str
    Private database version label
    version_number float
    Private database version number
    cpu Number
    Number of CPU on your private database
    datacenter String
    Datacenter where this private database is located
    displayName String
    Name displayed in customer panel for your private database
    hostname String
    Private database hostname
    hostnameFtp String
    Private database FTP hostname
    id String
    The provider-assigned unique ID for this managed resource.
    infrastructure String
    Infrastructure where service was stored
    offer String
    Type of the private database offer
    port Number
    Private database service port
    portFtp Number
    Private database FTP port
    quotaSize Number
    Space allowed (in MB) on your private database
    quotaUsed Number
    Sapce used (in MB) on your private database
    ram Number
    Amount of ram (in MB) on your private database
    server String
    Private database server name
    serviceName String
    state String
    Private database state
    type String
    urn String
    URN of the private database
    version String
    Private database available versions
    versionLabel String
    Private database version label
    versionNumber Number
    Private database version number

    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