opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getNetworkingNetworkV2
Explore with Pulumi AI
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 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:
- Admin
State 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.
- Matching
Subnet stringCidr - Name string
- See Argument Reference above.
- Network
Id string - Tenant
Id string
- Admin
State 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.
- Matching
Subnet stringCidr - Name string
- See Argument Reference above.
- Network
Id string - Tenant
Id string
- admin
State 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.
- matching
Subnet StringCidr - name String
- See Argument Reference above.
- network
Id String - tenant
Id String
- admin
State 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.
- matching
Subnet stringCidr - name string
- See Argument Reference above.
- network
Id string - tenant
Id 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
- admin
State 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.
- matching
Subnet StringCidr - name String
- See Argument Reference above.
- network
Id String - tenant
Id String
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud