1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustTunnelCloudflaredVirtualNetwork
Cloudflare v6.1.1 published on Monday, Apr 21, 2025 by Pulumi

cloudflare.getZeroTrustTunnelCloudflaredVirtualNetwork

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleZeroTrustTunnelCloudflaredVirtualNetwork = cloudflare.getZeroTrustTunnelCloudflaredVirtualNetwork({
    accountId: "699d98642c564d2e855e9661899b7252",
    virtualNetworkId: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_zero_trust_tunnel_cloudflared_virtual_network = cloudflare.get_zero_trust_tunnel_cloudflared_virtual_network(account_id="699d98642c564d2e855e9661899b7252",
    virtual_network_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
Copy
package main

import (
	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudflare.LookupZeroTrustTunnelCloudflaredVirtualNetwork(ctx, &cloudflare.LookupZeroTrustTunnelCloudflaredVirtualNetworkArgs{
			AccountId:        "699d98642c564d2e855e9661899b7252",
			VirtualNetworkId: pulumi.StringRef("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleZeroTrustTunnelCloudflaredVirtualNetwork = Cloudflare.GetZeroTrustTunnelCloudflaredVirtualNetwork.Invoke(new()
    {
        AccountId = "699d98642c564d2e855e9661899b7252",
        VirtualNetworkId = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetZeroTrustTunnelCloudflaredVirtualNetworkArgs;
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 exampleZeroTrustTunnelCloudflaredVirtualNetwork = CloudflareFunctions.getZeroTrustTunnelCloudflaredVirtualNetwork(GetZeroTrustTunnelCloudflaredVirtualNetworkArgs.builder()
            .accountId("699d98642c564d2e855e9661899b7252")
            .virtualNetworkId("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
            .build());

    }
}
Copy
variables:
  exampleZeroTrustTunnelCloudflaredVirtualNetwork:
    fn::invoke:
      function: cloudflare:getZeroTrustTunnelCloudflaredVirtualNetwork
      arguments:
        accountId: 699d98642c564d2e855e9661899b7252
        virtualNetworkId: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415
Copy

Using getZeroTrustTunnelCloudflaredVirtualNetwork

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 getZeroTrustTunnelCloudflaredVirtualNetwork(args: GetZeroTrustTunnelCloudflaredVirtualNetworkArgs, opts?: InvokeOptions): Promise<GetZeroTrustTunnelCloudflaredVirtualNetworkResult>
function getZeroTrustTunnelCloudflaredVirtualNetworkOutput(args: GetZeroTrustTunnelCloudflaredVirtualNetworkOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustTunnelCloudflaredVirtualNetworkResult>
Copy
def get_zero_trust_tunnel_cloudflared_virtual_network(account_id: Optional[str] = None,
                                                      filter: Optional[GetZeroTrustTunnelCloudflaredVirtualNetworkFilter] = None,
                                                      virtual_network_id: Optional[str] = None,
                                                      opts: Optional[InvokeOptions] = None) -> GetZeroTrustTunnelCloudflaredVirtualNetworkResult
def get_zero_trust_tunnel_cloudflared_virtual_network_output(account_id: Optional[pulumi.Input[str]] = None,
                                                      filter: Optional[pulumi.Input[GetZeroTrustTunnelCloudflaredVirtualNetworkFilterArgs]] = None,
                                                      virtual_network_id: Optional[pulumi.Input[str]] = None,
                                                      opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustTunnelCloudflaredVirtualNetworkResult]
Copy
func LookupZeroTrustTunnelCloudflaredVirtualNetwork(ctx *Context, args *LookupZeroTrustTunnelCloudflaredVirtualNetworkArgs, opts ...InvokeOption) (*LookupZeroTrustTunnelCloudflaredVirtualNetworkResult, error)
func LookupZeroTrustTunnelCloudflaredVirtualNetworkOutput(ctx *Context, args *LookupZeroTrustTunnelCloudflaredVirtualNetworkOutputArgs, opts ...InvokeOption) LookupZeroTrustTunnelCloudflaredVirtualNetworkResultOutput
Copy

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

public static class GetZeroTrustTunnelCloudflaredVirtualNetwork 
{
    public static Task<GetZeroTrustTunnelCloudflaredVirtualNetworkResult> InvokeAsync(GetZeroTrustTunnelCloudflaredVirtualNetworkArgs args, InvokeOptions? opts = null)
    public static Output<GetZeroTrustTunnelCloudflaredVirtualNetworkResult> Invoke(GetZeroTrustTunnelCloudflaredVirtualNetworkInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetZeroTrustTunnelCloudflaredVirtualNetworkResult> getZeroTrustTunnelCloudflaredVirtualNetwork(GetZeroTrustTunnelCloudflaredVirtualNetworkArgs args, InvokeOptions options)
public static Output<GetZeroTrustTunnelCloudflaredVirtualNetworkResult> getZeroTrustTunnelCloudflaredVirtualNetwork(GetZeroTrustTunnelCloudflaredVirtualNetworkArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getZeroTrustTunnelCloudflaredVirtualNetwork:getZeroTrustTunnelCloudflaredVirtualNetwork
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId This property is required. string
Cloudflare account ID
Filter GetZeroTrustTunnelCloudflaredVirtualNetworkFilter
VirtualNetworkId string
UUID of the virtual network.
AccountId This property is required. string
Cloudflare account ID
Filter GetZeroTrustTunnelCloudflaredVirtualNetworkFilter
VirtualNetworkId string
UUID of the virtual network.
accountId This property is required. String
Cloudflare account ID
filter GetZeroTrustTunnelCloudflaredVirtualNetworkFilter
virtualNetworkId String
UUID of the virtual network.
accountId This property is required. string
Cloudflare account ID
filter GetZeroTrustTunnelCloudflaredVirtualNetworkFilter
virtualNetworkId string
UUID of the virtual network.
account_id This property is required. str
Cloudflare account ID
filter GetZeroTrustTunnelCloudflaredVirtualNetworkFilter
virtual_network_id str
UUID of the virtual network.
accountId This property is required. String
Cloudflare account ID
filter Property Map
virtualNetworkId String
UUID of the virtual network.

getZeroTrustTunnelCloudflaredVirtualNetwork Result

The following output properties are available:

AccountId string
Cloudflare account ID
Comment string
Optional remark describing the virtual network.
CreatedAt string
Timestamp of when the resource was created.
DeletedAt string
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
Id string
UUID of the virtual network.
IsDefaultNetwork bool
If true, this virtual network is the default for the account.
Name string
A user-friendly name for the virtual network.
Filter GetZeroTrustTunnelCloudflaredVirtualNetworkFilter
VirtualNetworkId string
UUID of the virtual network.
AccountId string
Cloudflare account ID
Comment string
Optional remark describing the virtual network.
CreatedAt string
Timestamp of when the resource was created.
DeletedAt string
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
Id string
UUID of the virtual network.
IsDefaultNetwork bool
If true, this virtual network is the default for the account.
Name string
A user-friendly name for the virtual network.
Filter GetZeroTrustTunnelCloudflaredVirtualNetworkFilter
VirtualNetworkId string
UUID of the virtual network.
accountId String
Cloudflare account ID
comment String
Optional remark describing the virtual network.
createdAt String
Timestamp of when the resource was created.
deletedAt String
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
id String
UUID of the virtual network.
isDefaultNetwork Boolean
If true, this virtual network is the default for the account.
name String
A user-friendly name for the virtual network.
filter GetZeroTrustTunnelCloudflaredVirtualNetworkFilter
virtualNetworkId String
UUID of the virtual network.
accountId string
Cloudflare account ID
comment string
Optional remark describing the virtual network.
createdAt string
Timestamp of when the resource was created.
deletedAt string
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
id string
UUID of the virtual network.
isDefaultNetwork boolean
If true, this virtual network is the default for the account.
name string
A user-friendly name for the virtual network.
filter GetZeroTrustTunnelCloudflaredVirtualNetworkFilter
virtualNetworkId string
UUID of the virtual network.
account_id str
Cloudflare account ID
comment str
Optional remark describing the virtual network.
created_at str
Timestamp of when the resource was created.
deleted_at str
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
id str
UUID of the virtual network.
is_default_network bool
If true, this virtual network is the default for the account.
name str
A user-friendly name for the virtual network.
filter GetZeroTrustTunnelCloudflaredVirtualNetworkFilter
virtual_network_id str
UUID of the virtual network.
accountId String
Cloudflare account ID
comment String
Optional remark describing the virtual network.
createdAt String
Timestamp of when the resource was created.
deletedAt String
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
id String
UUID of the virtual network.
isDefaultNetwork Boolean
If true, this virtual network is the default for the account.
name String
A user-friendly name for the virtual network.
filter Property Map
virtualNetworkId String
UUID of the virtual network.

Supporting Types

GetZeroTrustTunnelCloudflaredVirtualNetworkFilter

Id string
UUID of the virtual network.
IsDefault bool
If true, only include the default virtual network. If false, exclude the default virtual network. If empty, all virtual networks will be included.
IsDeleted bool
If true, only include deleted virtual networks. If false, exclude deleted virtual networks. If empty, all virtual networks will be included.
Name string
A user-friendly name for the virtual network.
Id string
UUID of the virtual network.
IsDefault bool
If true, only include the default virtual network. If false, exclude the default virtual network. If empty, all virtual networks will be included.
IsDeleted bool
If true, only include deleted virtual networks. If false, exclude deleted virtual networks. If empty, all virtual networks will be included.
Name string
A user-friendly name for the virtual network.
id String
UUID of the virtual network.
isDefault Boolean
If true, only include the default virtual network. If false, exclude the default virtual network. If empty, all virtual networks will be included.
isDeleted Boolean
If true, only include deleted virtual networks. If false, exclude deleted virtual networks. If empty, all virtual networks will be included.
name String
A user-friendly name for the virtual network.
id string
UUID of the virtual network.
isDefault boolean
If true, only include the default virtual network. If false, exclude the default virtual network. If empty, all virtual networks will be included.
isDeleted boolean
If true, only include deleted virtual networks. If false, exclude deleted virtual networks. If empty, all virtual networks will be included.
name string
A user-friendly name for the virtual network.
id str
UUID of the virtual network.
is_default bool
If true, only include the default virtual network. If false, exclude the default virtual network. If empty, all virtual networks will be included.
is_deleted bool
If true, only include deleted virtual networks. If false, exclude deleted virtual networks. If empty, all virtual networks will be included.
name str
A user-friendly name for the virtual network.
id String
UUID of the virtual network.
isDefault Boolean
If true, only include the default virtual network. If false, exclude the default virtual network. If empty, all virtual networks will be included.
isDeleted Boolean
If true, only include deleted virtual networks. If false, exclude deleted virtual networks. If empty, all virtual networks will be included.
name String
A user-friendly name for the virtual network.

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.