1. Packages
  2. OVH
  3. API Docs
  4. Hosting
  5. getPrivateDatabaseAllowlist
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

ovh.Hosting.getPrivateDatabaseAllowlist

Explore with Pulumi AI

OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 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 "@pulumi/ovh";

const whitelist = ovh.Hosting.getPrivateDatabaseAllowlist({
    ip: "XXXXXX",
    serviceName: "XXXXXX",
});
Copy
import pulumi
import pulumi_ovh as ovh

whitelist = ovh.Hosting.get_private_database_allowlist(ip="XXXXXX",
    service_name="XXXXXX")
Copy
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{
			Ip:          pulumi.StringRef("XXXXXX"),
			ServiceName: "XXXXXX",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var whitelist = Ovh.Hosting.GetPrivateDatabaseAllowlist.Invoke(new()
    {
        Ip = "XXXXXX",
        ServiceName = "XXXXXX",
    });

});
Copy
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()
            .ip("XXXXXX")
            .serviceName("XXXXXX")
            .build());

    }
}
Copy
variables:
  whitelist:
    fn::invoke:
      function: ovh:Hosting:getPrivateDatabaseAllowlist
      arguments:
        ip: XXXXXX
        serviceName: XXXXXX
Copy

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>
Copy
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]
Copy
func GetPrivateDatabaseAllowlist(ctx *Context, args *GetPrivateDatabaseAllowlistArgs, opts ...InvokeOption) (*GetPrivateDatabaseAllowlistResult, error)
func GetPrivateDatabaseAllowlistOutput(ctx *Context, args *GetPrivateDatabaseAllowlistOutputArgs, opts ...InvokeOption) GetPrivateDatabaseAllowlistResultOutput
Copy

> Note: This function is named GetPrivateDatabaseAllowlist 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)
}
Copy
public static CompletableFuture<GetPrivateDatabaseAllowlistResult> getPrivateDatabaseAllowlist(GetPrivateDatabaseAllowlistArgs args, InvokeOptions options)
public static Output<GetPrivateDatabaseAllowlistResult> getPrivateDatabaseAllowlist(GetPrivateDatabaseAllowlistArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ovh:Hosting/getPrivateDatabaseAllowlist:getPrivateDatabaseAllowlist
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ServiceName This property is required. string
The internal name of your private database
Ip string
The whitelisted IP in your instance
ServiceName This property is required. string
The internal name of your private database
Ip string
The whitelisted IP in your instance
serviceName This property is required. String
The internal name of your private database
ip String
The whitelisted IP in your instance
serviceName This property is required. string
The internal name of your private database
ip string
The whitelisted IP in your instance
service_name This property is required. str
The internal name of your private database
ip str
The whitelisted IP in your instance
serviceName This property is required. String
The internal name of your private database
ip String
The whitelisted IP in your instance

getPrivateDatabaseAllowlist Result

The following output properties are available:

CreationDate string
Creation date of the database
Id string
The provider-assigned unique ID for this managed resource.
LastUpdate 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
ServiceName string
Sftp bool
Authorize this IP to access SFTP port
Status string
Whitelist status
Ip string
CreationDate string
Creation date of the database
Id string
The provider-assigned unique ID for this managed resource.
LastUpdate 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
ServiceName string
Sftp bool
Authorize this IP to access SFTP port
Status string
Whitelist status
Ip string
creationDate String
Creation date of the database
id String
The provider-assigned unique ID for this managed resource.
lastUpdate 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
serviceName String
sftp Boolean
Authorize this IP to access SFTP port
status String
Whitelist status
ip String
creationDate string
Creation date of the database
id string
The provider-assigned unique ID for this managed resource.
lastUpdate 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
serviceName 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
creationDate String
Creation date of the database
id String
The provider-assigned unique ID for this managed resource.
lastUpdate 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
serviceName 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 ovh Terraform Provider.
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud