OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud
ovh.CloudProject.getNetworkPrivate
Explore with Pulumi AI
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:
- 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
- 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
- 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
- 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
- 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[cloudproject.
Get Network Private Region] - 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
- network
Id String - ID of the network
- regions List<Property Map>
- Information about the private network in the openstack region
- 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
ovh
Terraform Provider.