Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Use this data source to retrieve information about an hosting privatedatabase whitelist.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const whitelist = ovh.Hosting.getPrivateDatabaseAllowlist({
serviceName: "XXXXXX",
ip: "XXXXXX",
});
import pulumi
import pulumi_ovh as ovh
whitelist = ovh.Hosting.get_private_database_allowlist(service_name="XXXXXX",
ip="XXXXXX")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/hosting"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hosting.GetPrivateDatabaseAllowlist(ctx, &hosting.GetPrivateDatabaseAllowlistArgs{
ServiceName: "XXXXXX",
Ip: pulumi.StringRef("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 whitelist = Ovh.Hosting.GetPrivateDatabaseAllowlist.Invoke(new()
{
ServiceName = "XXXXXX",
Ip = "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.GetPrivateDatabaseAllowlistArgs;
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 whitelist = HostingFunctions.getPrivateDatabaseAllowlist(GetPrivateDatabaseAllowlistArgs.builder()
.serviceName("XXXXXX")
.ip("XXXXXX")
.build());
}
}
variables:
whitelist:
fn::invoke:
function: ovh:Hosting:getPrivateDatabaseAllowlist
arguments:
serviceName: XXXXXX
ip: XXXXXX
Using getPrivateDatabaseAllowlist
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 getPrivateDatabaseAllowlist(args: GetPrivateDatabaseAllowlistArgs, opts?: InvokeOptions): Promise<GetPrivateDatabaseAllowlistResult>
function getPrivateDatabaseAllowlistOutput(args: GetPrivateDatabaseAllowlistOutputArgs, opts?: InvokeOptions): Output<GetPrivateDatabaseAllowlistResult>def get_private_database_allowlist(ip: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPrivateDatabaseAllowlistResult
def get_private_database_allowlist_output(ip: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPrivateDatabaseAllowlistResult]func LookupPrivateDatabaseAllowlist(ctx *Context, args *LookupPrivateDatabaseAllowlistArgs, opts ...InvokeOption) (*LookupPrivateDatabaseAllowlistResult, error)
func LookupPrivateDatabaseAllowlistOutput(ctx *Context, args *LookupPrivateDatabaseAllowlistOutputArgs, opts ...InvokeOption) LookupPrivateDatabaseAllowlistResultOutput> Note: This function is named LookupPrivateDatabaseAllowlist in the Go SDK.
public static class GetPrivateDatabaseAllowlist
{
public static Task<GetPrivateDatabaseAllowlistResult> InvokeAsync(GetPrivateDatabaseAllowlistArgs args, InvokeOptions? opts = null)
public static Output<GetPrivateDatabaseAllowlistResult> Invoke(GetPrivateDatabaseAllowlistInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPrivateDatabaseAllowlistResult> getPrivateDatabaseAllowlist(GetPrivateDatabaseAllowlistArgs args, InvokeOptions options)
public static Output<GetPrivateDatabaseAllowlistResult> getPrivateDatabaseAllowlist(GetPrivateDatabaseAllowlistArgs args, InvokeOptions options)
fn::invoke:
function: ovh:Hosting/getPrivateDatabaseAllowlist:getPrivateDatabaseAllowlist
arguments:
# arguments dictionaryThe following arguments are supported:
- Service
Name string - The internal name of your private database
- Ip string
- The whitelisted IP in your instance
- Service
Name string - The internal name of your private database
- Ip string
- The whitelisted IP in your instance
- service
Name String - The internal name of your private database
- ip String
- The whitelisted IP in your instance
- service
Name string - The internal name of your private database
- ip string
- The whitelisted IP in your instance
- service_
name str - The internal name of your private database
- ip str
- The whitelisted IP in your instance
- service
Name String - The internal name of your private database
- ip String
- The whitelisted IP in your instance
getPrivateDatabaseAllowlist Result
The following output properties are available:
- Creation
Date string - Creation date of the database
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Update string - The last update date of this whitelist
- Name string
- Custom name for your Whitelisted IP
- Service bool
- Authorize this IP to access service port
- Service
Name string - Sftp bool
- Authorize this IP to access SFTP port
- Status string
- Whitelist status
- Ip string
- Creation
Date string - Creation date of the database
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Update string - The last update date of this whitelist
- Name string
- Custom name for your Whitelisted IP
- Service bool
- Authorize this IP to access service port
- Service
Name string - Sftp bool
- Authorize this IP to access SFTP port
- Status string
- Whitelist status
- Ip string
- creation
Date String - Creation date of the database
- id String
- The provider-assigned unique ID for this managed resource.
- last
Update String - The last update date of this whitelist
- name String
- Custom name for your Whitelisted IP
- service Boolean
- Authorize this IP to access service port
- service
Name String - sftp Boolean
- Authorize this IP to access SFTP port
- status String
- Whitelist status
- ip String
- creation
Date string - Creation date of the database
- id string
- The provider-assigned unique ID for this managed resource.
- last
Update string - The last update date of this whitelist
- name string
- Custom name for your Whitelisted IP
- service boolean
- Authorize this IP to access service port
- service
Name string - sftp boolean
- Authorize this IP to access SFTP port
- status string
- Whitelist status
- ip string
- creation_
date str - Creation date of the database
- id str
- The provider-assigned unique ID for this managed resource.
- last_
update str - The last update date of this whitelist
- name str
- Custom name for your Whitelisted IP
- service bool
- Authorize this IP to access service port
- service_
name str - sftp bool
- Authorize this IP to access SFTP port
- status str
- Whitelist status
- ip str
- creation
Date String - Creation date of the database
- id String
- The provider-assigned unique ID for this managed resource.
- last
Update String - The last update date of this whitelist
- name String
- Custom name for your Whitelisted IP
- service Boolean
- Authorize this IP to access service port
- service
Name String - sftp Boolean
- Authorize this IP to access SFTP port
- status String
- Whitelist status
- ip String
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
