opentelekomcloud 1.36.38 published on Friday, May 9, 2025 by opentelekomcloud
opentelekomcloud.getNetworkingNetworkV2
Explore with Pulumi AI
opentelekomcloud 1.36.38 published on Friday, May 9, 2025 by opentelekomcloud
Up-to-date reference of API arguments for Network you can get at documentation portal
Use this data source to get the ID of an available OpenTelekomCloud network.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const network = opentelekomcloud.getNetworkingNetworkV2({
    name: "tf_test_network",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
network = opentelekomcloud.get_networking_network_v2(name="tf_test_network")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opentelekomcloud.LookupNetworkingNetworkV2(ctx, &opentelekomcloud.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 Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() => 
{
    var network = Opentelekomcloud.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.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.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 = OpentelekomcloudFunctions.getNetworkingNetworkV2(GetNetworkingNetworkV2Args.builder()
            .name("tf_test_network")
            .build());
    }
}
variables:
  network:
    fn::invoke:
      function: opentelekomcloud: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: opentelekomcloud:index/getNetworkingNetworkV2:getNetworkingNetworkV2
  arguments:
    # arguments dictionaryThe following arguments are supported:
- 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
- tenant_id str
- The owner of the network.
getNetworkingNetworkV2 Result
The following output properties are available:
- AdminState stringUp 
- The administrative state of the network.
- Id string
- Region string
- string
- Specifies whether the network resource can be accessed by any tenant or not.
- MatchingSubnet stringCidr 
- Name string
- See Argument Reference above.
- NetworkId string
- TenantId string
- AdminState stringUp 
- The administrative state of the network.
- Id string
- Region string
- string
- Specifies whether the network resource can be accessed by any tenant or not.
- MatchingSubnet stringCidr 
- Name string
- See Argument Reference above.
- NetworkId string
- TenantId string
- adminState StringUp 
- The administrative state of the network.
- id String
- region String
- String
- Specifies whether the network resource can be accessed by any tenant or not.
- matchingSubnet StringCidr 
- name String
- See Argument Reference above.
- networkId String
- tenantId String
- adminState stringUp 
- The administrative state of the network.
- id string
- region string
- string
- Specifies whether the network resource can be accessed by any tenant or not.
- matchingSubnet stringCidr 
- name string
- See Argument Reference above.
- networkId string
- tenantId string
- admin_state_ strup 
- The administrative state of the network.
- id str
- region str
- str
- 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
- adminState StringUp 
- The administrative state of the network.
- id String
- region String
- String
- Specifies whether the network resource can be accessed by any tenant or not.
- matchingSubnet StringCidr 
- name String
- See Argument Reference above.
- networkId String
- tenantId String
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the opentelekomcloudTerraform Provider.
opentelekomcloud 1.36.38 published on Friday, May 9, 2025 by opentelekomcloud