1. Packages
  2. Packages
  3. Redpanda Provider
  4. API Docs
  5. getNetwork
Viewing docs for redpanda 2.1.0
published on Wednesday, Jun 24, 2026 by redpanda-data
Viewing docs for redpanda 2.1.0
published on Wednesday, Jun 24, 2026 by redpanda-data

    Data source for a Redpanda Cloud network

    Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as redpanda from "@pulumi/redpanda";
    
    const example = redpanda.getNetwork({
        id: "network_id",
    });
    
    import pulumi
    import pulumi_redpanda as redpanda
    
    example = redpanda.get_network(id="network_id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/redpanda/v2/redpanda"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := redpanda.LookupNetwork(ctx, &redpanda.LookupNetworkArgs{
    			Id: "network_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Redpanda = Pulumi.Redpanda;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Redpanda.GetNetwork.Invoke(new()
        {
            Id = "network_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.redpanda.RedpandaFunctions;
    import com.pulumi.redpanda.inputs.GetNetworkArgs;
    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 example = RedpandaFunctions.getNetwork(GetNetworkArgs.builder()
                .id("network_id")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: redpanda:getNetwork
          arguments:
            id: network_id
    
    Example coming soon!
    

    Using getNetwork

    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 getNetwork(args: GetNetworkArgs, opts?: InvokeOptions): Promise<GetNetworkResult>
    function getNetworkOutput(args: GetNetworkOutputArgs, opts?: InvokeOptions): Output<GetNetworkResult>
    def get_network(id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetNetworkResult
    def get_network_output(id: pulumi.Input[Optional[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetNetworkResult]
    func LookupNetwork(ctx *Context, args *LookupNetworkArgs, opts ...InvokeOption) (*LookupNetworkResult, error)
    func LookupNetworkOutput(ctx *Context, args *LookupNetworkOutputArgs, opts ...InvokeOption) LookupNetworkResultOutput

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

    public static class GetNetwork 
    {
        public static Task<GetNetworkResult> InvokeAsync(GetNetworkArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkResult> Invoke(GetNetworkInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkResult> getNetwork(GetNetworkArgs args, InvokeOptions options)
    public static Output<GetNetworkResult> getNetwork(GetNetworkArgs args, InvokeOptions options)
    
    fn::invoke:
      function: redpanda:index/getNetwork:getNetwork
      arguments:
        # arguments dictionary
    data "redpanda_getnetwork" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    Network ID. The ID is an output of the Create Network request and cannot be set by the caller.
    Id string
    Network ID. The ID is an output of the Create Network request and cannot be set by the caller.
    id string
    Network ID. The ID is an output of the Create Network request and cannot be set by the caller.
    id String
    Network ID. The ID is an output of the Create Network request and cannot be set by the caller.
    id string
    Network ID. The ID is an output of the Create Network request and cannot be set by the caller.
    id str
    Network ID. The ID is an output of the Create Network request and cannot be set by the caller.
    id String
    Network ID. The ID is an output of the Create Network request and cannot be set by the caller.

    getNetwork Result

    The following output properties are available:

    CidrBlock string
    Network CIDR from where public and private subnets are derived. At least a 21 bits CIDR is required.
    CloudProvider string
    Cloud provider where resources are created.
    ClusterType string
    Cluster type. Type is immutable and can only be set on cluster creation.
    CustomerManagedResources GetNetworkCustomerManagedResources
    Cloud resources created by user.
    Id string
    Network ID. The ID is an output of the Create Network request and cannot be set by the caller.
    Name string
    The unique name of the network.
    Region string
    Region where network is placed.
    ResourceGroupId string
    Resource group ID of the network
    State string
    Current state of the network.
    Zones List<string>
    Network availability zones.
    CidrBlock string
    Network CIDR from where public and private subnets are derived. At least a 21 bits CIDR is required.
    CloudProvider string
    Cloud provider where resources are created.
    ClusterType string
    Cluster type. Type is immutable and can only be set on cluster creation.
    CustomerManagedResources GetNetworkCustomerManagedResources
    Cloud resources created by user.
    Id string
    Network ID. The ID is an output of the Create Network request and cannot be set by the caller.
    Name string
    The unique name of the network.
    Region string
    Region where network is placed.
    ResourceGroupId string
    Resource group ID of the network
    State string
    Current state of the network.
    Zones []string
    Network availability zones.
    cidr_block string
    Network CIDR from where public and private subnets are derived. At least a 21 bits CIDR is required.
    cloud_provider string
    Cloud provider where resources are created.
    cluster_type string
    Cluster type. Type is immutable and can only be set on cluster creation.
    customer_managed_resources object
    Cloud resources created by user.
    id string
    Network ID. The ID is an output of the Create Network request and cannot be set by the caller.
    name string
    The unique name of the network.
    region string
    Region where network is placed.
    resource_group_id string
    Resource group ID of the network
    state string
    Current state of the network.
    zones list(string)
    Network availability zones.
    cidrBlock String
    Network CIDR from where public and private subnets are derived. At least a 21 bits CIDR is required.
    cloudProvider String
    Cloud provider where resources are created.
    clusterType String
    Cluster type. Type is immutable and can only be set on cluster creation.
    customerManagedResources GetNetworkCustomerManagedResources
    Cloud resources created by user.
    id String
    Network ID. The ID is an output of the Create Network request and cannot be set by the caller.
    name String
    The unique name of the network.
    region String
    Region where network is placed.
    resourceGroupId String
    Resource group ID of the network
    state String
    Current state of the network.
    zones List<String>
    Network availability zones.
    cidrBlock string
    Network CIDR from where public and private subnets are derived. At least a 21 bits CIDR is required.
    cloudProvider string
    Cloud provider where resources are created.
    clusterType string
    Cluster type. Type is immutable and can only be set on cluster creation.
    customerManagedResources GetNetworkCustomerManagedResources
    Cloud resources created by user.
    id string
    Network ID. The ID is an output of the Create Network request and cannot be set by the caller.
    name string
    The unique name of the network.
    region string
    Region where network is placed.
    resourceGroupId string
    Resource group ID of the network
    state string
    Current state of the network.
    zones string[]
    Network availability zones.
    cidr_block str
    Network CIDR from where public and private subnets are derived. At least a 21 bits CIDR is required.
    cloud_provider str
    Cloud provider where resources are created.
    cluster_type str
    Cluster type. Type is immutable and can only be set on cluster creation.
    customer_managed_resources GetNetworkCustomerManagedResources
    Cloud resources created by user.
    id str
    Network ID. The ID is an output of the Create Network request and cannot be set by the caller.
    name str
    The unique name of the network.
    region str
    Region where network is placed.
    resource_group_id str
    Resource group ID of the network
    state str
    Current state of the network.
    zones Sequence[str]
    Network availability zones.
    cidrBlock String
    Network CIDR from where public and private subnets are derived. At least a 21 bits CIDR is required.
    cloudProvider String
    Cloud provider where resources are created.
    clusterType String
    Cluster type. Type is immutable and can only be set on cluster creation.
    customerManagedResources Property Map
    Cloud resources created by user.
    id String
    Network ID. The ID is an output of the Create Network request and cannot be set by the caller.
    name String
    The unique name of the network.
    region String
    Region where network is placed.
    resourceGroupId String
    Resource group ID of the network
    state String
    Current state of the network.
    zones List<String>
    Network availability zones.

    Supporting Types

    GetNetworkCustomerManagedResources

    Aws GetNetworkCustomerManagedResourcesAws
    The AWS resources managed by user.
    Gcp GetNetworkCustomerManagedResourcesGcp
    GCP resources created and managed by user, and required to deploy the Redpanda cluster. See Create a BYOVPC Cluster on GCP for details.
    Aws GetNetworkCustomerManagedResourcesAws
    The AWS resources managed by user.
    Gcp GetNetworkCustomerManagedResourcesGcp
    GCP resources created and managed by user, and required to deploy the Redpanda cluster. See Create a BYOVPC Cluster on GCP for details.
    aws object
    The AWS resources managed by user.
    gcp object
    GCP resources created and managed by user, and required to deploy the Redpanda cluster. See Create a BYOVPC Cluster on GCP for details.
    aws GetNetworkCustomerManagedResourcesAws
    The AWS resources managed by user.
    gcp GetNetworkCustomerManagedResourcesGcp
    GCP resources created and managed by user, and required to deploy the Redpanda cluster. See Create a BYOVPC Cluster on GCP for details.
    aws GetNetworkCustomerManagedResourcesAws
    The AWS resources managed by user.
    gcp GetNetworkCustomerManagedResourcesGcp
    GCP resources created and managed by user, and required to deploy the Redpanda cluster. See Create a BYOVPC Cluster on GCP for details.
    aws GetNetworkCustomerManagedResourcesAws
    The AWS resources managed by user.
    gcp GetNetworkCustomerManagedResourcesGcp
    GCP resources created and managed by user, and required to deploy the Redpanda cluster. See Create a BYOVPC Cluster on GCP for details.
    aws Property Map
    The AWS resources managed by user.
    gcp Property Map
    GCP resources created and managed by user, and required to deploy the Redpanda cluster. See Create a BYOVPC Cluster on GCP for details.

    GetNetworkCustomerManagedResourcesAws

    dynamodb_table object
    AWS DynamoDB table specification.
    management_bucket object
    AWS storage bucket properties by ARN.
    private_subnets object
    AWS Subnets Specification
    vpc object
    AWS VPC Specification
    dynamodbTable Property Map
    AWS DynamoDB table specification.
    managementBucket Property Map
    AWS storage bucket properties by ARN.
    privateSubnets Property Map
    AWS Subnets Specification
    vpc Property Map
    AWS VPC Specification

    GetNetworkCustomerManagedResourcesAwsDynamodbTable

    Arn string
    AWS DynamoDB table identifier.
    Arn string
    AWS DynamoDB table identifier.
    arn string
    AWS DynamoDB table identifier.
    arn String
    AWS DynamoDB table identifier.
    arn string
    AWS DynamoDB table identifier.
    arn str
    AWS DynamoDB table identifier.
    arn String
    AWS DynamoDB table identifier.

    GetNetworkCustomerManagedResourcesAwsManagementBucket

    Arn string
    AWS storage bucket identifier.
    Arn string
    AWS storage bucket identifier.
    arn string
    AWS storage bucket identifier.
    arn String
    AWS storage bucket identifier.
    arn string
    AWS storage bucket identifier.
    arn str
    AWS storage bucket identifier.
    arn String
    AWS storage bucket identifier.

    GetNetworkCustomerManagedResourcesAwsPrivateSubnets

    Arns List<string>
    AWS subnet identifiers.
    Arns []string
    AWS subnet identifiers.
    arns list(string)
    AWS subnet identifiers.
    arns List<String>
    AWS subnet identifiers.
    arns string[]
    AWS subnet identifiers.
    arns Sequence[str]
    AWS subnet identifiers.
    arns List<String>
    AWS subnet identifiers.

    GetNetworkCustomerManagedResourcesAwsVpc

    Arn string
    AWS VPC identifier.
    Arn string
    AWS VPC identifier.
    arn string
    AWS VPC identifier.
    arn String
    AWS VPC identifier.
    arn string
    AWS VPC identifier.
    arn str
    AWS VPC identifier.
    arn String
    AWS VPC identifier.

    GetNetworkCustomerManagedResourcesGcp

    ManagementBucket GetNetworkCustomerManagedResourcesGcpManagementBucket
    GCP storage bucket properties.
    NetworkName string
    Name of user-created network where the Redpanda cluster is deployed to. See the official GCP API reference.
    NetworkProjectId string
    GCP project ID where the network is created.
    ManagementBucket GetNetworkCustomerManagedResourcesGcpManagementBucket
    GCP storage bucket properties.
    NetworkName string
    Name of user-created network where the Redpanda cluster is deployed to. See the official GCP API reference.
    NetworkProjectId string
    GCP project ID where the network is created.
    management_bucket object
    GCP storage bucket properties.
    network_name string
    Name of user-created network where the Redpanda cluster is deployed to. See the official GCP API reference.
    network_project_id string
    GCP project ID where the network is created.
    managementBucket GetNetworkCustomerManagedResourcesGcpManagementBucket
    GCP storage bucket properties.
    networkName String
    Name of user-created network where the Redpanda cluster is deployed to. See the official GCP API reference.
    networkProjectId String
    GCP project ID where the network is created.
    managementBucket GetNetworkCustomerManagedResourcesGcpManagementBucket
    GCP storage bucket properties.
    networkName string
    Name of user-created network where the Redpanda cluster is deployed to. See the official GCP API reference.
    networkProjectId string
    GCP project ID where the network is created.
    management_bucket GetNetworkCustomerManagedResourcesGcpManagementBucket
    GCP storage bucket properties.
    network_name str
    Name of user-created network where the Redpanda cluster is deployed to. See the official GCP API reference.
    network_project_id str
    GCP project ID where the network is created.
    managementBucket Property Map
    GCP storage bucket properties.
    networkName String
    Name of user-created network where the Redpanda cluster is deployed to. See the official GCP API reference.
    networkProjectId String
    GCP project ID where the network is created.

    GetNetworkCustomerManagedResourcesGcpManagementBucket

    Name string
    Name of GCP storage bucket. See the official GCP documentation for naming restrictions.
    Name string
    Name of GCP storage bucket. See the official GCP documentation for naming restrictions.
    name string
    Name of GCP storage bucket. See the official GCP documentation for naming restrictions.
    name String
    Name of GCP storage bucket. See the official GCP documentation for naming restrictions.
    name string
    Name of GCP storage bucket. See the official GCP documentation for naming restrictions.
    name str
    Name of GCP storage bucket. See the official GCP documentation for naming restrictions.
    name String
    Name of GCP storage bucket. See the official GCP documentation for naming restrictions.

    Package Details

    Repository
    redpanda redpanda-data/terraform-provider-redpanda
    License
    Notes
    This Pulumi package is based on the redpanda Terraform Provider.
    Viewing docs for redpanda 2.1.0
    published on Wednesday, Jun 24, 2026 by redpanda-data

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial