1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. IpsecPolicy
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.1
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
    CustomFields 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
    IpsecProposalIds List<double>
    Ids of the IPSec proposals the policy offers.
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    PfsGroup 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.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    Comments string
    CustomFields 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
    IpsecProposalIds []float64
    Ids of the IPSec proposals the policy offers.
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    PfsGroup 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.
    Tags []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_ids list(number)
    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.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    comments String
    customFields 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
    ipsecProposalIds List<Double>
    Ids of the IPSec proposals the policy offers.
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    pfsGroup 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.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    comments string
    customFields {[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
    ipsecProposalIds number[]
    Ids of the IPSec proposals the policy offers.
    name string
    ownerId number
    Id of the owner the object is assigned to.
    pfsGroup 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.
    tags 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_ids Sequence[float]
    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.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    comments String
    customFields 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
    ipsecProposalIds List<Number>
    Ids of the IPSec proposals the policy offers.
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    pfsGroup 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.
    tags 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.
    IpsecPolicyId double
    NetBox id.
    LastUpdated string
    TagsAlls 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.
    IpsecPolicyId float64
    NetBox id.
    LastUpdated string
    TagsAlls []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_id number
    NetBox id.
    last_updated string
    tags_alls 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.
    ipsecPolicyId Double
    NetBox id.
    lastUpdated String
    tagsAlls 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.
    ipsecPolicyId number
    NetBox id.
    lastUpdated string
    tagsAlls 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_id float
    NetBox id.
    last_updated str
    tags_alls 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.
    ipsecPolicyId Number
    NetBox id.
    lastUpdated String
    tagsAlls 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) -> IpsecPolicy
    func 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.
    The following state arguments are supported:
    Comments string
    Created string
    CustomFields 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
    IpsecPolicyId double
    NetBox id.
    IpsecProposalIds List<double>
    Ids of the IPSec proposals the policy offers.
    LastUpdated string
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    PfsGroup 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.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls List<string>
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    Comments string
    Created string
    CustomFields 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
    IpsecPolicyId float64
    NetBox id.
    IpsecProposalIds []float64
    Ids of the IPSec proposals the policy offers.
    LastUpdated string
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    PfsGroup 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.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls []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_id number
    NetBox id.
    ipsec_proposal_ids list(number)
    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.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls list(string)
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    comments String
    created String
    customFields 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
    ipsecPolicyId Double
    NetBox id.
    ipsecProposalIds List<Double>
    Ids of the IPSec proposals the policy offers.
    lastUpdated String
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    pfsGroup 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.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String
    comments string
    created string
    customFields {[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
    ipsecPolicyId number
    NetBox id.
    ipsecProposalIds number[]
    Ids of the IPSec proposals the policy offers.
    lastUpdated string
    name string
    ownerId number
    Id of the owner the object is assigned to.
    pfsGroup 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.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls 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_id float
    NetBox id.
    ipsec_proposal_ids Sequence[float]
    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.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls Sequence[str]
    Slugs of all tags on the object, including the provider's default_tags.
    url str
    comments String
    created String
    customFields 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
    ipsecPolicyId Number
    NetBox id.
    ipsecProposalIds List<Number>
    Ids of the IPSec proposals the policy offers.
    lastUpdated String
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    pfsGroup 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.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls 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 netbox Terraform Provider.
    netbox
    Viewing docs for netbox 6.0.1
    published on Monday, Nov 16, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial