Provides a read-only data source for IPsecPolicy. 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 exampleIsIpsecPolicy = new ibm.IsIpsecPolicy("example", {
name: "my-ipsec-policy",
authenticationAlgorithm: "md5",
encryptionAlgorithm: "triple_des",
pfs: "disabled",
});
const example = ibm.getIsIpsecPolicyOutput({
ipsecPolicy: exampleIsIpsecPolicy.isIpsecPolicyId,
});
import pulumi
import pulumi_ibm as ibm
example_is_ipsec_policy = ibm.IsIpsecPolicy("example",
name="my-ipsec-policy",
authentication_algorithm="md5",
encryption_algorithm="triple_des",
pfs="disabled")
example = ibm.get_is_ipsec_policy_output(ipsec_policy=example_is_ipsec_policy.is_ipsec_policy_id)
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 {
exampleIsIpsecPolicy, err := ibm.NewIsIpsecPolicy(ctx, "example", &ibm.IsIpsecPolicyArgs{
Name: pulumi.String("my-ipsec-policy"),
AuthenticationAlgorithm: pulumi.String("md5"),
EncryptionAlgorithm: pulumi.String("triple_des"),
Pfs: pulumi.String("disabled"),
})
if err != nil {
return err
}
_ = ibm.LookupIsIpsecPolicyOutput(ctx, ibm.GetIsIpsecPolicyOutputArgs{
IpsecPolicy: exampleIsIpsecPolicy.IsIpsecPolicyId,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var exampleIsIpsecPolicy = new Ibm.IsIpsecPolicy("example", new()
{
Name = "my-ipsec-policy",
AuthenticationAlgorithm = "md5",
EncryptionAlgorithm = "triple_des",
Pfs = "disabled",
});
var example = Ibm.GetIsIpsecPolicy.Invoke(new()
{
IpsecPolicy = exampleIsIpsecPolicy.IsIpsecPolicyId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsIpsecPolicy;
import com.pulumi.ibm.IsIpsecPolicyArgs;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetIsIpsecPolicyArgs;
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) {
var exampleIsIpsecPolicy = new IsIpsecPolicy("exampleIsIpsecPolicy", IsIpsecPolicyArgs.builder()
.name("my-ipsec-policy")
.authenticationAlgorithm("md5")
.encryptionAlgorithm("triple_des")
.pfs("disabled")
.build());
final var example = IbmFunctions.getIsIpsecPolicy(GetIsIpsecPolicyArgs.builder()
.ipsecPolicy(exampleIsIpsecPolicy.isIpsecPolicyId())
.build());
}
}
resources:
exampleIsIpsecPolicy:
type: ibm:IsIpsecPolicy
name: example
properties:
name: my-ipsec-policy
authenticationAlgorithm: md5
encryptionAlgorithm: triple_des
pfs: disabled
variables:
example:
fn::invoke:
function: ibm:getIsIpsecPolicy
arguments:
ipsecPolicy: ${exampleIsIpsecPolicy.isIpsecPolicyId}
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const exampleIsIpsecPolicy = new ibm.IsIpsecPolicy("example", {
name: "my-ipsec-policy",
authenticationAlgorithm: "md5",
encryptionAlgorithm: "triple_des",
pfs: "disabled",
});
const example = ibm.getIsIpsecPolicyOutput({
name: exampleIsIpsecPolicy.name,
});
import pulumi
import pulumi_ibm as ibm
example_is_ipsec_policy = ibm.IsIpsecPolicy("example",
name="my-ipsec-policy",
authentication_algorithm="md5",
encryption_algorithm="triple_des",
pfs="disabled")
example = ibm.get_is_ipsec_policy_output(name=example_is_ipsec_policy.name)
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 {
exampleIsIpsecPolicy, err := ibm.NewIsIpsecPolicy(ctx, "example", &ibm.IsIpsecPolicyArgs{
Name: pulumi.String("my-ipsec-policy"),
AuthenticationAlgorithm: pulumi.String("md5"),
EncryptionAlgorithm: pulumi.String("triple_des"),
Pfs: pulumi.String("disabled"),
})
if err != nil {
return err
}
_ = ibm.LookupIsIpsecPolicyOutput(ctx, ibm.GetIsIpsecPolicyOutputArgs{
Name: exampleIsIpsecPolicy.Name,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var exampleIsIpsecPolicy = new Ibm.IsIpsecPolicy("example", new()
{
Name = "my-ipsec-policy",
AuthenticationAlgorithm = "md5",
EncryptionAlgorithm = "triple_des",
Pfs = "disabled",
});
var example = Ibm.GetIsIpsecPolicy.Invoke(new()
{
Name = exampleIsIpsecPolicy.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsIpsecPolicy;
import com.pulumi.ibm.IsIpsecPolicyArgs;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetIsIpsecPolicyArgs;
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) {
var exampleIsIpsecPolicy = new IsIpsecPolicy("exampleIsIpsecPolicy", IsIpsecPolicyArgs.builder()
.name("my-ipsec-policy")
.authenticationAlgorithm("md5")
.encryptionAlgorithm("triple_des")
.pfs("disabled")
.build());
final var example = IbmFunctions.getIsIpsecPolicy(GetIsIpsecPolicyArgs.builder()
.name(exampleIsIpsecPolicy.name())
.build());
}
}
resources:
exampleIsIpsecPolicy:
type: ibm:IsIpsecPolicy
name: example
properties:
name: my-ipsec-policy
authenticationAlgorithm: md5
encryptionAlgorithm: triple_des
pfs: disabled
variables:
example:
fn::invoke:
function: ibm:getIsIpsecPolicy
arguments:
name: ${exampleIsIpsecPolicy.name}
Using getIsIpsecPolicy
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 getIsIpsecPolicy(args: GetIsIpsecPolicyArgs, opts?: InvokeOptions): Promise<GetIsIpsecPolicyResult>
function getIsIpsecPolicyOutput(args: GetIsIpsecPolicyOutputArgs, opts?: InvokeOptions): Output<GetIsIpsecPolicyResult>def get_is_ipsec_policy(id: Optional[str] = None,
ipsec_policy: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsIpsecPolicyResult
def get_is_ipsec_policy_output(id: Optional[pulumi.Input[str]] = None,
ipsec_policy: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsIpsecPolicyResult]func LookupIsIpsecPolicy(ctx *Context, args *LookupIsIpsecPolicyArgs, opts ...InvokeOption) (*LookupIsIpsecPolicyResult, error)
func LookupIsIpsecPolicyOutput(ctx *Context, args *LookupIsIpsecPolicyOutputArgs, opts ...InvokeOption) LookupIsIpsecPolicyResultOutput> Note: This function is named LookupIsIpsecPolicy in the Go SDK.
public static class GetIsIpsecPolicy
{
public static Task<GetIsIpsecPolicyResult> InvokeAsync(GetIsIpsecPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetIsIpsecPolicyResult> Invoke(GetIsIpsecPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIsIpsecPolicyResult> getIsIpsecPolicy(GetIsIpsecPolicyArgs args, InvokeOptions options)
public static Output<GetIsIpsecPolicyResult> getIsIpsecPolicy(GetIsIpsecPolicyArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsIpsecPolicy:getIsIpsecPolicy
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- (String) The unique identifier for this resource group.
- Ipsec
Policy string The IPsec policy identifier.
NOTE One of
ipsec_policyornameis required- Name string
The name of the ipsec policy
NOTE One of
ipsec_policyornameis required
- Id string
- (String) The unique identifier for this resource group.
- Ipsec
Policy string The IPsec policy identifier.
NOTE One of
ipsec_policyornameis required- Name string
The name of the ipsec policy
NOTE One of
ipsec_policyornameis required
- id String
- (String) The unique identifier for this resource group.
- ipsec
Policy String The IPsec policy identifier.
NOTE One of
ipsec_policyornameis required- name String
The name of the ipsec policy
NOTE One of
ipsec_policyornameis required
- id string
- (String) The unique identifier for this resource group.
- ipsec
Policy string The IPsec policy identifier.
NOTE One of
ipsec_policyornameis required- name string
The name of the ipsec policy
NOTE One of
ipsec_policyornameis required
- id str
- (String) The unique identifier for this resource group.
- ipsec_
policy str The IPsec policy identifier.
NOTE One of
ipsec_policyornameis required- name str
The name of the ipsec policy
NOTE One of
ipsec_policyornameis required
- id String
- (String) The unique identifier for this resource group.
- ipsec
Policy String The IPsec policy identifier.
NOTE One of
ipsec_policyornameis required- name String
The name of the ipsec policy
NOTE One of
ipsec_policyornameis required
getIsIpsecPolicy Result
The following output properties are available:
- Authentication
Algorithm string - (String) The authentication algorithm.
- Connections
List<Get
Is Ipsec Policy Connection> - (List) The VPN gateway connections that use this IPsec policy.
- Created
At string - (String) The date and time that this IPsec policy was created.
- Encapsulation
Mode string - (String) The encapsulation mode used. Only
tunnelis supported. - Encryption
Algorithm string - (String) The encryption algorithm.
- Href string
- (String) The URL for this resource group.
- Id string
- (String) The unique identifier for this resource group.
- Key
Lifetime double - (Integer) The key lifetime in seconds.
- Pfs string
- (String) Perfect Forward Secrecy.
- Resource
Groups List<GetIs Ipsec Policy Resource Group> - (List) The resource group object, for this IPsec policy.
- Resource
Type string - (String) The resource type.
- Transform
Protocol string - (String) The transform protocol used. Only
espis supported. - Ipsec
Policy string - Name string
- (String) The user-defined name for this resource group.
- Authentication
Algorithm string - (String) The authentication algorithm.
- Connections
[]Get
Is Ipsec Policy Connection - (List) The VPN gateway connections that use this IPsec policy.
- Created
At string - (String) The date and time that this IPsec policy was created.
- Encapsulation
Mode string - (String) The encapsulation mode used. Only
tunnelis supported. - Encryption
Algorithm string - (String) The encryption algorithm.
- Href string
- (String) The URL for this resource group.
- Id string
- (String) The unique identifier for this resource group.
- Key
Lifetime float64 - (Integer) The key lifetime in seconds.
- Pfs string
- (String) Perfect Forward Secrecy.
- Resource
Groups []GetIs Ipsec Policy Resource Group - (List) The resource group object, for this IPsec policy.
- Resource
Type string - (String) The resource type.
- Transform
Protocol string - (String) The transform protocol used. Only
espis supported. - Ipsec
Policy string - Name string
- (String) The user-defined name for this resource group.
- authentication
Algorithm String - (String) The authentication algorithm.
- connections
List<Get
Is Ipsec Policy Connection> - (List) The VPN gateway connections that use this IPsec policy.
- created
At String - (String) The date and time that this IPsec policy was created.
- encapsulation
Mode String - (String) The encapsulation mode used. Only
tunnelis supported. - encryption
Algorithm String - (String) The encryption algorithm.
- href String
- (String) The URL for this resource group.
- id String
- (String) The unique identifier for this resource group.
- key
Lifetime Double - (Integer) The key lifetime in seconds.
- pfs String
- (String) Perfect Forward Secrecy.
- resource
Groups List<GetIs Ipsec Policy Resource Group> - (List) The resource group object, for this IPsec policy.
- resource
Type String - (String) The resource type.
- transform
Protocol String - (String) The transform protocol used. Only
espis supported. - ipsec
Policy String - name String
- (String) The user-defined name for this resource group.
- authentication
Algorithm string - (String) The authentication algorithm.
- connections
Get
Is Ipsec Policy Connection[] - (List) The VPN gateway connections that use this IPsec policy.
- created
At string - (String) The date and time that this IPsec policy was created.
- encapsulation
Mode string - (String) The encapsulation mode used. Only
tunnelis supported. - encryption
Algorithm string - (String) The encryption algorithm.
- href string
- (String) The URL for this resource group.
- id string
- (String) The unique identifier for this resource group.
- key
Lifetime number - (Integer) The key lifetime in seconds.
- pfs string
- (String) Perfect Forward Secrecy.
- resource
Groups GetIs Ipsec Policy Resource Group[] - (List) The resource group object, for this IPsec policy.
- resource
Type string - (String) The resource type.
- transform
Protocol string - (String) The transform protocol used. Only
espis supported. - ipsec
Policy string - name string
- (String) The user-defined name for this resource group.
- authentication_
algorithm str - (String) The authentication algorithm.
- connections
Sequence[Get
Is Ipsec Policy Connection] - (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
tunnelis 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.
- pfs str
- (String) Perfect Forward Secrecy.
- resource_
groups Sequence[GetIs Ipsec Policy Resource Group] - (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
espis supported. - ipsec_
policy str - name str
- (String) The user-defined name for this resource group.
- authentication
Algorithm String - (String) The authentication algorithm.
- connections List<Property Map>
- (List) The VPN gateway connections that use this IPsec policy.
- created
At String - (String) The date and time that this IPsec policy was created.
- encapsulation
Mode String - (String) The encapsulation mode used. Only
tunnelis supported. - encryption
Algorithm String - (String) The encryption algorithm.
- href String
- (String) The URL for this resource group.
- id String
- (String) The unique identifier for this resource group.
- key
Lifetime Number - (Integer) The key lifetime in seconds.
- pfs String
- (String) Perfect Forward Secrecy.
- resource
Groups List<Property Map> - (List) The resource group object, for this IPsec policy.
- resource
Type String - (String) The resource type.
- transform
Protocol String - (String) The transform protocol used. Only
espis supported. - ipsec
Policy String - name String
- (String) The user-defined name for this resource group.
Supporting Types
GetIsIpsecPolicyConnection
- Deleteds
List<Get
Is Ipsec Policy Connection Deleted> - (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
The name of the ipsec policy
NOTE One of
ipsec_policyornameis required- Resource
Type string - (String) The resource type.
- Deleteds
[]Get
Is Ipsec Policy Connection Deleted - (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
The name of the ipsec policy
NOTE One of
ipsec_policyornameis required- Resource
Type string - (String) The resource type.
- deleteds
List<Get
Is Ipsec Policy Connection Deleted> - (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
The name of the ipsec policy
NOTE One of
ipsec_policyornameis required- resource
Type String - (String) The resource type.
- deleteds
Get
Is Ipsec Policy Connection Deleted[] - (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
The name of the ipsec policy
NOTE One of
ipsec_policyornameis required- resource
Type string - (String) The resource type.
- deleteds
Sequence[Get
Is Ipsec Policy Connection Deleted] - (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
The name of the ipsec policy
NOTE One of
ipsec_policyornameis required- 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
The name of the ipsec policy
NOTE One of
ipsec_policyornameis required- resource
Type String - (String) The resource type.
GetIsIpsecPolicyConnectionDeleted
- More
Info string - (String) Link to documentation about deleted resources.
- More
Info string - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
- more
Info string - (String) Link to documentation about deleted resources.
- more_
info str - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
GetIsIpsecPolicyResourceGroup
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.
