1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getVirtualCircuitAssociatedTunnels
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

oci.Core.getVirtualCircuitAssociatedTunnels

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

    This data source provides the list of Virtual Circuit Associated Tunnels in Oracle Cloud Infrastructure Core service.

    Gets the specified virtual circuit’s associatedTunnelsInfo.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testVirtualCircuitAssociatedTunnels = oci.Core.getVirtualCircuitAssociatedTunnels({
        virtualCircuitId: oci_core_virtual_circuit.test_virtual_circuit.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_virtual_circuit_associated_tunnels = oci.Core.get_virtual_circuit_associated_tunnels(virtual_circuit_id=oci_core_virtual_circuit["test_virtual_circuit"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.GetVirtualCircuitAssociatedTunnels(ctx, &core.GetVirtualCircuitAssociatedTunnelsArgs{
    			VirtualCircuitId: oci_core_virtual_circuit.Test_virtual_circuit.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testVirtualCircuitAssociatedTunnels = Oci.Core.GetVirtualCircuitAssociatedTunnels.Invoke(new()
        {
            VirtualCircuitId = oci_core_virtual_circuit.Test_virtual_circuit.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.CoreFunctions;
    import com.pulumi.oci.Core.inputs.GetVirtualCircuitAssociatedTunnelsArgs;
    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 testVirtualCircuitAssociatedTunnels = CoreFunctions.getVirtualCircuitAssociatedTunnels(GetVirtualCircuitAssociatedTunnelsArgs.builder()
                .virtualCircuitId(oci_core_virtual_circuit.test_virtual_circuit().id())
                .build());
    
        }
    }
    
    variables:
      testVirtualCircuitAssociatedTunnels:
        fn::invoke:
          Function: oci:Core:getVirtualCircuitAssociatedTunnels
          Arguments:
            virtualCircuitId: ${oci_core_virtual_circuit.test_virtual_circuit.id}
    

    Using getVirtualCircuitAssociatedTunnels

    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 getVirtualCircuitAssociatedTunnels(args: GetVirtualCircuitAssociatedTunnelsArgs, opts?: InvokeOptions): Promise<GetVirtualCircuitAssociatedTunnelsResult>
    function getVirtualCircuitAssociatedTunnelsOutput(args: GetVirtualCircuitAssociatedTunnelsOutputArgs, opts?: InvokeOptions): Output<GetVirtualCircuitAssociatedTunnelsResult>
    def get_virtual_circuit_associated_tunnels(filters: Optional[Sequence[_core.GetVirtualCircuitAssociatedTunnelsFilter]] = None,
                                               virtual_circuit_id: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetVirtualCircuitAssociatedTunnelsResult
    def get_virtual_circuit_associated_tunnels_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetVirtualCircuitAssociatedTunnelsFilterArgs]]]] = None,
                                               virtual_circuit_id: Optional[pulumi.Input[str]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetVirtualCircuitAssociatedTunnelsResult]
    func GetVirtualCircuitAssociatedTunnels(ctx *Context, args *GetVirtualCircuitAssociatedTunnelsArgs, opts ...InvokeOption) (*GetVirtualCircuitAssociatedTunnelsResult, error)
    func GetVirtualCircuitAssociatedTunnelsOutput(ctx *Context, args *GetVirtualCircuitAssociatedTunnelsOutputArgs, opts ...InvokeOption) GetVirtualCircuitAssociatedTunnelsResultOutput

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

    public static class GetVirtualCircuitAssociatedTunnels 
    {
        public static Task<GetVirtualCircuitAssociatedTunnelsResult> InvokeAsync(GetVirtualCircuitAssociatedTunnelsArgs args, InvokeOptions? opts = null)
        public static Output<GetVirtualCircuitAssociatedTunnelsResult> Invoke(GetVirtualCircuitAssociatedTunnelsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVirtualCircuitAssociatedTunnelsResult> getVirtualCircuitAssociatedTunnels(GetVirtualCircuitAssociatedTunnelsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getVirtualCircuitAssociatedTunnels:getVirtualCircuitAssociatedTunnels
      arguments:
        # arguments dictionary

    The following arguments are supported:

    virtualCircuitId String
    The OCID of the virtual circuit.
    filters List<Property Map>

    getVirtualCircuitAssociatedTunnels Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    VirtualCircuitAssociatedTunnelDetails List<GetVirtualCircuitAssociatedTunnelsVirtualCircuitAssociatedTunnelDetail>
    The list of virtual_circuit_associated_tunnel_details.
    VirtualCircuitId string
    Filters List<GetVirtualCircuitAssociatedTunnelsFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    VirtualCircuitAssociatedTunnelDetails []GetVirtualCircuitAssociatedTunnelsVirtualCircuitAssociatedTunnelDetail
    The list of virtual_circuit_associated_tunnel_details.
    VirtualCircuitId string
    Filters []GetVirtualCircuitAssociatedTunnelsFilter
    id String
    The provider-assigned unique ID for this managed resource.
    virtualCircuitAssociatedTunnelDetails List<GetVirtualCircuitAssociatedTunnelsVirtualCircuitAssociatedTunnelDetail>
    The list of virtual_circuit_associated_tunnel_details.
    virtualCircuitId String
    filters List<GetVirtualCircuitAssociatedTunnelsFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    virtualCircuitAssociatedTunnelDetails GetVirtualCircuitAssociatedTunnelsVirtualCircuitAssociatedTunnelDetail[]
    The list of virtual_circuit_associated_tunnel_details.
    virtualCircuitId string
    filters GetVirtualCircuitAssociatedTunnelsFilter[]
    id String
    The provider-assigned unique ID for this managed resource.
    virtualCircuitAssociatedTunnelDetails List<Property Map>
    The list of virtual_circuit_associated_tunnel_details.
    virtualCircuitId String
    filters List<Property Map>

    Supporting Types

    GetVirtualCircuitAssociatedTunnelsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetVirtualCircuitAssociatedTunnelsVirtualCircuitAssociatedTunnelDetail

    IpsecConnectionId string
    The OCID of IPSec connection associated with the virtual circuit.
    TunnelId string
    The OCID of the IPSec tunnel associated with the virtual circuit.
    TunnelType string
    The type of the tunnel associated with the virtual circuit.
    IpsecConnectionId string
    The OCID of IPSec connection associated with the virtual circuit.
    TunnelId string
    The OCID of the IPSec tunnel associated with the virtual circuit.
    TunnelType string
    The type of the tunnel associated with the virtual circuit.
    ipsecConnectionId String
    The OCID of IPSec connection associated with the virtual circuit.
    tunnelId String
    The OCID of the IPSec tunnel associated with the virtual circuit.
    tunnelType String
    The type of the tunnel associated with the virtual circuit.
    ipsecConnectionId string
    The OCID of IPSec connection associated with the virtual circuit.
    tunnelId string
    The OCID of the IPSec tunnel associated with the virtual circuit.
    tunnelType string
    The type of the tunnel associated with the virtual circuit.
    ipsec_connection_id str
    The OCID of IPSec connection associated with the virtual circuit.
    tunnel_id str
    The OCID of the IPSec tunnel associated with the virtual circuit.
    tunnel_type str
    The type of the tunnel associated with the virtual circuit.
    ipsecConnectionId String
    The OCID of IPSec connection associated with the virtual circuit.
    tunnelId String
    The OCID of the IPSec tunnel associated with the virtual circuit.
    tunnelType String
    The type of the tunnel associated with the virtual circuit.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi