Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Core.getVirtualCircuitAssociatedTunnels
Explore with Pulumi AI
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: testVirtualCircuit.id,
});
import pulumi
import pulumi_oci as oci
test_virtual_circuit_associated_tunnels = oci.Core.get_virtual_circuit_associated_tunnels(virtual_circuit_id=test_virtual_circuit["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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: testVirtualCircuit.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 = testVirtualCircuit.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(testVirtualCircuit.id())
.build());
}
}
variables:
testVirtualCircuitAssociatedTunnels:
fn::invoke:
Function: oci:Core:getVirtualCircuitAssociatedTunnels
Arguments:
virtualCircuitId: ${testVirtualCircuit.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:
- Virtual
Circuit stringId - The OCID of the virtual circuit.
- Filters
List<Get
Virtual Circuit Associated Tunnels Filter>
- Virtual
Circuit stringId - The OCID of the virtual circuit.
- Filters
[]Get
Virtual Circuit Associated Tunnels Filter
- virtual
Circuit StringId - The OCID of the virtual circuit.
- filters
List<Get
Virtual Circuit Associated Tunnels Filter>
- virtual
Circuit stringId - The OCID of the virtual circuit.
- filters
Get
Virtual Circuit Associated Tunnels Filter[]
- virtual_
circuit_ strid - The OCID of the virtual circuit.
- filters
Sequence[core.
Get Virtual Circuit Associated Tunnels Filter]
- virtual
Circuit StringId - 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.
- Virtual
Circuit List<GetAssociated Tunnel Details Virtual Circuit Associated Tunnels Virtual Circuit Associated Tunnel Detail> - The list of virtual_circuit_associated_tunnel_details.
- Virtual
Circuit stringId - Filters
List<Get
Virtual Circuit Associated Tunnels Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Virtual
Circuit []GetAssociated Tunnel Details Virtual Circuit Associated Tunnels Virtual Circuit Associated Tunnel Detail - The list of virtual_circuit_associated_tunnel_details.
- Virtual
Circuit stringId - Filters
[]Get
Virtual Circuit Associated Tunnels Filter
- id String
- The provider-assigned unique ID for this managed resource.
- virtual
Circuit List<GetAssociated Tunnel Details Virtual Circuit Associated Tunnels Virtual Circuit Associated Tunnel Detail> - The list of virtual_circuit_associated_tunnel_details.
- virtual
Circuit StringId - filters
List<Get
Virtual Circuit Associated Tunnels Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- virtual
Circuit GetAssociated Tunnel Details Virtual Circuit Associated Tunnels Virtual Circuit Associated Tunnel Detail[] - The list of virtual_circuit_associated_tunnel_details.
- virtual
Circuit stringId - filters
Get
Virtual Circuit Associated Tunnels Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- virtual_
circuit_ Sequence[core.associated_ tunnel_ details Get Virtual Circuit Associated Tunnels Virtual Circuit Associated Tunnel Detail] - The list of virtual_circuit_associated_tunnel_details.
- virtual_
circuit_ strid - filters
Sequence[core.
Get Virtual Circuit Associated Tunnels Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- virtual
Circuit List<Property Map>Associated Tunnel Details - The list of virtual_circuit_associated_tunnel_details.
- virtual
Circuit StringId - filters List<Property Map>
Supporting Types
GetVirtualCircuitAssociatedTunnelsFilter
GetVirtualCircuitAssociatedTunnelsVirtualCircuitAssociatedTunnelDetail
- Ipsec
Connection stringId - The OCID of IPSec connection associated with the virtual circuit.
- Tunnel
Id string - The OCID of the IPSec tunnel associated with the virtual circuit.
- Tunnel
Type string - The type of the tunnel associated with the virtual circuit.
- Ipsec
Connection stringId - The OCID of IPSec connection associated with the virtual circuit.
- Tunnel
Id string - The OCID of the IPSec tunnel associated with the virtual circuit.
- Tunnel
Type string - The type of the tunnel associated with the virtual circuit.
- ipsec
Connection StringId - The OCID of IPSec connection associated with the virtual circuit.
- tunnel
Id String - The OCID of the IPSec tunnel associated with the virtual circuit.
- tunnel
Type String - The type of the tunnel associated with the virtual circuit.
- ipsec
Connection stringId - The OCID of IPSec connection associated with the virtual circuit.
- tunnel
Id string - The OCID of the IPSec tunnel associated with the virtual circuit.
- tunnel
Type string - The type of the tunnel associated with the virtual circuit.
- ipsec_
connection_ strid - 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.
- ipsec
Connection StringId - The OCID of IPSec connection associated with the virtual circuit.
- tunnel
Id String - The OCID of the IPSec tunnel associated with the virtual circuit.
- tunnel
Type 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.