1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsIpsecPolicies
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getIsIpsecPolicies

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a read-only data source for IPsecPolicyCollection. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. For more information, about managing IBM Cloud VPN Gateway and IPsec policy , see about site-to-site VPN gateways.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = ibm.getIsIpsecPolicies({});
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_ipsec_policies()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetIsIpsecPolicies(ctx, &ibm.GetIsIpsecPoliciesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ibm.GetIsIpsecPolicies.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetIsIpsecPoliciesArgs;
    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 example = IbmFunctions.getIsIpsecPolicies();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsIpsecPolicies
          arguments: {}
    

    Using getIsIpsecPolicies

    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 getIsIpsecPolicies(args: GetIsIpsecPoliciesArgs, opts?: InvokeOptions): Promise<GetIsIpsecPoliciesResult>
    function getIsIpsecPoliciesOutput(args: GetIsIpsecPoliciesOutputArgs, opts?: InvokeOptions): Output<GetIsIpsecPoliciesResult>
    def get_is_ipsec_policies(id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetIsIpsecPoliciesResult
    def get_is_ipsec_policies_output(id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetIsIpsecPoliciesResult]
    func GetIsIpsecPolicies(ctx *Context, args *GetIsIpsecPoliciesArgs, opts ...InvokeOption) (*GetIsIpsecPoliciesResult, error)
    func GetIsIpsecPoliciesOutput(ctx *Context, args *GetIsIpsecPoliciesOutputArgs, opts ...InvokeOption) GetIsIpsecPoliciesResultOutput

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

    public static class GetIsIpsecPolicies 
    {
        public static Task<GetIsIpsecPoliciesResult> InvokeAsync(GetIsIpsecPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetIsIpsecPoliciesResult> Invoke(GetIsIpsecPoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsIpsecPoliciesResult> getIsIpsecPolicies(GetIsIpsecPoliciesArgs args, InvokeOptions options)
    public static Output<GetIsIpsecPoliciesResult> getIsIpsecPolicies(GetIsIpsecPoliciesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsIpsecPolicies:getIsIpsecPolicies
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    (String) The unique identifier for this resource group.
    Id string
    (String) The unique identifier for this resource group.
    id String
    (String) The unique identifier for this resource group.
    id string
    (String) The unique identifier for this resource group.
    id str
    (String) The unique identifier for this resource group.
    id String
    (String) The unique identifier for this resource group.

    getIsIpsecPolicies Result

    The following output properties are available:

    Id string
    (String) The unique identifier for this resource group.
    IpsecPolicies List<GetIsIpsecPoliciesIpsecPolicy>
    (List) Collection of IPsec policies.
    Id string
    (String) The unique identifier for this resource group.
    IpsecPolicies []GetIsIpsecPoliciesIpsecPolicy
    (List) Collection of IPsec policies.
    id String
    (String) The unique identifier for this resource group.
    ipsecPolicies List<GetIsIpsecPoliciesIpsecPolicy>
    (List) Collection of IPsec policies.
    id string
    (String) The unique identifier for this resource group.
    ipsecPolicies GetIsIpsecPoliciesIpsecPolicy[]
    (List) Collection of IPsec policies.
    id str
    (String) The unique identifier for this resource group.
    ipsec_policies Sequence[GetIsIpsecPoliciesIpsecPolicy]
    (List) Collection of IPsec policies.
    id String
    (String) The unique identifier for this resource group.
    ipsecPolicies List<Property Map>
    (List) Collection of IPsec policies.

    Supporting Types

    GetIsIpsecPoliciesIpsecPolicy

    AuthenticationAlgorithm string
    (String) The authentication algorithm.
    Connections List<GetIsIpsecPoliciesIpsecPolicyConnection>
    (List) The VPN gateway connections that use this IPsec policy.
    CreatedAt string
    (String) The date and time that this IPsec policy was created.
    EncapsulationMode string
    (String) The encapsulation mode used. Only tunnel is supported.
    EncryptionAlgorithm string
    (String) The encryption algorithm.
    Href string
    (String) The URL for this resource group.
    Id string
    (String) The unique identifier for this resource group.
    KeyLifetime double
    (Integer) The key lifetime in seconds.
    Name string
    (String) The user-defined name for this resource group.
    Pfs string
    (String) Perfect Forward Secrecy.
    ResourceGroups List<GetIsIpsecPoliciesIpsecPolicyResourceGroup>
    (List) The resource group object, for this IPsec policy.
    ResourceType string
    (String) The resource type.
    TransformProtocol string
    (String) The transform protocol used. Only esp is supported.
    AuthenticationAlgorithm string
    (String) The authentication algorithm.
    Connections []GetIsIpsecPoliciesIpsecPolicyConnection
    (List) The VPN gateway connections that use this IPsec policy.
    CreatedAt string
    (String) The date and time that this IPsec policy was created.
    EncapsulationMode string
    (String) The encapsulation mode used. Only tunnel is supported.
    EncryptionAlgorithm string
    (String) The encryption algorithm.
    Href string
    (String) The URL for this resource group.
    Id string
    (String) The unique identifier for this resource group.
    KeyLifetime float64
    (Integer) The key lifetime in seconds.
    Name string
    (String) The user-defined name for this resource group.
    Pfs string
    (String) Perfect Forward Secrecy.
    ResourceGroups []GetIsIpsecPoliciesIpsecPolicyResourceGroup
    (List) The resource group object, for this IPsec policy.
    ResourceType string
    (String) The resource type.
    TransformProtocol string
    (String) The transform protocol used. Only esp is supported.
    authenticationAlgorithm String
    (String) The authentication algorithm.
    connections List<GetIsIpsecPoliciesIpsecPolicyConnection>
    (List) The VPN gateway connections that use this IPsec policy.
    createdAt String
    (String) The date and time that this IPsec policy was created.
    encapsulationMode String
    (String) The encapsulation mode used. Only tunnel is supported.
    encryptionAlgorithm String
    (String) The encryption algorithm.
    href String
    (String) The URL for this resource group.
    id String
    (String) The unique identifier for this resource group.
    keyLifetime Double
    (Integer) The key lifetime in seconds.
    name String
    (String) The user-defined name for this resource group.
    pfs String
    (String) Perfect Forward Secrecy.
    resourceGroups List<GetIsIpsecPoliciesIpsecPolicyResourceGroup>
    (List) The resource group object, for this IPsec policy.
    resourceType String
    (String) The resource type.
    transformProtocol String
    (String) The transform protocol used. Only esp is supported.
    authenticationAlgorithm string
    (String) The authentication algorithm.
    connections GetIsIpsecPoliciesIpsecPolicyConnection[]
    (List) The VPN gateway connections that use this IPsec policy.
    createdAt string
    (String) The date and time that this IPsec policy was created.
    encapsulationMode string
    (String) The encapsulation mode used. Only tunnel is supported.
    encryptionAlgorithm string
    (String) The encryption algorithm.
    href string
    (String) The URL for this resource group.
    id string
    (String) The unique identifier for this resource group.
    keyLifetime number
    (Integer) The key lifetime in seconds.
    name string
    (String) The user-defined name for this resource group.
    pfs string
    (String) Perfect Forward Secrecy.
    resourceGroups GetIsIpsecPoliciesIpsecPolicyResourceGroup[]
    (List) The resource group object, for this IPsec policy.
    resourceType string
    (String) The resource type.
    transformProtocol string
    (String) The transform protocol used. Only esp is supported.
    authentication_algorithm str
    (String) The authentication algorithm.
    connections Sequence[GetIsIpsecPoliciesIpsecPolicyConnection]
    (List) The VPN gateway connections that use this IPsec policy.
    created_at str
    (String) The date and time that this IPsec policy was created.
    encapsulation_mode str
    (String) The encapsulation mode used. Only tunnel is supported.
    encryption_algorithm str
    (String) The encryption algorithm.
    href str
    (String) The URL for this resource group.
    id str
    (String) The unique identifier for this resource group.
    key_lifetime float
    (Integer) The key lifetime in seconds.
    name str
    (String) The user-defined name for this resource group.
    pfs str
    (String) Perfect Forward Secrecy.
    resource_groups Sequence[GetIsIpsecPoliciesIpsecPolicyResourceGroup]
    (List) The resource group object, for this IPsec policy.
    resource_type str
    (String) The resource type.
    transform_protocol str
    (String) The transform protocol used. Only esp is supported.
    authenticationAlgorithm String
    (String) The authentication algorithm.
    connections List<Property Map>
    (List) The VPN gateway connections that use this IPsec policy.
    createdAt String
    (String) The date and time that this IPsec policy was created.
    encapsulationMode String
    (String) The encapsulation mode used. Only tunnel is supported.
    encryptionAlgorithm String
    (String) The encryption algorithm.
    href String
    (String) The URL for this resource group.
    id String
    (String) The unique identifier for this resource group.
    keyLifetime Number
    (Integer) The key lifetime in seconds.
    name String
    (String) The user-defined name for this resource group.
    pfs String
    (String) Perfect Forward Secrecy.
    resourceGroups List<Property Map>
    (List) The resource group object, for this IPsec policy.
    resourceType String
    (String) The resource type.
    transformProtocol String
    (String) The transform protocol used. Only esp is supported.

    GetIsIpsecPoliciesIpsecPolicyConnection

    Deleteds List<GetIsIpsecPoliciesIpsecPolicyConnectionDeleted>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
    Href string
    (String) The URL for this resource group.
    Id string
    (String) The unique identifier for this resource group.
    Name string
    (String) The user-defined name for this resource group.
    ResourceType string
    (String) The resource type.
    Deleteds []GetIsIpsecPoliciesIpsecPolicyConnectionDeleted
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
    Href string
    (String) The URL for this resource group.
    Id string
    (String) The unique identifier for this resource group.
    Name string
    (String) The user-defined name for this resource group.
    ResourceType string
    (String) The resource type.
    deleteds List<GetIsIpsecPoliciesIpsecPolicyConnectionDeleted>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
    href String
    (String) The URL for this resource group.
    id String
    (String) The unique identifier for this resource group.
    name String
    (String) The user-defined name for this resource group.
    resourceType String
    (String) The resource type.
    deleteds GetIsIpsecPoliciesIpsecPolicyConnectionDeleted[]
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
    href string
    (String) The URL for this resource group.
    id string
    (String) The unique identifier for this resource group.
    name string
    (String) The user-defined name for this resource group.
    resourceType string
    (String) The resource type.
    deleteds Sequence[GetIsIpsecPoliciesIpsecPolicyConnectionDeleted]
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
    href str
    (String) The URL for this resource group.
    id str
    (String) The unique identifier for this resource group.
    name str
    (String) The user-defined name for this resource group.
    resource_type str
    (String) The resource type.
    deleteds List<Property Map>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
    href String
    (String) The URL for this resource group.
    id String
    (String) The unique identifier for this resource group.
    name String
    (String) The user-defined name for this resource group.
    resourceType String
    (String) The resource type.

    GetIsIpsecPoliciesIpsecPolicyConnectionDeleted

    MoreInfo string
    (String) Link to documentation about deleted resources.
    MoreInfo string
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.
    moreInfo string
    (String) Link to documentation about deleted resources.
    more_info str
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.

    GetIsIpsecPoliciesIpsecPolicyResourceGroup

    Href string
    (String) The URL for this resource group.
    Id string
    (String) The unique identifier for this resource group.
    Name string
    (String) The user-defined name for this resource group.
    Href string
    (String) The URL for this resource group.
    Id string
    (String) The unique identifier for this resource group.
    Name string
    (String) The user-defined name for this resource group.
    href String
    (String) The URL for this resource group.
    id String
    (String) The unique identifier for this resource group.
    name String
    (String) The user-defined name for this resource group.
    href string
    (String) The URL for this resource group.
    id string
    (String) The unique identifier for this resource group.
    name string
    (String) The user-defined name for this resource group.
    href str
    (String) The URL for this resource group.
    id str
    (String) The unique identifier for this resource group.
    name str
    (String) The user-defined name for this resource group.
    href String
    (String) The URL for this resource group.
    id String
    (String) The unique identifier for this resource group.
    name String
    (String) The user-defined name for this resource group.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud