1. Packages
  2. Vkcs Provider
  3. API Docs
  4. getNetworkingNetwork
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.getNetworkingNetwork

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const extnet = vkcs.getNetworkingNetwork({
        name: "internet",
    });
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    extnet = vkcs.get_networking_network(name="internet")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vkcs.LookupNetworkingNetwork(ctx, &vkcs.LookupNetworkingNetworkArgs{
    			Name: pulumi.StringRef("internet"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var extnet = Vkcs.GetNetworkingNetwork.Invoke(new()
        {
            Name = "internet",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.VkcsFunctions;
    import com.pulumi.vkcs.inputs.GetNetworkingNetworkArgs;
    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 extnet = VkcsFunctions.getNetworkingNetwork(GetNetworkingNetworkArgs.builder()
                .name("internet")
                .build());
    
        }
    }
    
    variables:
      extnet:
        fn::invoke:
          function: vkcs:getNetworkingNetwork
          arguments:
            name: internet
    

    Using getNetworkingNetwork

    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 getNetworkingNetwork(args: GetNetworkingNetworkArgs, opts?: InvokeOptions): Promise<GetNetworkingNetworkResult>
    function getNetworkingNetworkOutput(args: GetNetworkingNetworkOutputArgs, opts?: InvokeOptions): Output<GetNetworkingNetworkResult>
    def get_networking_network(description: Optional[str] = None,
                               external: Optional[bool] = None,
                               id: Optional[str] = None,
                               matching_subnet_cidr: Optional[str] = None,
                               name: Optional[str] = None,
                               network_id: Optional[str] = None,
                               region: Optional[str] = None,
                               sdn: Optional[str] = None,
                               status: Optional[str] = None,
                               tags: Optional[Sequence[str]] = None,
                               tenant_id: Optional[str] = None,
                               vkcs_services_access: Optional[bool] = None,
                               opts: Optional[InvokeOptions] = None) -> GetNetworkingNetworkResult
    def get_networking_network_output(description: Optional[pulumi.Input[str]] = None,
                               external: Optional[pulumi.Input[bool]] = None,
                               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,
                               sdn: Optional[pulumi.Input[str]] = None,
                               status: Optional[pulumi.Input[str]] = None,
                               tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                               tenant_id: Optional[pulumi.Input[str]] = None,
                               vkcs_services_access: Optional[pulumi.Input[bool]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetNetworkingNetworkResult]
    func LookupNetworkingNetwork(ctx *Context, args *LookupNetworkingNetworkArgs, opts ...InvokeOption) (*LookupNetworkingNetworkResult, error)
    func LookupNetworkingNetworkOutput(ctx *Context, args *LookupNetworkingNetworkOutputArgs, opts ...InvokeOption) LookupNetworkingNetworkResultOutput

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

    public static class GetNetworkingNetwork 
    {
        public static Task<GetNetworkingNetworkResult> InvokeAsync(GetNetworkingNetworkArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkingNetworkResult> Invoke(GetNetworkingNetworkInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkingNetworkResult> getNetworkingNetwork(GetNetworkingNetworkArgs args, InvokeOptions options)
    public static Output<GetNetworkingNetworkResult> getNetworkingNetwork(GetNetworkingNetworkArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vkcs:index/getNetworkingNetwork:getNetworkingNetwork
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Description string
    optional string → Human-readable description of the network.
    External bool
    optional boolean → The external routing facility of the network.
    Id string
    optional string → The ID of the network.
    MatchingSubnetCidr string
    optional string → The CIDR of a subnet within the network.
    Name string
    optional string → The name of the network.
    NetworkId string
    optional deprecated string → The ID of the network. Deprecated This argument is deprecated, please, use the id attribute instead.

    Deprecated: Deprecated

    Region string
    optional string → The region in which to obtain the Network client. A Network client is needed to retrieve networks ids. If omitted, the region argument of the provider is used.
    Sdn string
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
    Status string
    optional string → The status of the network.
    Tags List<string>
    optional set of string → The list of network tags to filter.
    TenantId string
    optional string → The owner of the network.
    VkcsServicesAccess bool
    optional boolean → Specifies whether VKCS services access is enabled.
    Description string
    optional string → Human-readable description of the network.
    External bool
    optional boolean → The external routing facility of the network.
    Id string
    optional string → The ID of the network.
    MatchingSubnetCidr string
    optional string → The CIDR of a subnet within the network.
    Name string
    optional string → The name of the network.
    NetworkId string
    optional deprecated string → The ID of the network. Deprecated This argument is deprecated, please, use the id attribute instead.

    Deprecated: Deprecated

    Region string
    optional string → The region in which to obtain the Network client. A Network client is needed to retrieve networks ids. If omitted, the region argument of the provider is used.
    Sdn string
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
    Status string
    optional string → The status of the network.
    Tags []string
    optional set of string → The list of network tags to filter.
    TenantId string
    optional string → The owner of the network.
    VkcsServicesAccess bool
    optional boolean → Specifies whether VKCS services access is enabled.
    description String
    optional string → Human-readable description of the network.
    external Boolean
    optional boolean → The external routing facility of the network.
    id String
    optional string → The ID of the network.
    matchingSubnetCidr String
    optional string → The CIDR of a subnet within the network.
    name String
    optional string → The name of the network.
    networkId String
    optional deprecated string → The ID of the network. Deprecated This argument is deprecated, please, use the id attribute instead.

    Deprecated: Deprecated

    region String
    optional string → The region in which to obtain the Network client. A Network client is needed to retrieve networks ids. If omitted, the region argument of the provider is used.
    sdn String
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
    status String
    optional string → The status of the network.
    tags List<String>
    optional set of string → The list of network tags to filter.
    tenantId String
    optional string → The owner of the network.
    vkcsServicesAccess Boolean
    optional boolean → Specifies whether VKCS services access is enabled.
    description string
    optional string → Human-readable description of the network.
    external boolean
    optional boolean → The external routing facility of the network.
    id string
    optional string → The ID of the network.
    matchingSubnetCidr string
    optional string → The CIDR of a subnet within the network.
    name string
    optional string → The name of the network.
    networkId string
    optional deprecated string → The ID of the network. Deprecated This argument is deprecated, please, use the id attribute instead.

    Deprecated: Deprecated

    region string
    optional string → The region in which to obtain the Network client. A Network client is needed to retrieve networks ids. If omitted, the region argument of the provider is used.
    sdn string
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
    status string
    optional string → The status of the network.
    tags string[]
    optional set of string → The list of network tags to filter.
    tenantId string
    optional string → The owner of the network.
    vkcsServicesAccess boolean
    optional boolean → Specifies whether VKCS services access is enabled.
    description str
    optional string → Human-readable description of the network.
    external bool
    optional boolean → The external routing facility of the network.
    id str
    optional string → The ID of the network.
    matching_subnet_cidr str
    optional string → The CIDR of a subnet within the network.
    name str
    optional string → The name of the network.
    network_id str
    optional deprecated string → The ID of the network. Deprecated This argument is deprecated, please, use the id attribute instead.

    Deprecated: Deprecated

    region str
    optional string → The region in which to obtain the Network client. A Network client is needed to retrieve networks ids. If omitted, the region argument of the provider is used.
    sdn str
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
    status str
    optional string → The status of the network.
    tags Sequence[str]
    optional set of string → The list of network tags to filter.
    tenant_id str
    optional string → The owner of the network.
    vkcs_services_access bool
    optional boolean → Specifies whether VKCS services access is enabled.
    description String
    optional string → Human-readable description of the network.
    external Boolean
    optional boolean → The external routing facility of the network.
    id String
    optional string → The ID of the network.
    matchingSubnetCidr String
    optional string → The CIDR of a subnet within the network.
    name String
    optional string → The name of the network.
    networkId String
    optional deprecated string → The ID of the network. Deprecated This argument is deprecated, please, use the id attribute instead.

    Deprecated: Deprecated

    region String
    optional string → The region in which to obtain the Network client. A Network client is needed to retrieve networks ids. If omitted, the region argument of the provider is used.
    sdn String
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
    status String
    optional string → The status of the network.
    tags List<String>
    optional set of string → The list of network tags to filter.
    tenantId String
    optional string → The owner of the network.
    vkcsServicesAccess Boolean
    optional boolean → Specifies whether VKCS services access is enabled.

    getNetworkingNetwork Result

    The following output properties are available:

    AdminStateUp string
    string → The administrative state of the network.
    AllTags List<string>
    set of string → The set of string tags applied on the network.
    Id string
    NetworkId string

    Deprecated: Deprecated

    PrivateDnsDomain string
    string → Private dns domain name
    Region string
    Shared string
    string → Specifies whether the network resource can be accessed by any tenant or not.
    Subnets List<string>
    string → A list of subnet IDs belonging to the network.
    Description string
    External bool
    MatchingSubnetCidr string
    Name string
    Sdn string
    Status string
    Tags List<string>
    TenantId string
    VkcsServicesAccess bool
    AdminStateUp string
    string → The administrative state of the network.
    AllTags []string
    set of string → The set of string tags applied on the network.
    Id string
    NetworkId string

    Deprecated: Deprecated

    PrivateDnsDomain string
    string → Private dns domain name
    Region string
    Shared string
    string → Specifies whether the network resource can be accessed by any tenant or not.
    Subnets []string
    string → A list of subnet IDs belonging to the network.
    Description string
    External bool
    MatchingSubnetCidr string
    Name string
    Sdn string
    Status string
    Tags []string
    TenantId string
    VkcsServicesAccess bool
    adminStateUp String
    string → The administrative state of the network.
    allTags List<String>
    set of string → The set of string tags applied on the network.
    id String
    networkId String

    Deprecated: Deprecated

    privateDnsDomain String
    string → Private dns domain name
    region String
    shared String
    string → Specifies whether the network resource can be accessed by any tenant or not.
    subnets List<String>
    string → A list of subnet IDs belonging to the network.
    description String
    external Boolean
    matchingSubnetCidr String
    name String
    sdn String
    status String
    tags List<String>
    tenantId String
    vkcsServicesAccess Boolean
    adminStateUp string
    string → The administrative state of the network.
    allTags string[]
    set of string → The set of string tags applied on the network.
    id string
    networkId string

    Deprecated: Deprecated

    privateDnsDomain string
    string → Private dns domain name
    region string
    shared string
    string → Specifies whether the network resource can be accessed by any tenant or not.
    subnets string[]
    string → A list of subnet IDs belonging to the network.
    description string
    external boolean
    matchingSubnetCidr string
    name string
    sdn string
    status string
    tags string[]
    tenantId string
    vkcsServicesAccess boolean
    admin_state_up str
    string → The administrative state of the network.
    all_tags Sequence[str]
    set of string → The set of string tags applied on the network.
    id str
    network_id str

    Deprecated: Deprecated

    private_dns_domain str
    string → Private dns domain name
    region str
    shared str
    string → Specifies whether the network resource can be accessed by any tenant or not.
    subnets Sequence[str]
    string → A list of subnet IDs belonging to the network.
    description str
    external bool
    matching_subnet_cidr str
    name str
    sdn str
    status str
    tags Sequence[str]
    tenant_id str
    vkcs_services_access bool
    adminStateUp String
    string → The administrative state of the network.
    allTags List<String>
    set of string → The set of string tags applied on the network.
    id String
    networkId String

    Deprecated: Deprecated

    privateDnsDomain String
    string → Private dns domain name
    region String
    shared String
    string → Specifies whether the network resource can be accessed by any tenant or not.
    subnets List<String>
    string → A list of subnet IDs belonging to the network.
    description String
    external Boolean
    matchingSubnetCidr String
    name String
    sdn String
    status String
    tags List<String>
    tenantId String
    vkcsServicesAccess Boolean

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs