OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud
ovh.Hosting.getPrivateDatabaseAllowlist
Explore with Pulumi AI
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",
});
import pulumi
import pulumi_ovh as ovh
whitelist = ovh.Hosting.get_private_database_allowlist(ip="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.GetPrivateDatabaseAllowlist(ctx, &hosting.GetPrivateDatabaseAllowlistArgs{
			Ip:          pulumi.StringRef("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 whitelist = Ovh.Hosting.GetPrivateDatabaseAllowlist.Invoke(new()
    {
        Ip = "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.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());
    }
}
variables:
  whitelist:
    fn::invoke:
      Function: ovh:Hosting:getPrivateDatabaseAllowlist
      Arguments:
        ip: XXXXXX
        serviceName: 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 GetPrivateDatabaseAllowlist(ctx *Context, args *GetPrivateDatabaseAllowlistArgs, opts ...InvokeOption) (*GetPrivateDatabaseAllowlistResult, error)
func GetPrivateDatabaseAllowlistOutput(ctx *Context, args *GetPrivateDatabaseAllowlistOutputArgs, opts ...InvokeOption) GetPrivateDatabaseAllowlistResultOutput> 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)
}public static CompletableFuture<GetPrivateDatabaseAllowlistResult> getPrivateDatabaseAllowlist(GetPrivateDatabaseAllowlistArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
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.