1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getNetworkingNetworkV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getNetworkingNetworkV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 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 dictionary

    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
    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
    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
    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
    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
    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
    tenantId String
    The owner of the network.

    getNetworkingNetworkV2 Result

    The following output properties are available:

    AdminStateUp string
    The administrative state of the network.
    Id string
    Region string
    Shared string
    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
    The administrative state of the network.
    Id string
    Region string
    Shared string
    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
    The administrative state of the network.
    id String
    region String
    shared String
    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
    The administrative state of the network.
    id string
    region string
    shared string
    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
    The administrative state of the network.
    id str
    region str
    shared str
    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
    The administrative state of the network.
    id String
    region String
    shared String
    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
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud