published on Monday, Nov 16, 2026 by e-breuninger
published on Monday, Nov 16, 2026 by e-breuninger
An IPSec policy (vpn.ipsecpolicy): the proposals and perfect forward secrecy group of an IPSec tunnel.
From the official documentation:
An IPSec policy defines a set of proposals to be used in the formation of IPSec tunnels. A perfect forward secrecy (PFS) group may optionally also be defined. These policies are referenced by IPSec profiles.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = new netbox.IpsecProposal("test", {
name: "test-ipsec-proposal",
encryptionAlgorithm: "aes-256-cbc",
});
const testIpsecPolicy = new netbox.IpsecPolicy("test", {
name: "test-ipsec-policy",
ipsecProposalIds: [test.ipsecProposalId],
pfsGroup: 14,
description: "test-description",
});
import pulumi
import pulumi_netbox as netbox
test = netbox.IpsecProposal("test",
name="test-ipsec-proposal",
encryption_algorithm="aes-256-cbc")
test_ipsec_policy = netbox.IpsecPolicy("test",
name="test-ipsec-policy",
ipsec_proposal_ids=[test.ipsec_proposal_id],
pfs_group=14,
description="test-description")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v6/netbox"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
test, err := netbox.NewIpsecProposal(ctx, "test", &netbox.IpsecProposalArgs{
Name: pulumi.String("test-ipsec-proposal"),
EncryptionAlgorithm: pulumi.String("aes-256-cbc"),
})
if err != nil {
return err
}
_, err = netbox.NewIpsecPolicy(ctx, "test", &netbox.IpsecPolicyArgs{
Name: pulumi.String("test-ipsec-policy"),
IpsecProposalIds: pulumi.Float64Array{
test.IpsecProposalId,
},
PfsGroup: pulumi.Float64(14),
Description: pulumi.String("test-description"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Netbox = Pulumi.Netbox;
return await Deployment.RunAsync(() =>
{
var test = new Netbox.IpsecProposal("test", new()
{
Name = "test-ipsec-proposal",
EncryptionAlgorithm = "aes-256-cbc",
});
var testIpsecPolicy = new Netbox.IpsecPolicy("test", new()
{
Name = "test-ipsec-policy",
IpsecProposalIds = new[]
{
test.IpsecProposalId,
},
PfsGroup = 14,
Description = "test-description",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.netbox.IpsecProposal;
import com.pulumi.netbox.IpsecProposalArgs;
import com.pulumi.netbox.IpsecPolicy;
import com.pulumi.netbox.IpsecPolicyArgs;
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 test = new IpsecProposal("test", IpsecProposalArgs.builder()
.name("test-ipsec-proposal")
.encryptionAlgorithm("aes-256-cbc")
.build());
var testIpsecPolicy = new IpsecPolicy("testIpsecPolicy", IpsecPolicyArgs.builder()
.name("test-ipsec-policy")
.ipsecProposalIds(test.ipsecProposalId())
.pfsGroup(14.0)
.description("test-description")
.build());
}
}
resources:
test:
type: netbox:IpsecProposal
properties:
name: test-ipsec-proposal
encryptionAlgorithm: aes-256-cbc
testIpsecPolicy:
type: netbox:IpsecPolicy
name: test
properties:
name: test-ipsec-policy
ipsecProposalIds:
- ${test.ipsecProposalId}
pfsGroup: 14
description: test-description
Example coming soon!
Create IpsecPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IpsecPolicy(name: string, args?: IpsecPolicyArgs, opts?: CustomResourceOptions);@overload
def IpsecPolicy(resource_name: str,
args: Optional[IpsecPolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def IpsecPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
comments: Optional[str] = None,
custom_fields: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
ipsec_proposal_ids: Optional[Sequence[float]] = None,
name: Optional[str] = None,
owner_id: Optional[float] = None,
pfs_group: Optional[float] = None,
tags: Optional[Sequence[str]] = None)func NewIpsecPolicy(ctx *Context, name string, args *IpsecPolicyArgs, opts ...ResourceOption) (*IpsecPolicy, error)public IpsecPolicy(string name, IpsecPolicyArgs? args = null, CustomResourceOptions? opts = null)
public IpsecPolicy(String name, IpsecPolicyArgs args)
public IpsecPolicy(String name, IpsecPolicyArgs args, CustomResourceOptions options)
type: netbox:IpsecPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "netbox_ipsec_policy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args IpsecPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IpsecPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IpsecPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpsecPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IpsecPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ipsecPolicyResource = new Netbox.IpsecPolicy("ipsecPolicyResource", new()
{
Comments = "string",
CustomFields =
{
{ "string", "string" },
},
Description = "string",
IpsecProposalIds = new[]
{
0.0,
},
Name = "string",
OwnerId = 0.0,
PfsGroup = 0.0,
Tags = new[]
{
"string",
},
});
example, err := netbox.NewIpsecPolicy(ctx, "ipsecPolicyResource", &netbox.IpsecPolicyArgs{
Comments: pulumi.String("string"),
CustomFields: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
IpsecProposalIds: pulumi.Float64Array{
pulumi.Float64(0),
},
Name: pulumi.String("string"),
OwnerId: pulumi.Float64(0),
PfsGroup: pulumi.Float64(0),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "netbox_ipsec_policy" "ipsecPolicyResource" {
lifecycle {
create_before_destroy = true
}
comments = "string"
custom_fields = {
"string" = "string"
}
description = "string"
ipsec_proposal_ids = [0]
name = "string"
owner_id = 0
pfs_group = 0
tags = ["string"]
}
var ipsecPolicyResource = new IpsecPolicy("ipsecPolicyResource", IpsecPolicyArgs.builder()
.comments("string")
.customFields(Map.of("string", "string"))
.description("string")
.ipsecProposalIds(0.0)
.name("string")
.ownerId(0.0)
.pfsGroup(0.0)
.tags("string")
.build());
ipsec_policy_resource = netbox.IpsecPolicy("ipsecPolicyResource",
comments="string",
custom_fields={
"string": "string",
},
description="string",
ipsec_proposal_ids=[float(0)],
name="string",
owner_id=float(0),
pfs_group=float(0),
tags=["string"])
const ipsecPolicyResource = new netbox.IpsecPolicy("ipsecPolicyResource", {
comments: "string",
customFields: {
string: "string",
},
description: "string",
ipsecProposalIds: [0],
name: "string",
ownerId: 0,
pfsGroup: 0,
tags: ["string"],
});
type: netbox:IpsecPolicy
properties:
comments: string
customFields:
string: string
description: string
ipsecProposalIds:
- 0
name: string
ownerId: 0
pfsGroup: 0
tags:
- string
IpsecPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The IpsecPolicy resource accepts the following input properties:
- Comments string
- Custom
Fields Dictionary<string, string> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- Description string
- Ipsec
Proposal List<double>Ids - Ids of the IPSec proposals the policy offers.
- Name string
- Owner
Id double - Id of the owner the object is assigned to.
- Pfs
Group double - Diffie-Hellman group for perfect forward secrecy. NetBox does not allow clearing it once set; leaving it unset keeps the current value. One of: 1, 2, 5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34.
- List<string>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Comments string
- Custom
Fields map[string]string - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- Description string
- Ipsec
Proposal []float64Ids - Ids of the IPSec proposals the policy offers.
- Name string
- Owner
Id float64 - Id of the owner the object is assigned to.
- Pfs
Group float64 - Diffie-Hellman group for perfect forward secrecy. NetBox does not allow clearing it once set; leaving it unset keeps the current value. One of: 1, 2, 5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34.
- []string
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- comments string
- custom_
fields map(string) - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description string
- ipsec_
proposal_ list(number)ids - Ids of the IPSec proposals the policy offers.
- name string
- owner_
id number - Id of the owner the object is assigned to.
- pfs_
group number - Diffie-Hellman group for perfect forward secrecy. NetBox does not allow clearing it once set; leaving it unset keeps the current value. One of: 1, 2, 5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34.
- list(string)
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- comments String
- custom
Fields Map<String,String> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description String
- ipsec
Proposal List<Double>Ids - Ids of the IPSec proposals the policy offers.
- name String
- owner
Id Double - Id of the owner the object is assigned to.
- pfs
Group Double - Diffie-Hellman group for perfect forward secrecy. NetBox does not allow clearing it once set; leaving it unset keeps the current value. One of: 1, 2, 5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- comments string
- custom
Fields {[key: string]: string} - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description string
- ipsec
Proposal number[]Ids - Ids of the IPSec proposals the policy offers.
- name string
- owner
Id number - Id of the owner the object is assigned to.
- pfs
Group number - Diffie-Hellman group for perfect forward secrecy. NetBox does not allow clearing it once set; leaving it unset keeps the current value. One of: 1, 2, 5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34.
- string[]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- comments str
- custom_
fields Mapping[str, str] - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description str
- ipsec_
proposal_ Sequence[float]ids - Ids of the IPSec proposals the policy offers.
- name str
- owner_
id float - Id of the owner the object is assigned to.
- pfs_
group float - Diffie-Hellman group for perfect forward secrecy. NetBox does not allow clearing it once set; leaving it unset keeps the current value. One of: 1, 2, 5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34.
- Sequence[str]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- comments String
- custom
Fields Map<String> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description String
- ipsec
Proposal List<Number>Ids - Ids of the IPSec proposals the policy offers.
- name String
- owner
Id Number - Id of the owner the object is assigned to.
- pfs
Group Number - Diffie-Hellman group for perfect forward secrecy. NetBox does not allow clearing it once set; leaving it unset keeps the current value. One of: 1, 2, 5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
Outputs
All input properties are implicitly available as output properties. Additionally, the IpsecPolicy resource produces the following output properties:
- Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipsec
Policy doubleId - NetBox id.
- Last
Updated string - List<string>
- Slugs of all tags on the object, including the provider's default_tags.
- Url string
- Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipsec
Policy float64Id - NetBox id.
- Last
Updated string - []string
- Slugs of all tags on the object, including the provider's default_tags.
- Url string
- created string
- id string
- The provider-assigned unique ID for this managed resource.
- ipsec_
policy_ numberid - NetBox id.
- last_
updated string - list(string)
- Slugs of all tags on the object, including the provider's default_tags.
- url string
- created String
- id String
- The provider-assigned unique ID for this managed resource.
- ipsec
Policy DoubleId - NetBox id.
- last
Updated String - List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- url String
- created string
- id string
- The provider-assigned unique ID for this managed resource.
- ipsec
Policy numberId - NetBox id.
- last
Updated string - string[]
- Slugs of all tags on the object, including the provider's default_tags.
- url string
- created str
- id str
- The provider-assigned unique ID for this managed resource.
- ipsec_
policy_ floatid - NetBox id.
- last_
updated str - Sequence[str]
- Slugs of all tags on the object, including the provider's default_tags.
- url str
- created String
- id String
- The provider-assigned unique ID for this managed resource.
- ipsec
Policy NumberId - NetBox id.
- last
Updated String - List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- url String
Look up Existing IpsecPolicy Resource
Get an existing IpsecPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: IpsecPolicyState, opts?: CustomResourceOptions): IpsecPolicy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comments: Optional[str] = None,
created: Optional[str] = None,
custom_fields: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
ipsec_policy_id: Optional[float] = None,
ipsec_proposal_ids: Optional[Sequence[float]] = None,
last_updated: Optional[str] = None,
name: Optional[str] = None,
owner_id: Optional[float] = None,
pfs_group: Optional[float] = None,
tags: Optional[Sequence[str]] = None,
tags_alls: Optional[Sequence[str]] = None,
url: Optional[str] = None) -> IpsecPolicyfunc GetIpsecPolicy(ctx *Context, name string, id IDInput, state *IpsecPolicyState, opts ...ResourceOption) (*IpsecPolicy, error)public static IpsecPolicy Get(string name, Input<string> id, IpsecPolicyState? state, CustomResourceOptions? opts = null)public static IpsecPolicy get(String name, Output<String> id, IpsecPolicyState state, CustomResourceOptions options)resources: existingIpsecPolicy: type: netbox:IpsecPolicy get: id: ${id}import {
to = netbox_ipsec_policy.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state IpsecPolicyState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state IpsecPolicyState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state IpsecPolicyState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state IpsecPolicyState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Comments string
- Created string
- Custom
Fields Dictionary<string, string> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- Description string
- Ipsec
Policy doubleId - NetBox id.
- Ipsec
Proposal List<double>Ids - Ids of the IPSec proposals the policy offers.
- Last
Updated string - Name string
- Owner
Id double - Id of the owner the object is assigned to.
- Pfs
Group double - Diffie-Hellman group for perfect forward secrecy. NetBox does not allow clearing it once set; leaving it unset keeps the current value. One of: 1, 2, 5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34.
- List<string>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- List<string>
- Slugs of all tags on the object, including the provider's default_tags.
- Url string
- Comments string
- Created string
- Custom
Fields map[string]string - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- Description string
- Ipsec
Policy float64Id - NetBox id.
- Ipsec
Proposal []float64Ids - Ids of the IPSec proposals the policy offers.
- Last
Updated string - Name string
- Owner
Id float64 - Id of the owner the object is assigned to.
- Pfs
Group float64 - Diffie-Hellman group for perfect forward secrecy. NetBox does not allow clearing it once set; leaving it unset keeps the current value. One of: 1, 2, 5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34.
- []string
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- []string
- Slugs of all tags on the object, including the provider's default_tags.
- Url string
- comments string
- created string
- custom_
fields map(string) - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description string
- ipsec_
policy_ numberid - NetBox id.
- ipsec_
proposal_ list(number)ids - Ids of the IPSec proposals the policy offers.
- last_
updated string - name string
- owner_
id number - Id of the owner the object is assigned to.
- pfs_
group number - Diffie-Hellman group for perfect forward secrecy. NetBox does not allow clearing it once set; leaving it unset keeps the current value. One of: 1, 2, 5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34.
- list(string)
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- list(string)
- Slugs of all tags on the object, including the provider's default_tags.
- url string
- comments String
- created String
- custom
Fields Map<String,String> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description String
- ipsec
Policy DoubleId - NetBox id.
- ipsec
Proposal List<Double>Ids - Ids of the IPSec proposals the policy offers.
- last
Updated String - name String
- owner
Id Double - Id of the owner the object is assigned to.
- pfs
Group Double - Diffie-Hellman group for perfect forward secrecy. NetBox does not allow clearing it once set; leaving it unset keeps the current value. One of: 1, 2, 5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- url String
- comments string
- created string
- custom
Fields {[key: string]: string} - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description string
- ipsec
Policy numberId - NetBox id.
- ipsec
Proposal number[]Ids - Ids of the IPSec proposals the policy offers.
- last
Updated string - name string
- owner
Id number - Id of the owner the object is assigned to.
- pfs
Group number - Diffie-Hellman group for perfect forward secrecy. NetBox does not allow clearing it once set; leaving it unset keeps the current value. One of: 1, 2, 5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34.
- string[]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- string[]
- Slugs of all tags on the object, including the provider's default_tags.
- url string
- comments str
- created str
- custom_
fields Mapping[str, str] - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description str
- ipsec_
policy_ floatid - NetBox id.
- ipsec_
proposal_ Sequence[float]ids - Ids of the IPSec proposals the policy offers.
- last_
updated str - name str
- owner_
id float - Id of the owner the object is assigned to.
- pfs_
group float - Diffie-Hellman group for perfect forward secrecy. NetBox does not allow clearing it once set; leaving it unset keeps the current value. One of: 1, 2, 5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34.
- Sequence[str]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Sequence[str]
- Slugs of all tags on the object, including the provider's default_tags.
- url str
- comments String
- created String
- custom
Fields Map<String> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description String
- ipsec
Policy NumberId - NetBox id.
- ipsec
Proposal List<Number>Ids - Ids of the IPSec proposals the policy offers.
- last
Updated String - name String
- owner
Id Number - Id of the owner the object is assigned to.
- pfs
Group Number - Diffie-Hellman group for perfect forward secrecy. NetBox does not allow clearing it once set; leaving it unset keeps the current value. One of: 1, 2, 5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- url String
Import
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = netbox_ipsec_policy.test
id = “123”
}
The pulumi import command can be used, for example:
$ pulumi import netbox:index/ipsecPolicy:IpsecPolicy test 123
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
published on Monday, Nov 16, 2026 by e-breuninger