1. Packages
  2. Redpanda Provider
  3. API Docs
  4. getNetwork
redpanda 0.15.1 published on Wednesday, Apr 16, 2025 by redpanda-data

redpanda.getNetwork

Explore with Pulumi AI

redpanda 0.15.1 published on Wednesday, Apr 16, 2025 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",
});
Copy
import pulumi
import pulumi_redpanda as redpanda

example = redpanda.get_network(id="network_id")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/redpanda/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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: redpanda:getNetwork
      arguments:
        id: network_id
Copy

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

> 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)
}
Copy
public static CompletableFuture<GetNetworkResult> getNetwork(GetNetworkArgs args, InvokeOptions options)
public static Output<GetNetworkResult> getNetwork(GetNetworkArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: redpanda:index/getNetwork:getNetwork
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
UUID of the network
Id This property is required. string
UUID of the network
id This property is required. String
UUID of the network
id This property is required. string
UUID of the network
id This property is required. str
UUID of the network
id This property is required. String
UUID of the network

getNetwork Result

The following output properties are available:

CidrBlock string
The cidr_block to create the network in
CloudProvider string
The cloud provider to create the network in. Can also be set at the provider level
ClusterType string
The type of cluster this network is associated with, can be one of dedicated or cloud
CustomerManagedResources GetNetworkCustomerManagedResources
Id string
UUID of the network
Name string
Name of the network
Region string
The region to create the network in. Can also be set at the provider level
ResourceGroupId string
The ID of the resource group in which to create the network
CidrBlock string
The cidr_block to create the network in
CloudProvider string
The cloud provider to create the network in. Can also be set at the provider level
ClusterType string
The type of cluster this network is associated with, can be one of dedicated or cloud
CustomerManagedResources GetNetworkCustomerManagedResources
Id string
UUID of the network
Name string
Name of the network
Region string
The region to create the network in. Can also be set at the provider level
ResourceGroupId string
The ID of the resource group in which to create the network
cidrBlock String
The cidr_block to create the network in
cloudProvider String
The cloud provider to create the network in. Can also be set at the provider level
clusterType String
The type of cluster this network is associated with, can be one of dedicated or cloud
customerManagedResources GetNetworkCustomerManagedResources
id String
UUID of the network
name String
Name of the network
region String
The region to create the network in. Can also be set at the provider level
resourceGroupId String
The ID of the resource group in which to create the network
cidrBlock string
The cidr_block to create the network in
cloudProvider string
The cloud provider to create the network in. Can also be set at the provider level
clusterType string
The type of cluster this network is associated with, can be one of dedicated or cloud
customerManagedResources GetNetworkCustomerManagedResources
id string
UUID of the network
name string
Name of the network
region string
The region to create the network in. Can also be set at the provider level
resourceGroupId string
The ID of the resource group in which to create the network
cidr_block str
The cidr_block to create the network in
cloud_provider str
The cloud provider to create the network in. Can also be set at the provider level
cluster_type str
The type of cluster this network is associated with, can be one of dedicated or cloud
customer_managed_resources GetNetworkCustomerManagedResources
id str
UUID of the network
name str
Name of the network
region str
The region to create the network in. Can also be set at the provider level
resource_group_id str
The ID of the resource group in which to create the network
cidrBlock String
The cidr_block to create the network in
cloudProvider String
The cloud provider to create the network in. Can also be set at the provider level
clusterType String
The type of cluster this network is associated with, can be one of dedicated or cloud
customerManagedResources Property Map
id String
UUID of the network
name String
Name of the network
region String
The region to create the network in. Can also be set at the provider level
resourceGroupId String
The ID of the resource group in which to create the network

Supporting Types

GetNetworkCustomerManagedResources

Aws This property is required. GetNetworkCustomerManagedResourcesAws
Aws This property is required. GetNetworkCustomerManagedResourcesAws
aws This property is required. GetNetworkCustomerManagedResourcesAws
aws This property is required. GetNetworkCustomerManagedResourcesAws
aws This property is required. GetNetworkCustomerManagedResourcesAws
aws This property is required. Property Map

GetNetworkCustomerManagedResourcesAws

dynamodbTable This property is required. Property Map
managementBucket This property is required. Property Map
privateSubnets This property is required. Property Map
vpc This property is required. Property Map

GetNetworkCustomerManagedResourcesAwsDynamodbTable

Arn This property is required. string
AWS DynamoDB table identifier
Arn This property is required. string
AWS DynamoDB table identifier
arn This property is required. String
AWS DynamoDB table identifier
arn This property is required. string
AWS DynamoDB table identifier
arn This property is required. str
AWS DynamoDB table identifier
arn This property is required. String
AWS DynamoDB table identifier

GetNetworkCustomerManagedResourcesAwsManagementBucket

Arn This property is required. string
AWS storage bucket identifier
Arn This property is required. string
AWS storage bucket identifier
arn This property is required. String
AWS storage bucket identifier
arn This property is required. string
AWS storage bucket identifier
arn This property is required. str
AWS storage bucket identifier
arn This property is required. String
AWS storage bucket identifier

GetNetworkCustomerManagedResourcesAwsPrivateSubnets

Arns This property is required. List<string>
AWS private subnet identifiers
Arns This property is required. []string
AWS private subnet identifiers
arns This property is required. List<String>
AWS private subnet identifiers
arns This property is required. string[]
AWS private subnet identifiers
arns This property is required. Sequence[str]
AWS private subnet identifiers
arns This property is required. List<String>
AWS private subnet identifiers

GetNetworkCustomerManagedResourcesAwsVpc

Arn This property is required. string
AWS VPC identifier
Arn This property is required. string
AWS VPC identifier
arn This property is required. String
AWS VPC identifier
arn This property is required. string
AWS VPC identifier
arn This property is required. str
AWS VPC identifier
arn This property is required. String
AWS VPC identifier

Package Details

Repository
redpanda redpanda-data/terraform-provider-redpanda
License
Notes
This Pulumi package is based on the redpanda Terraform Provider.
redpanda 0.15.1 published on Wednesday, Apr 16, 2025 by redpanda-data