1. Packages
  2. Packages
  3. Konnect Provider
  4. API Docs
  5. getCloudGatewayNetwork
Viewing docs for konnect 3.14.0
published on Friday, Apr 24, 2026 by kong
Viewing docs for konnect 3.14.0
published on Friday, Apr 24, 2026 by kong

    CloudGatewayNetwork DataSource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as konnect from "@pulumi/konnect";
    
    const myCloudgatewaynetwork = konnect.getCloudGatewayNetwork({
        filter: {
            name: {
                contains: "...my_contains...",
                eq: "...my_eq...",
                neq: "...my_neq...",
                ocontains: "...my_ocontains...",
                oeq: "...my_oeq...",
            },
            state: {
                oeq: "...my_oeq...",
            },
        },
    });
    
    import pulumi
    import pulumi_konnect as konnect
    
    my_cloudgatewaynetwork = konnect.get_cloud_gateway_network(filter={
        "name": {
            "contains": "...my_contains...",
            "eq": "...my_eq...",
            "neq": "...my_neq...",
            "ocontains": "...my_ocontains...",
            "oeq": "...my_oeq...",
        },
        "state": {
            "oeq": "...my_oeq...",
        },
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/konnect/v3/konnect"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := konnect.LookupCloudGatewayNetwork(ctx, &konnect.LookupCloudGatewayNetworkArgs{
    			Filter: konnect.GetCloudGatewayNetworkFilter{
    				Name: konnect.GetCloudGatewayNetworkFilterName{
    					Contains:  pulumi.StringRef("...my_contains..."),
    					Eq:        pulumi.StringRef("...my_eq..."),
    					Neq:       pulumi.StringRef("...my_neq..."),
    					Ocontains: pulumi.StringRef("...my_ocontains..."),
    					Oeq:       pulumi.StringRef("...my_oeq..."),
    				},
    				State: konnect.GetCloudGatewayNetworkFilterState{
    					Oeq: pulumi.StringRef("...my_oeq..."),
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Konnect = Pulumi.Konnect;
    
    return await Deployment.RunAsync(() => 
    {
        var myCloudgatewaynetwork = Konnect.GetCloudGatewayNetwork.Invoke(new()
        {
            Filter = new Konnect.Inputs.GetCloudGatewayNetworkFilterInputArgs
            {
                Name = new Konnect.Inputs.GetCloudGatewayNetworkFilterNameInputArgs
                {
                    Contains = "...my_contains...",
                    Eq = "...my_eq...",
                    Neq = "...my_neq...",
                    Ocontains = "...my_ocontains...",
                    Oeq = "...my_oeq...",
                },
                State = new Konnect.Inputs.GetCloudGatewayNetworkFilterStateInputArgs
                {
                    Oeq = "...my_oeq...",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.konnect.KonnectFunctions;
    import com.pulumi.konnect.inputs.GetCloudGatewayNetworkArgs;
    import com.pulumi.konnect.inputs.GetCloudGatewayNetworkFilterArgs;
    import com.pulumi.konnect.inputs.GetCloudGatewayNetworkFilterNameArgs;
    import com.pulumi.konnect.inputs.GetCloudGatewayNetworkFilterStateArgs;
    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 myCloudgatewaynetwork = KonnectFunctions.getCloudGatewayNetwork(GetCloudGatewayNetworkArgs.builder()
                .filter(GetCloudGatewayNetworkFilterArgs.builder()
                    .name(GetCloudGatewayNetworkFilterNameArgs.builder()
                        .contains("...my_contains...")
                        .eq("...my_eq...")
                        .neq("...my_neq...")
                        .ocontains("...my_ocontains...")
                        .oeq("...my_oeq...")
                        .build())
                    .state(GetCloudGatewayNetworkFilterStateArgs.builder()
                        .oeq("...my_oeq...")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    variables:
      myCloudgatewaynetwork:
        fn::invoke:
          function: konnect:getCloudGatewayNetwork
          arguments:
            filter:
              name:
                contains: '...my_contains...'
                eq: '...my_eq...'
                neq: '...my_neq...'
                ocontains: '...my_ocontains...'
                oeq: '...my_oeq...'
              state:
                oeq: '...my_oeq...'
    

    Using getCloudGatewayNetwork

    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 getCloudGatewayNetwork(args: GetCloudGatewayNetworkArgs, opts?: InvokeOptions): Promise<GetCloudGatewayNetworkResult>
    function getCloudGatewayNetworkOutput(args: GetCloudGatewayNetworkOutputArgs, opts?: InvokeOptions): Output<GetCloudGatewayNetworkResult>
    def get_cloud_gateway_network(filter: Optional[GetCloudGatewayNetworkFilter] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetCloudGatewayNetworkResult
    def get_cloud_gateway_network_output(filter: Optional[pulumi.Input[GetCloudGatewayNetworkFilterArgs]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetCloudGatewayNetworkResult]
    func LookupCloudGatewayNetwork(ctx *Context, args *LookupCloudGatewayNetworkArgs, opts ...InvokeOption) (*LookupCloudGatewayNetworkResult, error)
    func LookupCloudGatewayNetworkOutput(ctx *Context, args *LookupCloudGatewayNetworkOutputArgs, opts ...InvokeOption) LookupCloudGatewayNetworkResultOutput

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

    public static class GetCloudGatewayNetwork 
    {
        public static Task<GetCloudGatewayNetworkResult> InvokeAsync(GetCloudGatewayNetworkArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudGatewayNetworkResult> Invoke(GetCloudGatewayNetworkInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudGatewayNetworkResult> getCloudGatewayNetwork(GetCloudGatewayNetworkArgs args, InvokeOptions options)
    public static Output<GetCloudGatewayNetworkResult> getCloudGatewayNetwork(GetCloudGatewayNetworkArgs args, InvokeOptions options)
    
    fn::invoke:
      function: konnect:index/getCloudGatewayNetwork:getCloudGatewayNetwork
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filter GetCloudGatewayNetworkFilter
    Filters supported for networks.
    Filter GetCloudGatewayNetworkFilter
    Filters supported for networks.
    filter GetCloudGatewayNetworkFilter
    Filters supported for networks.
    filter GetCloudGatewayNetworkFilter
    Filters supported for networks.
    filter GetCloudGatewayNetworkFilter
    Filters supported for networks.
    filter Property Map
    Filters supported for networks.

    getCloudGatewayNetwork Result

    The following output properties are available:

    AvailabilityZones List<string>
    List of availability zones that the network is attached to.
    CidrBlock string
    CIDR block configuration for the network.
    CloudGatewayProviderAccountId string
    ConfigurationReferenceCount double
    The number of configurations that reference this network.
    CreatedAt string
    An RFC-3339 timestamp representation of network creation date.
    Default bool
    Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
    EntityVersion double
    Monotonically-increasing version count of the network, to indicate the order of updates to the network.
    Id string
    The network ID to operate on. For serverless.v1 kind of cloud gateways, this field should be omitted.
    Name string
    Human-readable name of the network.
    ProviderMetadata GetCloudGatewayNetworkProviderMetadata
    Metadata describing attributes returned by cloud-provider for the network.
    Region string
    Region ID for cloud provider region.
    TransitGatewayCount double
    The number of transit gateways attached to this network.
    UpdatedAt string
    An RFC-3339 timestamp representation of network update date.
    Filter GetCloudGatewayNetworkFilter
    Filters supported for networks.
    AvailabilityZones []string
    List of availability zones that the network is attached to.
    CidrBlock string
    CIDR block configuration for the network.
    CloudGatewayProviderAccountId string
    ConfigurationReferenceCount float64
    The number of configurations that reference this network.
    CreatedAt string
    An RFC-3339 timestamp representation of network creation date.
    Default bool
    Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
    EntityVersion float64
    Monotonically-increasing version count of the network, to indicate the order of updates to the network.
    Id string
    The network ID to operate on. For serverless.v1 kind of cloud gateways, this field should be omitted.
    Name string
    Human-readable name of the network.
    ProviderMetadata GetCloudGatewayNetworkProviderMetadata
    Metadata describing attributes returned by cloud-provider for the network.
    Region string
    Region ID for cloud provider region.
    TransitGatewayCount float64
    The number of transit gateways attached to this network.
    UpdatedAt string
    An RFC-3339 timestamp representation of network update date.
    Filter GetCloudGatewayNetworkFilter
    Filters supported for networks.
    availabilityZones List<String>
    List of availability zones that the network is attached to.
    cidrBlock String
    CIDR block configuration for the network.
    cloudGatewayProviderAccountId String
    configurationReferenceCount Double
    The number of configurations that reference this network.
    createdAt String
    An RFC-3339 timestamp representation of network creation date.
    default_ Boolean
    Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
    entityVersion Double
    Monotonically-increasing version count of the network, to indicate the order of updates to the network.
    id String
    The network ID to operate on. For serverless.v1 kind of cloud gateways, this field should be omitted.
    name String
    Human-readable name of the network.
    providerMetadata GetCloudGatewayNetworkProviderMetadata
    Metadata describing attributes returned by cloud-provider for the network.
    region String
    Region ID for cloud provider region.
    transitGatewayCount Double
    The number of transit gateways attached to this network.
    updatedAt String
    An RFC-3339 timestamp representation of network update date.
    filter GetCloudGatewayNetworkFilter
    Filters supported for networks.
    availabilityZones string[]
    List of availability zones that the network is attached to.
    cidrBlock string
    CIDR block configuration for the network.
    cloudGatewayProviderAccountId string
    configurationReferenceCount number
    The number of configurations that reference this network.
    createdAt string
    An RFC-3339 timestamp representation of network creation date.
    default boolean
    Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
    entityVersion number
    Monotonically-increasing version count of the network, to indicate the order of updates to the network.
    id string
    The network ID to operate on. For serverless.v1 kind of cloud gateways, this field should be omitted.
    name string
    Human-readable name of the network.
    providerMetadata GetCloudGatewayNetworkProviderMetadata
    Metadata describing attributes returned by cloud-provider for the network.
    region string
    Region ID for cloud provider region.
    transitGatewayCount number
    The number of transit gateways attached to this network.
    updatedAt string
    An RFC-3339 timestamp representation of network update date.
    filter GetCloudGatewayNetworkFilter
    Filters supported for networks.
    availability_zones Sequence[str]
    List of availability zones that the network is attached to.
    cidr_block str
    CIDR block configuration for the network.
    cloud_gateway_provider_account_id str
    configuration_reference_count float
    The number of configurations that reference this network.
    created_at str
    An RFC-3339 timestamp representation of network creation date.
    default bool
    Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
    entity_version float
    Monotonically-increasing version count of the network, to indicate the order of updates to the network.
    id str
    The network ID to operate on. For serverless.v1 kind of cloud gateways, this field should be omitted.
    name str
    Human-readable name of the network.
    provider_metadata GetCloudGatewayNetworkProviderMetadata
    Metadata describing attributes returned by cloud-provider for the network.
    region str
    Region ID for cloud provider region.
    transit_gateway_count float
    The number of transit gateways attached to this network.
    updated_at str
    An RFC-3339 timestamp representation of network update date.
    filter GetCloudGatewayNetworkFilter
    Filters supported for networks.
    availabilityZones List<String>
    List of availability zones that the network is attached to.
    cidrBlock String
    CIDR block configuration for the network.
    cloudGatewayProviderAccountId String
    configurationReferenceCount Number
    The number of configurations that reference this network.
    createdAt String
    An RFC-3339 timestamp representation of network creation date.
    default Boolean
    Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
    entityVersion Number
    Monotonically-increasing version count of the network, to indicate the order of updates to the network.
    id String
    The network ID to operate on. For serverless.v1 kind of cloud gateways, this field should be omitted.
    name String
    Human-readable name of the network.
    providerMetadata Property Map
    Metadata describing attributes returned by cloud-provider for the network.
    region String
    Region ID for cloud provider region.
    transitGatewayCount Number
    The number of transit gateways attached to this network.
    updatedAt String
    An RFC-3339 timestamp representation of network update date.
    filter Property Map
    Filters supported for networks.

    Supporting Types

    GetCloudGatewayNetworkFilter

    Name GetCloudGatewayNetworkFilterName
    Filter using one of the following operators: eq, oeq, neq, contains, ocontains
    State GetCloudGatewayNetworkFilterState
    Filter using one of the following operators: eq, oeq, neq
    Name GetCloudGatewayNetworkFilterName
    Filter using one of the following operators: eq, oeq, neq, contains, ocontains
    State GetCloudGatewayNetworkFilterState
    Filter using one of the following operators: eq, oeq, neq
    name GetCloudGatewayNetworkFilterName
    Filter using one of the following operators: eq, oeq, neq, contains, ocontains
    state GetCloudGatewayNetworkFilterState
    Filter using one of the following operators: eq, oeq, neq
    name GetCloudGatewayNetworkFilterName
    Filter using one of the following operators: eq, oeq, neq, contains, ocontains
    state GetCloudGatewayNetworkFilterState
    Filter using one of the following operators: eq, oeq, neq
    name GetCloudGatewayNetworkFilterName
    Filter using one of the following operators: eq, oeq, neq, contains, ocontains
    state GetCloudGatewayNetworkFilterState
    Filter using one of the following operators: eq, oeq, neq
    name Property Map
    Filter using one of the following operators: eq, oeq, neq, contains, ocontains
    state Property Map
    Filter using one of the following operators: eq, oeq, neq

    GetCloudGatewayNetworkFilterName

    Contains string
    The field contains the provided value.
    Eq string
    The field exactly matches the provided value.
    Neq string
    The field does not match the provided value.
    Ocontains string
    The field contains any of the provided values.
    Oeq string
    The field matches any of the provided values.
    Contains string
    The field contains the provided value.
    Eq string
    The field exactly matches the provided value.
    Neq string
    The field does not match the provided value.
    Ocontains string
    The field contains any of the provided values.
    Oeq string
    The field matches any of the provided values.
    contains String
    The field contains the provided value.
    eq String
    The field exactly matches the provided value.
    neq String
    The field does not match the provided value.
    ocontains String
    The field contains any of the provided values.
    oeq String
    The field matches any of the provided values.
    contains string
    The field contains the provided value.
    eq string
    The field exactly matches the provided value.
    neq string
    The field does not match the provided value.
    ocontains string
    The field contains any of the provided values.
    oeq string
    The field matches any of the provided values.
    contains str
    The field contains the provided value.
    eq str
    The field exactly matches the provided value.
    neq str
    The field does not match the provided value.
    ocontains str
    The field contains any of the provided values.
    oeq str
    The field matches any of the provided values.
    contains String
    The field contains the provided value.
    eq String
    The field exactly matches the provided value.
    neq String
    The field does not match the provided value.
    ocontains String
    The field contains any of the provided values.
    oeq String
    The field matches any of the provided values.

    GetCloudGatewayNetworkFilterState

    Oeq string
    The field matches any of the provided values.
    Oeq string
    The field matches any of the provided values.
    oeq String
    The field matches any of the provided values.
    oeq string
    The field matches any of the provided values.
    oeq str
    The field matches any of the provided values.
    oeq String
    The field matches any of the provided values.

    GetCloudGatewayNetworkProviderMetadata

    SubnetIds List<string>
    VpcId string
    SubnetIds []string
    VpcId string
    subnetIds List<String>
    vpcId String
    subnetIds string[]
    vpcId string
    subnet_ids Sequence[str]
    vpc_id str
    subnetIds List<String>
    vpcId String

    Package Details

    Repository
    konnect kong/terraform-provider-konnect
    License
    Notes
    This Pulumi package is based on the konnect Terraform Provider.
    Viewing docs for konnect 3.14.0
    published on Friday, Apr 24, 2026 by kong
      Try Pulumi Cloud free. Your team will thank you.