Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Core.getTunnelSecurityAssociations
Explore with Pulumi AI
This data source provides the list of Tunnel Security Associations in Oracle Cloud Infrastructure Core service.
Lists the tunnel security associations information for the specified IPSec tunnel ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTunnelSecurityAssociations = oci.Core.getTunnelSecurityAssociations({
ipsecId: testIpsec.id,
tunnelId: testTunnel.id,
});
import pulumi
import pulumi_oci as oci
test_tunnel_security_associations = oci.Core.get_tunnel_security_associations(ipsec_id=test_ipsec["id"],
tunnel_id=test_tunnel["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.GetTunnelSecurityAssociations(ctx, &core.GetTunnelSecurityAssociationsArgs{
IpsecId: testIpsec.Id,
TunnelId: testTunnel.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 testTunnelSecurityAssociations = Oci.Core.GetTunnelSecurityAssociations.Invoke(new()
{
IpsecId = testIpsec.Id,
TunnelId = testTunnel.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.GetTunnelSecurityAssociationsArgs;
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 testTunnelSecurityAssociations = CoreFunctions.getTunnelSecurityAssociations(GetTunnelSecurityAssociationsArgs.builder()
.ipsecId(testIpsec.id())
.tunnelId(testTunnel.id())
.build());
}
}
variables:
testTunnelSecurityAssociations:
fn::invoke:
Function: oci:Core:getTunnelSecurityAssociations
Arguments:
ipsecId: ${testIpsec.id}
tunnelId: ${testTunnel.id}
Using getTunnelSecurityAssociations
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 getTunnelSecurityAssociations(args: GetTunnelSecurityAssociationsArgs, opts?: InvokeOptions): Promise<GetTunnelSecurityAssociationsResult>
function getTunnelSecurityAssociationsOutput(args: GetTunnelSecurityAssociationsOutputArgs, opts?: InvokeOptions): Output<GetTunnelSecurityAssociationsResult>
def get_tunnel_security_associations(filters: Optional[Sequence[_core.GetTunnelSecurityAssociationsFilter]] = None,
ipsec_id: Optional[str] = None,
tunnel_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTunnelSecurityAssociationsResult
def get_tunnel_security_associations_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetTunnelSecurityAssociationsFilterArgs]]]] = None,
ipsec_id: Optional[pulumi.Input[str]] = None,
tunnel_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTunnelSecurityAssociationsResult]
func GetTunnelSecurityAssociations(ctx *Context, args *GetTunnelSecurityAssociationsArgs, opts ...InvokeOption) (*GetTunnelSecurityAssociationsResult, error)
func GetTunnelSecurityAssociationsOutput(ctx *Context, args *GetTunnelSecurityAssociationsOutputArgs, opts ...InvokeOption) GetTunnelSecurityAssociationsResultOutput
> Note: This function is named GetTunnelSecurityAssociations
in the Go SDK.
public static class GetTunnelSecurityAssociations
{
public static Task<GetTunnelSecurityAssociationsResult> InvokeAsync(GetTunnelSecurityAssociationsArgs args, InvokeOptions? opts = null)
public static Output<GetTunnelSecurityAssociationsResult> Invoke(GetTunnelSecurityAssociationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTunnelSecurityAssociationsResult> getTunnelSecurityAssociations(GetTunnelSecurityAssociationsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getTunnelSecurityAssociations:getTunnelSecurityAssociations
arguments:
# arguments dictionary
The following arguments are supported:
getTunnelSecurityAssociations Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipsec
Id string - Tunnel
Id string - Tunnel
Security List<GetAssociations Tunnel Security Associations Tunnel Security Association> - The list of tunnel_security_associations.
- Filters
List<Get
Tunnel Security Associations Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipsec
Id string - Tunnel
Id string - Tunnel
Security []GetAssociations Tunnel Security Associations Tunnel Security Association - The list of tunnel_security_associations.
- Filters
[]Get
Tunnel Security Associations Filter
- id String
- The provider-assigned unique ID for this managed resource.
- ipsec
Id String - tunnel
Id String - tunnel
Security List<GetAssociations Tunnel Security Associations Tunnel Security Association> - The list of tunnel_security_associations.
- filters
List<Get
Tunnel Security Associations Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- ipsec
Id string - tunnel
Id string - tunnel
Security GetAssociations Tunnel Security Associations Tunnel Security Association[] - The list of tunnel_security_associations.
- filters
Get
Tunnel Security Associations Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- ipsec_
id str - tunnel_
id str - tunnel_
security_ Sequence[core.associations Get Tunnel Security Associations Tunnel Security Association] - The list of tunnel_security_associations.
- filters
Sequence[core.
Get Tunnel Security Associations Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- ipsec
Id String - tunnel
Id String - tunnel
Security List<Property Map>Associations - The list of tunnel_security_associations.
- filters List<Property Map>
Supporting Types
GetTunnelSecurityAssociationsFilter
GetTunnelSecurityAssociationsTunnelSecurityAssociation
- Cpe
Subnet string - The IP address and mask of the partner subnet used in policy based VPNs or static routes.
- Oracle
Subnet string - The IP address and mask of the local subnet used in policy based VPNs or static routes.
- Time string
- Time in the current state, in seconds.
- Tunnel
Sa stringError Info - Current state if the IPSec tunnel status is not
UP
, including phase one and phase two details and a possible reason the tunnel is notUP
. - Tunnel
Sa stringStatus - The IPSec tunnel's phase one status.
- Cpe
Subnet string - The IP address and mask of the partner subnet used in policy based VPNs or static routes.
- Oracle
Subnet string - The IP address and mask of the local subnet used in policy based VPNs or static routes.
- Time string
- Time in the current state, in seconds.
- Tunnel
Sa stringError Info - Current state if the IPSec tunnel status is not
UP
, including phase one and phase two details and a possible reason the tunnel is notUP
. - Tunnel
Sa stringStatus - The IPSec tunnel's phase one status.
- cpe
Subnet String - The IP address and mask of the partner subnet used in policy based VPNs or static routes.
- oracle
Subnet String - The IP address and mask of the local subnet used in policy based VPNs or static routes.
- time String
- Time in the current state, in seconds.
- tunnel
Sa StringError Info - Current state if the IPSec tunnel status is not
UP
, including phase one and phase two details and a possible reason the tunnel is notUP
. - tunnel
Sa StringStatus - The IPSec tunnel's phase one status.
- cpe
Subnet string - The IP address and mask of the partner subnet used in policy based VPNs or static routes.
- oracle
Subnet string - The IP address and mask of the local subnet used in policy based VPNs or static routes.
- time string
- Time in the current state, in seconds.
- tunnel
Sa stringError Info - Current state if the IPSec tunnel status is not
UP
, including phase one and phase two details and a possible reason the tunnel is notUP
. - tunnel
Sa stringStatus - The IPSec tunnel's phase one status.
- cpe_
subnet str - The IP address and mask of the partner subnet used in policy based VPNs or static routes.
- oracle_
subnet str - The IP address and mask of the local subnet used in policy based VPNs or static routes.
- time str
- Time in the current state, in seconds.
- tunnel_
sa_ strerror_ info - Current state if the IPSec tunnel status is not
UP
, including phase one and phase two details and a possible reason the tunnel is notUP
. - tunnel_
sa_ strstatus - The IPSec tunnel's phase one status.
- cpe
Subnet String - The IP address and mask of the partner subnet used in policy based VPNs or static routes.
- oracle
Subnet String - The IP address and mask of the local subnet used in policy based VPNs or static routes.
- time String
- Time in the current state, in seconds.
- tunnel
Sa StringError Info - Current state if the IPSec tunnel status is not
UP
, including phase one and phase two details and a possible reason the tunnel is notUP
. - tunnel
Sa StringStatus - The IPSec tunnel's phase one status.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.