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
List public cloud project private networks.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
export = async () => {
const _private = await ovh.CloudProject.getNetworkPrivates({
serviceName: "XXXXXX",
});
return {
"private": _private,
};
}
import pulumi
import pulumi_ovh as ovh
private = ovh.CloudProject.get_network_privates(service_name="XXXXXX")
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.GetNetworkPrivates(ctx, &cloudproject.GetNetworkPrivatesArgs{
ServiceName: "XXXXXX",
}, 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.GetNetworkPrivates.Invoke(new()
{
ServiceName = "XXXXXX",
});
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.GetNetworkPrivatesArgs;
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.getNetworkPrivates(GetNetworkPrivatesArgs.builder()
.serviceName("XXXXXX")
.build());
ctx.export("private", private_);
}
}
variables:
private:
fn::invoke:
function: ovh:CloudProject:getNetworkPrivates
arguments:
serviceName: XXXXXX
outputs:
private: ${private}
Using getNetworkPrivates
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 getNetworkPrivates(args: GetNetworkPrivatesArgs, opts?: InvokeOptions): Promise<GetNetworkPrivatesResult>
function getNetworkPrivatesOutput(args: GetNetworkPrivatesOutputArgs, opts?: InvokeOptions): Output<GetNetworkPrivatesResult>def get_network_privates(service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkPrivatesResult
def get_network_privates_output(service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkPrivatesResult]func GetNetworkPrivates(ctx *Context, args *GetNetworkPrivatesArgs, opts ...InvokeOption) (*GetNetworkPrivatesResult, error)
func GetNetworkPrivatesOutput(ctx *Context, args *GetNetworkPrivatesOutputArgs, opts ...InvokeOption) GetNetworkPrivatesResultOutput> Note: This function is named GetNetworkPrivates in the Go SDK.
public static class GetNetworkPrivates
{
public static Task<GetNetworkPrivatesResult> InvokeAsync(GetNetworkPrivatesArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkPrivatesResult> Invoke(GetNetworkPrivatesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkPrivatesResult> getNetworkPrivates(GetNetworkPrivatesArgs args, InvokeOptions options)
public static Output<GetNetworkPrivatesResult> getNetworkPrivates(GetNetworkPrivatesArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProject/getNetworkPrivates:getNetworkPrivates
arguments:
# arguments dictionaryThe following arguments are supported:
- Service
Name string - The ID of the public cloud project.
- Service
Name string - The ID of the public cloud project.
- service
Name String - The ID of the public cloud project.
- service
Name string - The ID of the public cloud project.
- service_
name str - The ID of the public cloud project.
- service
Name String - The ID of the public cloud project.
getNetworkPrivates Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Networks
List<Get
Network Privates Network> - List of network
- Service
Name string - ID of the public cloud project
- Id string
- The provider-assigned unique ID for this managed resource.
- Networks
[]Get
Network Privates Network - List of network
- Service
Name string - ID of the public cloud project
- id String
- The provider-assigned unique ID for this managed resource.
- networks
List<Get
Network Privates Network> - List of network
- service
Name String - ID of the public cloud project
- id string
- The provider-assigned unique ID for this managed resource.
- networks
Get
Network Privates Network[] - List of network
- service
Name string - ID of the public cloud project
- id str
- The provider-assigned unique ID for this managed resource.
- networks
Sequence[Get
Network Privates Network] - List of network
- service_
name str - ID of the public cloud project
- id String
- The provider-assigned unique ID for this managed resource.
- networks List<Property Map>
- List of network
- service
Name String - ID of the public cloud project
Supporting Types
GetNetworkPrivatesNetwork
GetNetworkPrivatesNetworkRegion
- 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
