1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. getNetworkPrivates
OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud

ovh.CloudProject.getNetworkPrivates

Explore with Pulumi AI

ovh logo
OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud

    List public cloud project private networks.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    export = async () => {
        const privateNetworkPrivates = await ovh.CloudProject.getNetworkPrivates({
            serviceName: "XXXXXX",
        });
        return {
            "private": privateNetworkPrivates,
        };
    }
    
    import pulumi
    import pulumi_ovh as ovh
    
    private_network_privates = ovh.CloudProject.get_network_privates(service_name="XXXXXX")
    pulumi.export("private", private_network_privates)
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/CloudProject"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		privateNetworkPrivates, err := CloudProject.GetNetworkPrivates(ctx, &cloudproject.GetNetworkPrivatesArgs{
    			ServiceName: "XXXXXX",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("private", privateNetworkPrivates)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var privateNetworkPrivates = Ovh.CloudProject.GetNetworkPrivates.Invoke(new()
        {
            ServiceName = "XXXXXX",
        });
    
        return new Dictionary<string, object?>
        {
            ["private"] = privateNetworkPrivates,
        };
    });
    
    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 privateNetworkPrivates = CloudProjectFunctions.getNetworkPrivates(GetNetworkPrivatesArgs.builder()
                .serviceName("XXXXXX")
                .build());
    
            ctx.export("private", privateNetworkPrivates.applyValue(getNetworkPrivatesResult -> getNetworkPrivatesResult));
        }
    }
    
    variables:
      privateNetworkPrivates:
        fn::invoke:
          Function: ovh:CloudProject:getNetworkPrivates
          Arguments:
            serviceName: XXXXXX
    outputs:
      private: ${privateNetworkPrivates}
    

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:CloudProject/getNetworkPrivates:getNetworkPrivates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceName string
    The ID of the public cloud project.
    ServiceName string
    The ID of the public cloud project.
    serviceName String
    The ID of the public cloud project.
    serviceName string
    The ID of the public cloud project.
    service_name str
    The ID of the public cloud project.
    serviceName 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<GetNetworkPrivatesNetwork>
    List of network
    ServiceName string
    ID of the public cloud project
    Id string
    The provider-assigned unique ID for this managed resource.
    Networks []GetNetworkPrivatesNetwork
    List of network
    ServiceName string
    ID of the public cloud project
    id String
    The provider-assigned unique ID for this managed resource.
    networks List<GetNetworkPrivatesNetwork>
    List of network
    serviceName String
    ID of the public cloud project
    id string
    The provider-assigned unique ID for this managed resource.
    networks GetNetworkPrivatesNetwork[]
    List of network
    serviceName string
    ID of the public cloud project
    id str
    The provider-assigned unique ID for this managed resource.
    networks Sequence[cloudproject.GetNetworkPrivatesNetwork]
    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
    serviceName String
    ID of the public cloud project

    Supporting Types

    GetNetworkPrivatesNetwork

    Id string
    ID of the network
    Name string
    Name of the network
    Regions List<GetNetworkPrivatesNetworkRegion>
    Information about the private network in the openstack region
    Status string
    Status of the network
    Type string
    Type of the network
    VlanId double
    VLAN ID of the network
    Id string
    ID of the network
    Name string
    Name of the network
    Regions []GetNetworkPrivatesNetworkRegion
    Information about the private network in the openstack region
    Status string
    Status of the network
    Type string
    Type of the network
    VlanId float64
    VLAN ID of the network
    id String
    ID of the network
    name String
    Name of the network
    regions List<GetNetworkPrivatesNetworkRegion>
    Information about the private network in the openstack region
    status String
    Status of the network
    type String
    Type of the network
    vlanId Double
    VLAN ID of the network
    id string
    ID of the network
    name string
    Name of the network
    regions GetNetworkPrivatesNetworkRegion[]
    Information about the private network in the openstack region
    status string
    Status of the network
    type string
    Type of the network
    vlanId number
    VLAN ID of the network
    id str
    ID of the network
    name str
    Name of the network
    regions Sequence[cloudproject.GetNetworkPrivatesNetworkRegion]
    Information about the private network in the openstack region
    status str
    Status of the network
    type str
    Type of the network
    vlan_id float
    VLAN ID of the network
    id String
    ID of the network
    name String
    Name of the network
    regions List<Property Map>
    Information about the private network in the openstack region
    status String
    Status of the network
    type String
    Type of the network
    vlanId Number
    VLAN ID of the network

    GetNetworkPrivatesNetworkRegion

    OpenstackId string
    Network ID on openstack region
    Region string
    Name of the region
    Status string
    Status of the network
    OpenstackId string
    Network ID on openstack region
    Region string
    Name of the region
    Status string
    Status of the network
    openstackId String
    Network ID on openstack region
    region String
    Name of the region
    status String
    Status of the network
    openstackId 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
    openstackId 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 ovh Terraform Provider.
    ovh logo
    OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud