OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud
ovh.Hosting.getPrivateDatabase
Explore with Pulumi AI
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:
- Service
Name string - The internal name of your private database
- Service
Name string - The internal name of your private database
- service
Name String - The internal name of your private database
- service
Name string - The internal name of your private database
- service_
name str - The internal name of your private database
- service
Name 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
- Display
Name string - Name displayed in customer panel for your private database
- Hostname string
- Private database hostname
- Hostname
Ftp 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
- 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 string
- Private database server name
- Service
Name string - State string
- Private database state
- Type string
- Urn string
- URN of the private database
- Version string
- Private database available versions
- Version
Label string - Private database version label
- Version
Number double - Private database version number
- Cpu int
- Number of CPU on your private database
- Datacenter string
- Datacenter where this private database is located
- Display
Name string - Name displayed in customer panel for your private database
- Hostname string
- Private database hostname
- Hostname
Ftp 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
- 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 string
- Private database server name
- Service
Name string - State string
- Private database state
- Type string
- Urn string
- URN of the private database
- Version string
- Private database available versions
- Version
Label string - Private database version label
- Version
Number float64 - Private database version number
- cpu Integer
- Number of CPU on your private database
- datacenter String
- Datacenter where this private database is located
- display
Name String - Name displayed in customer panel for your private database
- hostname String
- Private database hostname
- hostname
Ftp 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
- port
Ftp Integer - Private database FTP port
- quota
Size Integer - Space allowed (in MB) on your private database
- quota
Used 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
- service
Name String - state String
- Private database state
- type String
- urn String
- URN of the private database
- version String
- Private database available versions
- version
Label String - Private database version label
- version
Number Double - Private database version number
- cpu number
- Number of CPU on your private database
- datacenter string
- Datacenter where this private database is located
- display
Name string - Name displayed in customer panel for your private database
- hostname string
- Private database hostname
- hostname
Ftp 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
- port
Ftp number - Private database FTP port
- quota
Size number - Space allowed (in MB) on your private database
- quota
Used 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
- service
Name string - state string
- Private database state
- type string
- urn string
- URN of the private database
- version string
- Private database available versions
- version
Label string - Private database version label
- version
Number 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
- display
Name String - Name displayed in customer panel for your private database
- hostname String
- Private database hostname
- hostname
Ftp 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
- port
Ftp Number - Private database FTP port
- quota
Size Number - Space allowed (in MB) on your private database
- quota
Used 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
- service
Name String - state String
- Private database state
- type String
- urn String
- URN of the private database
- version String
- Private database available versions
- version
Label String - Private database version label
- version
Number 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.