published on Friday, Sep 25, 2026 by OVHcloud
published on Friday, Sep 25, 2026 by OVHcloud
Allow or deny the OVHcloud webhosting network to connect to your private database.
A private database has this access enabled, so enabled = true matches the state of a brand new
instance and does nothing. Destroying the resource restores that default rather than leaving the
access closed.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const network = new ovh.HostingPrivatedatabaseWebhostingNetwork("network", {
serviceName: "XXXXXX",
enabled: false,
});
import pulumi
import pulumi_ovh as ovh
network = ovh.HostingPrivatedatabaseWebhostingNetwork("network",
service_name="XXXXXX",
enabled=False)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ovh.NewHostingPrivatedatabaseWebhostingNetwork(ctx, "network", &ovh.HostingPrivatedatabaseWebhostingNetworkArgs{
ServiceName: pulumi.String("XXXXXX"),
Enabled: pulumi.Bool(false),
})
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 network = new Ovh.HostingPrivatedatabaseWebhostingNetwork("network", new()
{
ServiceName = "XXXXXX",
Enabled = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.ovhcloud.pulumi.ovh.HostingPrivatedatabaseWebhostingNetwork;
import com.ovhcloud.pulumi.ovh.HostingPrivatedatabaseWebhostingNetworkArgs;
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) {
var network = new HostingPrivatedatabaseWebhostingNetwork("network", HostingPrivatedatabaseWebhostingNetworkArgs.builder()
.serviceName("XXXXXX")
.enabled(false)
.build());
}
}
resources:
network:
type: ovh:HostingPrivatedatabaseWebhostingNetwork
properties:
serviceName: XXXXXX
enabled: false
Example coming soon!
Create HostingPrivatedatabaseWebhostingNetwork Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HostingPrivatedatabaseWebhostingNetwork(name: string, args: HostingPrivatedatabaseWebhostingNetworkArgs, opts?: CustomResourceOptions);@overload
def HostingPrivatedatabaseWebhostingNetwork(resource_name: str,
args: HostingPrivatedatabaseWebhostingNetworkArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HostingPrivatedatabaseWebhostingNetwork(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
service_name: Optional[str] = None)func NewHostingPrivatedatabaseWebhostingNetwork(ctx *Context, name string, args HostingPrivatedatabaseWebhostingNetworkArgs, opts ...ResourceOption) (*HostingPrivatedatabaseWebhostingNetwork, error)public HostingPrivatedatabaseWebhostingNetwork(string name, HostingPrivatedatabaseWebhostingNetworkArgs args, CustomResourceOptions? opts = null)
public HostingPrivatedatabaseWebhostingNetwork(String name, HostingPrivatedatabaseWebhostingNetworkArgs args)
public HostingPrivatedatabaseWebhostingNetwork(String name, HostingPrivatedatabaseWebhostingNetworkArgs args, CustomResourceOptions options)
type: ovh:HostingPrivatedatabaseWebhostingNetwork
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "ovh_hosting_privatedatabase_webhosting_network" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args HostingPrivatedatabaseWebhostingNetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HostingPrivatedatabaseWebhostingNetworkArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HostingPrivatedatabaseWebhostingNetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HostingPrivatedatabaseWebhostingNetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HostingPrivatedatabaseWebhostingNetworkArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var hostingPrivatedatabaseWebhostingNetworkResource = new Ovh.HostingPrivatedatabaseWebhostingNetwork("hostingPrivatedatabaseWebhostingNetworkResource", new()
{
Enabled = false,
ServiceName = "string",
});
example, err := ovh.NewHostingPrivatedatabaseWebhostingNetwork(ctx, "hostingPrivatedatabaseWebhostingNetworkResource", &ovh.HostingPrivatedatabaseWebhostingNetworkArgs{
Enabled: pulumi.Bool(false),
ServiceName: pulumi.String("string"),
})
resource "ovh_hosting_privatedatabase_webhosting_network" "hostingPrivatedatabaseWebhostingNetworkResource" {
lifecycle {
create_before_destroy = true
}
enabled = false
service_name = "string"
}
var hostingPrivatedatabaseWebhostingNetworkResource = new HostingPrivatedatabaseWebhostingNetwork("hostingPrivatedatabaseWebhostingNetworkResource", HostingPrivatedatabaseWebhostingNetworkArgs.builder()
.enabled(false)
.serviceName("string")
.build());
hosting_privatedatabase_webhosting_network_resource = ovh.HostingPrivatedatabaseWebhostingNetwork("hostingPrivatedatabaseWebhostingNetworkResource",
enabled=False,
service_name="string")
const hostingPrivatedatabaseWebhostingNetworkResource = new ovh.HostingPrivatedatabaseWebhostingNetwork("hostingPrivatedatabaseWebhostingNetworkResource", {
enabled: false,
serviceName: "string",
});
type: ovh:HostingPrivatedatabaseWebhostingNetwork
properties:
enabled: false
serviceName: string
HostingPrivatedatabaseWebhostingNetwork Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The HostingPrivatedatabaseWebhostingNetwork resource accepts the following input properties:
- Enabled bool
- Allow the OVHcloud webhosting network to connect to the private database. Values can be
trueorfalse - Service
Name string - The internal name of your private database.
- Enabled bool
- Allow the OVHcloud webhosting network to connect to the private database. Values can be
trueorfalse - Service
Name string - The internal name of your private database.
- enabled bool
- Allow the OVHcloud webhosting network to connect to the private database. Values can be
trueorfalse - service_
name string - The internal name of your private database.
- enabled Boolean
- Allow the OVHcloud webhosting network to connect to the private database. Values can be
trueorfalse - service
Name String - The internal name of your private database.
- enabled boolean
- Allow the OVHcloud webhosting network to connect to the private database. Values can be
trueorfalse - service
Name string - The internal name of your private database.
- enabled bool
- Allow the OVHcloud webhosting network to connect to the private database. Values can be
trueorfalse - service_
name str - The internal name of your private database.
- enabled Boolean
- Allow the OVHcloud webhosting network to connect to the private database. Values can be
trueorfalse - service
Name String - The internal name of your private database.
Outputs
All input properties are implicitly available as output properties. Additionally, the HostingPrivatedatabaseWebhostingNetwork resource produces the following output properties:
Look up Existing HostingPrivatedatabaseWebhostingNetwork Resource
Get an existing HostingPrivatedatabaseWebhostingNetwork resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HostingPrivatedatabaseWebhostingNetworkState, opts?: CustomResourceOptions): HostingPrivatedatabaseWebhostingNetwork@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
service_name: Optional[str] = None,
status: Optional[str] = None) -> HostingPrivatedatabaseWebhostingNetworkfunc GetHostingPrivatedatabaseWebhostingNetwork(ctx *Context, name string, id IDInput, state *HostingPrivatedatabaseWebhostingNetworkState, opts ...ResourceOption) (*HostingPrivatedatabaseWebhostingNetwork, error)public static HostingPrivatedatabaseWebhostingNetwork Get(string name, Input<string> id, HostingPrivatedatabaseWebhostingNetworkState? state, CustomResourceOptions? opts = null)public static HostingPrivatedatabaseWebhostingNetwork get(String name, Output<String> id, HostingPrivatedatabaseWebhostingNetworkState state, CustomResourceOptions options)resources: _: type: ovh:HostingPrivatedatabaseWebhostingNetwork get: id: ${id}import {
to = ovh_hosting_privatedatabase_webhosting_network.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Enabled bool
- Allow the OVHcloud webhosting network to connect to the private database. Values can be
trueorfalse - Service
Name string - The internal name of your private database.
- Status string
- Webhosting network status (
disabled,disabling,enabledorenabling)
- Enabled bool
- Allow the OVHcloud webhosting network to connect to the private database. Values can be
trueorfalse - Service
Name string - The internal name of your private database.
- Status string
- Webhosting network status (
disabled,disabling,enabledorenabling)
- enabled bool
- Allow the OVHcloud webhosting network to connect to the private database. Values can be
trueorfalse - service_
name string - The internal name of your private database.
- status string
- Webhosting network status (
disabled,disabling,enabledorenabling)
- enabled Boolean
- Allow the OVHcloud webhosting network to connect to the private database. Values can be
trueorfalse - service
Name String - The internal name of your private database.
- status String
- Webhosting network status (
disabled,disabling,enabledorenabling)
- enabled boolean
- Allow the OVHcloud webhosting network to connect to the private database. Values can be
trueorfalse - service
Name string - The internal name of your private database.
- status string
- Webhosting network status (
disabled,disabling,enabledorenabling)
- enabled bool
- Allow the OVHcloud webhosting network to connect to the private database. Values can be
trueorfalse - service_
name str - The internal name of your private database.
- status str
- Webhosting network status (
disabled,disabling,enabledorenabling)
- enabled Boolean
- Allow the OVHcloud webhosting network to connect to the private database. Values can be
trueorfalse - service
Name String - The internal name of your private database.
- status String
- Webhosting network status (
disabled,disabling,enabledorenabling)
Import
The webhosting network access can be imported using the service_name. E.g.,
$ pulumi import ovh:index/hostingPrivatedatabaseWebhostingNetwork:HostingPrivatedatabaseWebhostingNetwork network service_name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
published on Friday, Sep 25, 2026 by OVHcloud