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
Get the details of a public cloud project private network.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
export = async () => {
const _private = await ovh.CloudProject.getNetworkPrivate({
serviceName: "XXXXXX",
networkId: "XXX",
});
return {
"private": _private,
};
}
import pulumi
import pulumi_ovh as ovh
private = ovh.CloudProject.get_network_private(service_name="XXXXXX",
network_id="XXX")
pulumi.export("private", private)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
private, err := cloudproject.GetNetworkPrivate(ctx, &cloudproject.GetNetworkPrivateArgs{
ServiceName: "XXXXXX",
NetworkId: "XXX",
}, nil)
if err != nil {
return err
}
ctx.Export("private", private)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var @private = Ovh.CloudProject.GetNetworkPrivate.Invoke(new()
{
ServiceName = "XXXXXX",
NetworkId = "XXX",
});
return new Dictionary<string, object?>
{
["private"] = @private,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
import com.pulumi.ovh.CloudProject.inputs.GetNetworkPrivateArgs;
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 private = CloudProjectFunctions.getNetworkPrivate(GetNetworkPrivateArgs.builder()
.serviceName("XXXXXX")
.networkId("XXX")
.build());
ctx.export("private", private_);
}
}
variables:
private:
fn::invoke:
function: ovh:CloudProject:getNetworkPrivate
arguments:
serviceName: XXXXXX
networkId: XXX
outputs:
private: ${private}
Using getNetworkPrivate
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 getNetworkPrivate(args: GetNetworkPrivateArgs, opts?: InvokeOptions): Promise<GetNetworkPrivateResult>
function getNetworkPrivateOutput(args: GetNetworkPrivateOutputArgs, opts?: InvokeOptions): Output<GetNetworkPrivateResult>def get_network_private(network_id: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkPrivateResult
def get_network_private_output(network_id: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkPrivateResult]func LookupNetworkPrivate(ctx *Context, args *LookupNetworkPrivateArgs, opts ...InvokeOption) (*LookupNetworkPrivateResult, error)
func LookupNetworkPrivateOutput(ctx *Context, args *LookupNetworkPrivateOutputArgs, opts ...InvokeOption) LookupNetworkPrivateResultOutput> Note: This function is named LookupNetworkPrivate in the Go SDK.
public static class GetNetworkPrivate
{
public static Task<GetNetworkPrivateResult> InvokeAsync(GetNetworkPrivateArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkPrivateResult> Invoke(GetNetworkPrivateInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkPrivateResult> getNetworkPrivate(GetNetworkPrivateArgs args, InvokeOptions options)
public static Output<GetNetworkPrivateResult> getNetworkPrivate(GetNetworkPrivateArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProject/getNetworkPrivate:getNetworkPrivate
arguments:
# arguments dictionaryThe following arguments are supported:
- Network
Id string - ID of the network
- Service
Name string - The ID of the public cloud project.
- Network
Id string - ID of the network
- Service
Name string - The ID of the public cloud project.
- network
Id String - ID of the network
- service
Name String - The ID of the public cloud project.
- network
Id string - ID of the network
- service
Name string - The ID of the public cloud project.
- network_
id str - ID of the network
- service_
name str - The ID of the public cloud project.
- network
Id String - ID of the network
- service
Name String - The ID of the public cloud project.
getNetworkPrivate Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the network
- Network
Id string - ID of the network
- Regions
List<Get
Network Private Region> - Information about the private network in the openstack region
- Regions
Openstack Dictionary<string, string>Ids - A map with region name as key, and region-specific openstack id as value
- Service
Name string - ID of the public cloud project
- Status string
- Status of the network
- Type string
- Type of the network
- Vlan
Id double - VLAN ID of the network
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the network
- Network
Id string - ID of the network
- Regions
[]Get
Network Private Region - Information about the private network in the openstack region
- Regions
Openstack map[string]stringIds - A map with region name as key, and region-specific openstack id as value
- Service
Name string - ID of the public cloud project
- Status string
- Status of the network
- Type string
- Type of the network
- Vlan
Id float64 - VLAN ID of the network
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the network
- network
Id String - ID of the network
- regions
List<Get
Network Private Region> - Information about the private network in the openstack region
- regions
Openstack Map<String,String>Ids - A map with region name as key, and region-specific openstack id as value
- service
Name String - ID of the public cloud project
- status String
- Status of the network
- type String
- Type of the network
- vlan
Id Double - VLAN ID of the network
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the network
- network
Id string - ID of the network
- regions
Get
Network Private Region[] - Information about the private network in the openstack region
- regions
Openstack {[key: string]: string}Ids - A map with region name as key, and region-specific openstack id as value
- service
Name string - ID of the public cloud project
- status string
- Status of the network
- type string
- Type of the network
- vlan
Id number - VLAN ID of the network
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the network
- network_
id str - ID of the network
- regions
Sequence[Get
Network Private Region] - Information about the private network in the openstack region
- regions_
openstack_ Mapping[str, str]ids - A map with region name as key, and region-specific openstack id as value
- service_
name str - ID of the public cloud project
- status str
- Status of the network
- type str
- Type of the network
- vlan_
id float - VLAN ID of the network
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the network
- network
Id String - ID of the network
- regions List<Property Map>
- Information about the private network in the openstack region
- regions
Openstack Map<String>Ids - A map with region name as key, and region-specific openstack id as value
- service
Name String - ID of the public cloud project
- status String
- Status of the network
- type String
- Type of the network
- vlan
Id Number - VLAN ID of the network
Supporting Types
GetNetworkPrivateRegion
- Openstack
Id string - Network ID on openstack region
- Region string
- Name of the region
- Status string
- Status of the network
- Openstack
Id string - Network ID on openstack region
- Region string
- Name of the region
- Status string
- Status of the network
- openstack
Id String - Network ID on openstack region
- region String
- Name of the region
- status String
- Status of the network
- openstack
Id string - Network ID on openstack region
- region string
- Name of the region
- status string
- Status of the network
- openstack_
id str - Network ID on openstack region
- region str
- Name of the region
- status str
- Status of the network
- openstack
Id String - Network ID on openstack region
- region String
- Name of the region
- status String
- Status of the network
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
