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",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
network = flexibleengine.get_networking_network_v2(name="tf_test_network")
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
})
}
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",
});
});
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());
}
}
variables:
network:
fn::invoke:
function: flexibleengine:getNetworkingNetworkV2
arguments:
name: tf_test_network
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>
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]
func LookupNetworkingNetworkV2(ctx *Context, args *LookupNetworkingNetworkV2Args, opts ...InvokeOption) (*LookupNetworkingNetworkV2Result, error)
func LookupNetworkingNetworkV2Output(ctx *Context, args *LookupNetworkingNetworkV2OutputArgs, opts ...InvokeOption) LookupNetworkingNetworkV2ResultOutput
> 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)
}
public static CompletableFuture<GetNetworkingNetworkV2Result> getNetworkingNetworkV2(GetNetworkingNetworkV2Args args, InvokeOptions options)
public static Output<GetNetworkingNetworkV2Result> getNetworkingNetworkV2(GetNetworkingNetworkV2Args args, InvokeOptions options)
fn::invoke:
function: flexibleengine:index/getNetworkingNetworkV2:getNetworkingNetworkV2
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Matching
Subnet stringCidr - The CIDR of a subnet within the network.
- Name string
- The name of the network.
- Network
Id 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. - Tenant
Id string - The owner of the network.
- Id string
- Matching
Subnet stringCidr - The CIDR of a subnet within the network.
- Name string
- The name of the network.
- Network
Id 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. - Tenant
Id string - The owner of the network.
- id String
- matching
Subnet StringCidr - The CIDR of a subnet within the network.
- name String
- The name of the network.
- network
Id 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. - tenant
Id String - The owner of the network.
- id string
- matching
Subnet stringCidr - The CIDR of a subnet within the network.
- name string
- The name of the network.
- network
Id 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. - tenant
Id string - The owner of the network.
- id str
- matching_
subnet_ strcidr - 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
- matching
Subnet StringCidr - The CIDR of a subnet within the network.
- name String
- The name of the network.
- network
Id 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. - tenant
Id String - The owner of the network.
getNetworkingNetworkV2 Result
The following output properties are available:
- Admin
State stringUp - (Optional) The administrative state of the network.
- Id string
- Region string
- See Argument Reference above.
- string
- (Optional) Specifies whether the network resource can be accessed by any tenant or not.
- Matching
Subnet stringCidr - Name string
- See Argument Reference above.
- Network
Id string - Tenant
Id string
- Admin
State stringUp - (Optional) The administrative state of the network.
- Id string
- Region string
- See Argument Reference above.
- string
- (Optional) Specifies whether the network resource can be accessed by any tenant or not.
- Matching
Subnet stringCidr - Name string
- See Argument Reference above.
- Network
Id string - Tenant
Id string
- admin
State StringUp - (Optional) The administrative state of the network.
- id String
- region String
- See Argument Reference above.
- String
- (Optional) Specifies whether the network resource can be accessed by any tenant or not.
- matching
Subnet StringCidr - name String
- See Argument Reference above.
- network
Id String - tenant
Id String
- admin
State stringUp - (Optional) The administrative state of the network.
- id string
- region string
- See Argument Reference above.
- string
- (Optional) Specifies whether the network resource can be accessed by any tenant or not.
- matching
Subnet stringCidr - name string
- See Argument Reference above.
- network
Id string - tenant
Id string
- admin_
state_ strup - (Optional) The administrative state of the network.
- id str
- region str
- See Argument Reference above.
- str
- (Optional) Specifies whether the network resource can be accessed by any tenant or not.
- matching_
subnet_ strcidr - name str
- See Argument Reference above.
- network_
id str - tenant_
id str
- admin
State StringUp - (Optional) The administrative state of the network.
- id String
- region String
- See Argument Reference above.
- String
- (Optional) Specifies whether the network resource can be accessed by any tenant or not.
- matching
Subnet StringCidr - name String
- See Argument Reference above.
- network
Id String - tenant
Id 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