1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. getNetworkPrivate
OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud

ovh.CloudProject.getNetworkPrivate

Explore with Pulumi AI

ovh logo
OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud

    Get the details of a public cloud project private network.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    export = async () => {
        const privateNetworkPrivate = await ovh.CloudProject.getNetworkPrivate({
            serviceName: "XXXXXX",
            networkId: "XXX",
        });
        return {
            "private": privateNetworkPrivate,
        };
    }
    
    import pulumi
    import pulumi_ovh as ovh
    
    private_network_private = ovh.CloudProject.get_network_private(service_name="XXXXXX",
        network_id="XXX")
    pulumi.export("private", private_network_private)
    
    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 {
    		privateNetworkPrivate, err := CloudProject.GetNetworkPrivate(ctx, &cloudproject.GetNetworkPrivateArgs{
    			ServiceName: "XXXXXX",
    			NetworkId:   "XXX",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("private", privateNetworkPrivate)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var privateNetworkPrivate = Ovh.CloudProject.GetNetworkPrivate.Invoke(new()
        {
            ServiceName = "XXXXXX",
            NetworkId = "XXX",
        });
    
        return new Dictionary<string, object?>
        {
            ["private"] = privateNetworkPrivate,
        };
    });
    
    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 privateNetworkPrivate = CloudProjectFunctions.getNetworkPrivate(GetNetworkPrivateArgs.builder()
                .serviceName("XXXXXX")
                .networkId("XXX")
                .build());
    
            ctx.export("private", privateNetworkPrivate.applyValue(getNetworkPrivateResult -> getNetworkPrivateResult));
        }
    }
    
    variables:
      privateNetworkPrivate:
        fn::invoke:
          Function: ovh:CloudProject:getNetworkPrivate
          Arguments:
            serviceName: XXXXXX
            networkId: XXX
    outputs:
      private: ${privateNetworkPrivate}
    

    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 GetNetworkPrivate(ctx *Context, args *GetNetworkPrivateArgs, opts ...InvokeOption) (*GetNetworkPrivateResult, error)
    func GetNetworkPrivateOutput(ctx *Context, args *GetNetworkPrivateOutputArgs, opts ...InvokeOption) GetNetworkPrivateResultOutput

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

    The following arguments are supported:

    NetworkId string
    ID of the network
    ServiceName string
    The ID of the public cloud project.
    NetworkId string
    ID of the network
    ServiceName string
    The ID of the public cloud project.
    networkId String
    ID of the network
    serviceName String
    The ID of the public cloud project.
    networkId string
    ID of the network
    serviceName 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.
    networkId String
    ID of the network
    serviceName 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
    NetworkId string
    ID of the network
    Regions List<GetNetworkPrivateRegion>
    Information about the private network in the openstack region
    ServiceName string
    ID of the public cloud project
    Status string
    Status of the network
    Type string
    Type of the network
    VlanId double
    VLAN ID of the network
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the network
    NetworkId string
    ID of the network
    Regions []GetNetworkPrivateRegion
    Information about the private network in the openstack region
    ServiceName string
    ID of the public cloud project
    Status string
    Status of the network
    Type string
    Type of the network
    VlanId float64
    VLAN ID of the network
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the network
    networkId String
    ID of the network
    regions List<GetNetworkPrivateRegion>
    Information about the private network in the openstack region
    serviceName String
    ID of the public cloud project
    status String
    Status of the network
    type String
    Type of the network
    vlanId Double
    VLAN ID of the network
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the network
    networkId string
    ID of the network
    regions GetNetworkPrivateRegion[]
    Information about the private network in the openstack region
    serviceName string
    ID of the public cloud project
    status string
    Status of the network
    type string
    Type of the network
    vlanId 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[cloudproject.GetNetworkPrivateRegion]
    Information about the private network in the openstack region
    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
    networkId String
    ID of the network
    regions List<Property Map>
    Information about the private network in the openstack region
    serviceName String
    ID of the public cloud project
    status String
    Status of the network
    type String
    Type of the network
    vlanId Number
    VLAN ID of the network

    Supporting Types

    GetNetworkPrivateRegion

    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 v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud