1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getNetworkingNetworkV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getNetworkingNetworkV2

Explore with Pulumi AI

flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

Use this data source to get the ID of an available FlexibleEngine network.

!> Warning: It has been deprecated, using data.flexibleengine_vpc_subnet_v1 instead.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const network = flexibleengine.getNetworkingNetworkV2({
    name: "tf_test_network",
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

network = flexibleengine.get_networking_network_v2(name="tf_test_network")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := flexibleengine.LookupNetworkingNetworkV2(ctx, &flexibleengine.LookupNetworkingNetworkV2Args{
			Name: pulumi.StringRef("tf_test_network"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var network = Flexibleengine.GetNetworkingNetworkV2.Invoke(new()
    {
        Name = "tf_test_network",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetNetworkingNetworkV2Args;
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 network = FlexibleengineFunctions.getNetworkingNetworkV2(GetNetworkingNetworkV2Args.builder()
            .name("tf_test_network")
            .build());

    }
}
Copy
variables:
  network:
    fn::invoke:
      function: flexibleengine:getNetworkingNetworkV2
      arguments:
        name: tf_test_network
Copy

Using getNetworkingNetworkV2

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 getNetworkingNetworkV2(args: GetNetworkingNetworkV2Args, opts?: InvokeOptions): Promise<GetNetworkingNetworkV2Result>
function getNetworkingNetworkV2Output(args: GetNetworkingNetworkV2OutputArgs, opts?: InvokeOptions): Output<GetNetworkingNetworkV2Result>
Copy
def get_networking_network_v2(id: Optional[str] = None,
                              matching_subnet_cidr: Optional[str] = None,
                              name: Optional[str] = None,
                              network_id: Optional[str] = None,
                              region: Optional[str] = None,
                              tenant_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetNetworkingNetworkV2Result
def get_networking_network_v2_output(id: Optional[pulumi.Input[str]] = None,
                              matching_subnet_cidr: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              network_id: Optional[pulumi.Input[str]] = None,
                              region: Optional[pulumi.Input[str]] = None,
                              tenant_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetNetworkingNetworkV2Result]
Copy
func LookupNetworkingNetworkV2(ctx *Context, args *LookupNetworkingNetworkV2Args, opts ...InvokeOption) (*LookupNetworkingNetworkV2Result, error)
func LookupNetworkingNetworkV2Output(ctx *Context, args *LookupNetworkingNetworkV2OutputArgs, opts ...InvokeOption) LookupNetworkingNetworkV2ResultOutput
Copy

> Note: This function is named LookupNetworkingNetworkV2 in the Go SDK.

public static class GetNetworkingNetworkV2 
{
    public static Task<GetNetworkingNetworkV2Result> InvokeAsync(GetNetworkingNetworkV2Args args, InvokeOptions? opts = null)
    public static Output<GetNetworkingNetworkV2Result> Invoke(GetNetworkingNetworkV2InvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNetworkingNetworkV2Result> getNetworkingNetworkV2(GetNetworkingNetworkV2Args args, InvokeOptions options)
public static Output<GetNetworkingNetworkV2Result> getNetworkingNetworkV2(GetNetworkingNetworkV2Args args, InvokeOptions options)
Copy
fn::invoke:
  function: flexibleengine:index/getNetworkingNetworkV2:getNetworkingNetworkV2
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id string
MatchingSubnetCidr string
The CIDR of a subnet within the network.
Name string
The name of the network.
NetworkId string
The ID of the network.
Region string
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve networks ids. If omitted, the region argument of the provider is used.
TenantId string
The owner of the network.
Id string
MatchingSubnetCidr string
The CIDR of a subnet within the network.
Name string
The name of the network.
NetworkId string
The ID of the network.
Region string
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve networks ids. If omitted, the region argument of the provider is used.
TenantId string
The owner of the network.
id String
matchingSubnetCidr String
The CIDR of a subnet within the network.
name String
The name of the network.
networkId String
The ID of the network.
region String
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve networks ids. If omitted, the region argument of the provider is used.
tenantId String
The owner of the network.
id string
matchingSubnetCidr string
The CIDR of a subnet within the network.
name string
The name of the network.
networkId string
The ID of the network.
region string
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve networks ids. If omitted, the region argument of the provider is used.
tenantId string
The owner of the network.
id str
matching_subnet_cidr str
The CIDR of a subnet within the network.
name str
The name of the network.
network_id str
The ID of the network.
region str
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve networks ids. If omitted, the region argument of the provider is used.
tenant_id str
The owner of the network.
id String
matchingSubnetCidr String
The CIDR of a subnet within the network.
name String
The name of the network.
networkId String
The ID of the network.
region String
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve networks ids. If omitted, the region argument of the provider is used.
tenantId String
The owner of the network.

getNetworkingNetworkV2 Result

The following output properties are available:

AdminStateUp string
(Optional) The administrative state of the network.
Id string
Region string
See Argument Reference above.
Shared string
(Optional) Specifies whether the network resource can be accessed by any tenant or not.
MatchingSubnetCidr string
Name string
See Argument Reference above.
NetworkId string
TenantId string
AdminStateUp string
(Optional) The administrative state of the network.
Id string
Region string
See Argument Reference above.
Shared string
(Optional) Specifies whether the network resource can be accessed by any tenant or not.
MatchingSubnetCidr string
Name string
See Argument Reference above.
NetworkId string
TenantId string
adminStateUp String
(Optional) The administrative state of the network.
id String
region String
See Argument Reference above.
shared String
(Optional) Specifies whether the network resource can be accessed by any tenant or not.
matchingSubnetCidr String
name String
See Argument Reference above.
networkId String
tenantId String
adminStateUp string
(Optional) The administrative state of the network.
id string
region string
See Argument Reference above.
shared string
(Optional) Specifies whether the network resource can be accessed by any tenant or not.
matchingSubnetCidr string
name string
See Argument Reference above.
networkId string
tenantId string
admin_state_up str
(Optional) The administrative state of the network.
id str
region str
See Argument Reference above.
shared str
(Optional) Specifies whether the network resource can be accessed by any tenant or not.
matching_subnet_cidr str
name str
See Argument Reference above.
network_id str
tenant_id str
adminStateUp String
(Optional) The administrative state of the network.
id String
region String
See Argument Reference above.
shared String
(Optional) Specifies whether the network resource can be accessed by any tenant or not.
matchingSubnetCidr String
name String
See Argument Reference above.
networkId String
tenantId String

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud