1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustTunnelCloudflaredVirtualNetworks
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getZeroTrustTunnelCloudflaredVirtualNetworks

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustTunnelCloudflaredVirtualNetworks = cloudflare.getZeroTrustTunnelCloudflaredVirtualNetworks({
        accountId: "699d98642c564d2e855e9661899b7252",
        id: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
        isDefault: true,
        isDeleted: true,
        name: "us-east-1-vpc",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_tunnel_cloudflared_virtual_networks = cloudflare.get_zero_trust_tunnel_cloudflared_virtual_networks(account_id="699d98642c564d2e855e9661899b7252",
        id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
        is_default=True,
        is_deleted=True,
        name="us-east-1-vpc")
    
    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.LookupZeroTrustTunnelCloudflaredVirtualNetworks(ctx, &cloudflare.LookupZeroTrustTunnelCloudflaredVirtualNetworksArgs{
    			AccountId: "699d98642c564d2e855e9661899b7252",
    			Id:        pulumi.StringRef("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"),
    			IsDefault: pulumi.BoolRef(true),
    			IsDeleted: pulumi.BoolRef(true),
    			Name:      pulumi.StringRef("us-east-1-vpc"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleZeroTrustTunnelCloudflaredVirtualNetworks = Cloudflare.GetZeroTrustTunnelCloudflaredVirtualNetworks.Invoke(new()
        {
            AccountId = "699d98642c564d2e855e9661899b7252",
            Id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
            IsDefault = true,
            IsDeleted = true,
            Name = "us-east-1-vpc",
        });
    
    });
    
    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.GetZeroTrustTunnelCloudflaredVirtualNetworksArgs;
    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 exampleZeroTrustTunnelCloudflaredVirtualNetworks = CloudflareFunctions.getZeroTrustTunnelCloudflaredVirtualNetworks(GetZeroTrustTunnelCloudflaredVirtualNetworksArgs.builder()
                .accountId("699d98642c564d2e855e9661899b7252")
                .id("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
                .isDefault(true)
                .isDeleted(true)
                .name("us-east-1-vpc")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustTunnelCloudflaredVirtualNetworks:
        fn::invoke:
          function: cloudflare:getZeroTrustTunnelCloudflaredVirtualNetworks
          arguments:
            accountId: 699d98642c564d2e855e9661899b7252
            id: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415
            isDefault: true
            isDeleted: true
            name: us-east-1-vpc
    

    Using getZeroTrustTunnelCloudflaredVirtualNetworks

    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 getZeroTrustTunnelCloudflaredVirtualNetworks(args: GetZeroTrustTunnelCloudflaredVirtualNetworksArgs, opts?: InvokeOptions): Promise<GetZeroTrustTunnelCloudflaredVirtualNetworksResult>
    function getZeroTrustTunnelCloudflaredVirtualNetworksOutput(args: GetZeroTrustTunnelCloudflaredVirtualNetworksOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustTunnelCloudflaredVirtualNetworksResult>
    def get_zero_trust_tunnel_cloudflared_virtual_networks(account_id: Optional[str] = None,
                                                           id: Optional[str] = None,
                                                           is_default: Optional[bool] = None,
                                                           is_deleted: Optional[bool] = None,
                                                           max_items: Optional[int] = None,
                                                           name: Optional[str] = None,
                                                           opts: Optional[InvokeOptions] = None) -> GetZeroTrustTunnelCloudflaredVirtualNetworksResult
    def get_zero_trust_tunnel_cloudflared_virtual_networks_output(account_id: Optional[pulumi.Input[str]] = None,
                                                           id: Optional[pulumi.Input[str]] = None,
                                                           is_default: Optional[pulumi.Input[bool]] = None,
                                                           is_deleted: Optional[pulumi.Input[bool]] = None,
                                                           max_items: Optional[pulumi.Input[int]] = None,
                                                           name: Optional[pulumi.Input[str]] = None,
                                                           opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustTunnelCloudflaredVirtualNetworksResult]
    func LookupZeroTrustTunnelCloudflaredVirtualNetworks(ctx *Context, args *LookupZeroTrustTunnelCloudflaredVirtualNetworksArgs, opts ...InvokeOption) (*LookupZeroTrustTunnelCloudflaredVirtualNetworksResult, error)
    func LookupZeroTrustTunnelCloudflaredVirtualNetworksOutput(ctx *Context, args *LookupZeroTrustTunnelCloudflaredVirtualNetworksOutputArgs, opts ...InvokeOption) LookupZeroTrustTunnelCloudflaredVirtualNetworksResultOutput

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

    public static class GetZeroTrustTunnelCloudflaredVirtualNetworks 
    {
        public static Task<GetZeroTrustTunnelCloudflaredVirtualNetworksResult> InvokeAsync(GetZeroTrustTunnelCloudflaredVirtualNetworksArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustTunnelCloudflaredVirtualNetworksResult> Invoke(GetZeroTrustTunnelCloudflaredVirtualNetworksInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustTunnelCloudflaredVirtualNetworksResult> getZeroTrustTunnelCloudflaredVirtualNetworks(GetZeroTrustTunnelCloudflaredVirtualNetworksArgs args, InvokeOptions options)
    public static Output<GetZeroTrustTunnelCloudflaredVirtualNetworksResult> getZeroTrustTunnelCloudflaredVirtualNetworks(GetZeroTrustTunnelCloudflaredVirtualNetworksArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustTunnelCloudflaredVirtualNetworks:getZeroTrustTunnelCloudflaredVirtualNetworks
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Cloudflare account ID
    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.
    MaxItems int
    Max items to fetch, default: 1000
    Name string
    A user-friendly name for the virtual network.
    AccountId string
    Cloudflare account ID
    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.
    MaxItems int
    Max items to fetch, default: 1000
    Name string
    A user-friendly name for the virtual network.
    accountId String
    Cloudflare account ID
    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.
    maxItems Integer
    Max items to fetch, default: 1000
    name String
    A user-friendly name for the virtual network.
    accountId string
    Cloudflare account ID
    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.
    maxItems number
    Max items to fetch, default: 1000
    name string
    A user-friendly name for the virtual network.
    account_id str
    Cloudflare account ID
    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.
    max_items int
    Max items to fetch, default: 1000
    name str
    A user-friendly name for the virtual network.
    accountId String
    Cloudflare account ID
    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.
    maxItems Number
    Max items to fetch, default: 1000
    name String
    A user-friendly name for the virtual network.

    getZeroTrustTunnelCloudflaredVirtualNetworks Result

    The following output properties are available:

    AccountId string
    Cloudflare account ID
    Results List<GetZeroTrustTunnelCloudflaredVirtualNetworksResult>
    The items returned by the data source
    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.
    MaxItems int
    Max items to fetch, default: 1000
    Name string
    A user-friendly name for the virtual network.
    AccountId string
    Cloudflare account ID
    Results []GetZeroTrustTunnelCloudflaredVirtualNetworksResult
    The items returned by the data source
    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.
    MaxItems int
    Max items to fetch, default: 1000
    Name string
    A user-friendly name for the virtual network.
    accountId String
    Cloudflare account ID
    results List<GetZeroTrustTunnelCloudflaredVirtualNetworksResult>
    The items returned by the data source
    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.
    maxItems Integer
    Max items to fetch, default: 1000
    name String
    A user-friendly name for the virtual network.
    accountId string
    Cloudflare account ID
    results GetZeroTrustTunnelCloudflaredVirtualNetworksResult[]
    The items returned by the data source
    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.
    maxItems number
    Max items to fetch, default: 1000
    name string
    A user-friendly name for the virtual network.
    account_id str
    Cloudflare account ID
    results Sequence[GetZeroTrustTunnelCloudflaredVirtualNetworksResult]
    The items returned by the data source
    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.
    max_items int
    Max items to fetch, default: 1000
    name str
    A user-friendly name for the virtual network.
    accountId String
    Cloudflare account ID
    results List<Property Map>
    The items returned by the data source
    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.
    maxItems Number
    Max items to fetch, default: 1000
    name String
    A user-friendly name for the virtual network.

    Supporting Types

    GetZeroTrustTunnelCloudflaredVirtualNetworksResult

    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.
    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.
    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.
    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.
    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.
    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.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi