1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. IkePolicy
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 IKE policy (vpn.ikepolicy): the IKE version, mode and proposals of a security association.

    From the official documentation:

    An Internet Key Exchange (IKE) policy defines an IKE version, mode, and set of proposals to be used in IKE negotiation. 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.IkeProposal("test", {
        name: "test-ike-proposal",
        authenticationMethod: "preshared-keys",
        encryptionAlgorithm: "aes-256-cbc",
        group: 14,
    });
    const testIkePolicy = new netbox.IkePolicy("test", {
        name: "test-ike-policy",
        version: 1,
        mode: "main",
        ikeProposalIds: [test.ikeProposalId],
        presharedKey: "test-preshared-key",
        description: "test-description",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.IkeProposal("test",
        name="test-ike-proposal",
        authentication_method="preshared-keys",
        encryption_algorithm="aes-256-cbc",
        group=14)
    test_ike_policy = netbox.IkePolicy("test",
        name="test-ike-policy",
        version=1,
        mode="main",
        ike_proposal_ids=[test.ike_proposal_id],
        preshared_key="test-preshared-key",
        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.NewIkeProposal(ctx, "test", &netbox.IkeProposalArgs{
    			Name:                 pulumi.String("test-ike-proposal"),
    			AuthenticationMethod: pulumi.String("preshared-keys"),
    			EncryptionAlgorithm:  pulumi.String("aes-256-cbc"),
    			Group:                pulumi.Float64(14),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netbox.NewIkePolicy(ctx, "test", &netbox.IkePolicyArgs{
    			Name:    pulumi.String("test-ike-policy"),
    			Version: pulumi.Float64(1),
    			Mode:    pulumi.String("main"),
    			IkeProposalIds: pulumi.Float64Array{
    				test.IkeProposalId,
    			},
    			PresharedKey: pulumi.String("test-preshared-key"),
    			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.IkeProposal("test", new()
        {
            Name = "test-ike-proposal",
            AuthenticationMethod = "preshared-keys",
            EncryptionAlgorithm = "aes-256-cbc",
            Group = 14,
        });
    
        var testIkePolicy = new Netbox.IkePolicy("test", new()
        {
            Name = "test-ike-policy",
            Version = 1,
            Mode = "main",
            IkeProposalIds = new[]
            {
                test.IkeProposalId,
            },
            PresharedKey = "test-preshared-key",
            Description = "test-description",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.IkeProposal;
    import com.pulumi.netbox.IkeProposalArgs;
    import com.pulumi.netbox.IkePolicy;
    import com.pulumi.netbox.IkePolicyArgs;
    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 IkeProposal("test", IkeProposalArgs.builder()
                .name("test-ike-proposal")
                .authenticationMethod("preshared-keys")
                .encryptionAlgorithm("aes-256-cbc")
                .group(14.0)
                .build());
    
            var testIkePolicy = new IkePolicy("testIkePolicy", IkePolicyArgs.builder()
                .name("test-ike-policy")
                .version(1.0)
                .mode("main")
                .ikeProposalIds(test.ikeProposalId())
                .presharedKey("test-preshared-key")
                .description("test-description")
                .build());
    
        }
    }
    
    resources:
      test:
        type: netbox:IkeProposal
        properties:
          name: test-ike-proposal
          authenticationMethod: preshared-keys
          encryptionAlgorithm: aes-256-cbc
          group: 14
      testIkePolicy:
        type: netbox:IkePolicy
        name: test
        properties:
          name: test-ike-policy
          version: 1
          mode: main
          ikeProposalIds:
            - ${test.ikeProposalId}
          presharedKey: test-preshared-key
          description: test-description
    
    Example coming soon!
    

    Create IkePolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IkePolicy(name: string, args: IkePolicyArgs, opts?: CustomResourceOptions);
    @overload
    def IkePolicy(resource_name: str,
                  args: IkePolicyArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def IkePolicy(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  version: Optional[float] = None,
                  comments: Optional[str] = None,
                  custom_fields: Optional[Mapping[str, str]] = None,
                  description: Optional[str] = None,
                  ike_proposal_ids: Optional[Sequence[float]] = None,
                  mode: Optional[str] = None,
                  name: Optional[str] = None,
                  owner_id: Optional[float] = None,
                  preshared_key: Optional[str] = None,
                  tags: Optional[Sequence[str]] = None)
    func NewIkePolicy(ctx *Context, name string, args IkePolicyArgs, opts ...ResourceOption) (*IkePolicy, error)
    public IkePolicy(string name, IkePolicyArgs args, CustomResourceOptions? opts = null)
    public IkePolicy(String name, IkePolicyArgs args)
    public IkePolicy(String name, IkePolicyArgs args, CustomResourceOptions options)
    
    type: netbox:IkePolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "netbox_ike_policy" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args IkePolicyArgs
    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 IkePolicyArgs
    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 IkePolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IkePolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IkePolicyArgs
    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 ikePolicyResource = new Netbox.IkePolicy("ikePolicyResource", new()
    {
        Version = 0.0,
        Comments = "string",
        CustomFields = 
        {
            { "string", "string" },
        },
        Description = "string",
        IkeProposalIds = new[]
        {
            0.0,
        },
        Mode = "string",
        Name = "string",
        OwnerId = 0.0,
        PresharedKey = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := netbox.NewIkePolicy(ctx, "ikePolicyResource", &netbox.IkePolicyArgs{
    	Version:  pulumi.Float64(0),
    	Comments: pulumi.String("string"),
    	CustomFields: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	IkeProposalIds: pulumi.Float64Array{
    		pulumi.Float64(0),
    	},
    	Mode:         pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	OwnerId:      pulumi.Float64(0),
    	PresharedKey: pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "netbox_ike_policy" "ikePolicyResource" {
      lifecycle {
        create_before_destroy = true
      }
      version  = 0
      comments = "string"
      custom_fields = {
        "string" = "string"
      }
      description      = "string"
      ike_proposal_ids = [0]
      mode             = "string"
      name             = "string"
      owner_id         = 0
      preshared_key    = "string"
      tags             = ["string"]
    }
    
    var ikePolicyResource = new IkePolicy("ikePolicyResource", IkePolicyArgs.builder()
        .version(0.0)
        .comments("string")
        .customFields(Map.of("string", "string"))
        .description("string")
        .ikeProposalIds(0.0)
        .mode("string")
        .name("string")
        .ownerId(0.0)
        .presharedKey("string")
        .tags("string")
        .build());
    
    ike_policy_resource = netbox.IkePolicy("ikePolicyResource",
        version=float(0),
        comments="string",
        custom_fields={
            "string": "string",
        },
        description="string",
        ike_proposal_ids=[float(0)],
        mode="string",
        name="string",
        owner_id=float(0),
        preshared_key="string",
        tags=["string"])
    
    const ikePolicyResource = new netbox.IkePolicy("ikePolicyResource", {
        version: 0,
        comments: "string",
        customFields: {
            string: "string",
        },
        description: "string",
        ikeProposalIds: [0],
        mode: "string",
        name: "string",
        ownerId: 0,
        presharedKey: "string",
        tags: ["string"],
    });
    
    type: netbox:IkePolicy
    properties:
        comments: string
        customFields:
            string: string
        description: string
        ikeProposalIds:
            - 0
        mode: string
        name: string
        ownerId: 0
        presharedKey: string
        tags:
            - string
        version: 0
    

    IkePolicy 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 IkePolicy resource accepts the following input properties:

    Version double
    IKE version. One of: 1, 2.
    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
    IkeProposalIds List<double>
    Ids of the IKE proposals the policy offers.
    Mode string
    IKEv1 negotiation mode; IKEv2 has none. NetBox does not allow clearing it once set, so a policy that has a mode cannot be moved to version 2; leaving it unset keeps the current value. One of: aggressive, main.
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    PresharedKey string
    Pre-shared key, when the proposals authenticate with one.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    Version float64
    IKE version. One of: 1, 2.
    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
    IkeProposalIds []float64
    Ids of the IKE proposals the policy offers.
    Mode string
    IKEv1 negotiation mode; IKEv2 has none. NetBox does not allow clearing it once set, so a policy that has a mode cannot be moved to version 2; leaving it unset keeps the current value. One of: aggressive, main.
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    PresharedKey string
    Pre-shared key, when the proposals authenticate with one.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    version number
    IKE version. One of: 1, 2.
    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
    ike_proposal_ids list(number)
    Ids of the IKE proposals the policy offers.
    mode string
    IKEv1 negotiation mode; IKEv2 has none. NetBox does not allow clearing it once set, so a policy that has a mode cannot be moved to version 2; leaving it unset keeps the current value. One of: aggressive, main.
    name string
    owner_id number
    Id of the owner the object is assigned to.
    preshared_key string
    Pre-shared key, when the proposals authenticate with one.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    version Double
    IKE version. One of: 1, 2.
    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
    ikeProposalIds List<Double>
    Ids of the IKE proposals the policy offers.
    mode String
    IKEv1 negotiation mode; IKEv2 has none. NetBox does not allow clearing it once set, so a policy that has a mode cannot be moved to version 2; leaving it unset keeps the current value. One of: aggressive, main.
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    presharedKey String
    Pre-shared key, when the proposals authenticate with one.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    version number
    IKE version. One of: 1, 2.
    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
    ikeProposalIds number[]
    Ids of the IKE proposals the policy offers.
    mode string
    IKEv1 negotiation mode; IKEv2 has none. NetBox does not allow clearing it once set, so a policy that has a mode cannot be moved to version 2; leaving it unset keeps the current value. One of: aggressive, main.
    name string
    ownerId number
    Id of the owner the object is assigned to.
    presharedKey string
    Pre-shared key, when the proposals authenticate with one.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    version float
    IKE version. One of: 1, 2.
    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
    ike_proposal_ids Sequence[float]
    Ids of the IKE proposals the policy offers.
    mode str
    IKEv1 negotiation mode; IKEv2 has none. NetBox does not allow clearing it once set, so a policy that has a mode cannot be moved to version 2; leaving it unset keeps the current value. One of: aggressive, main.
    name str
    owner_id float
    Id of the owner the object is assigned to.
    preshared_key str
    Pre-shared key, when the proposals authenticate with one.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    version Number
    IKE version. One of: 1, 2.
    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
    ikeProposalIds List<Number>
    Ids of the IKE proposals the policy offers.
    mode String
    IKEv1 negotiation mode; IKEv2 has none. NetBox does not allow clearing it once set, so a policy that has a mode cannot be moved to version 2; leaving it unset keeps the current value. One of: aggressive, main.
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    presharedKey String
    Pre-shared key, when the proposals authenticate with one.
    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 IkePolicy resource produces the following output properties:

    Created string
    Id string
    The provider-assigned unique ID for this managed resource.
    IkePolicyId 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.
    IkePolicyId 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.
    ike_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.
    ikePolicyId 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.
    ikePolicyId 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.
    ike_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.
    ikePolicyId 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 IkePolicy Resource

    Get an existing IkePolicy 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?: IkePolicyState, opts?: CustomResourceOptions): IkePolicy
    @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,
            ike_policy_id: Optional[float] = None,
            ike_proposal_ids: Optional[Sequence[float]] = None,
            last_updated: Optional[str] = None,
            mode: Optional[str] = None,
            name: Optional[str] = None,
            owner_id: Optional[float] = None,
            preshared_key: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            tags_alls: Optional[Sequence[str]] = None,
            url: Optional[str] = None,
            version: Optional[float] = None) -> IkePolicy
    func GetIkePolicy(ctx *Context, name string, id IDInput, state *IkePolicyState, opts ...ResourceOption) (*IkePolicy, error)
    public static IkePolicy Get(string name, Input<string> id, IkePolicyState? state, CustomResourceOptions? opts = null)
    public static IkePolicy get(String name, Output<String> id, IkePolicyState state, CustomResourceOptions options)
    resources:  existingIkePolicy:    type: netbox:IkePolicy    get:      id: ${id}
    import {
      to = netbox_ike_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 IkePolicyState
    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 IkePolicyState
    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 IkePolicyState
    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 IkePolicyState
    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
    IkePolicyId double
    NetBox id.
    IkeProposalIds List<double>
    Ids of the IKE proposals the policy offers.
    LastUpdated string
    Mode string
    IKEv1 negotiation mode; IKEv2 has none. NetBox does not allow clearing it once set, so a policy that has a mode cannot be moved to version 2; leaving it unset keeps the current value. One of: aggressive, main.
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    PresharedKey string
    Pre-shared key, when the proposals authenticate with one.
    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
    Version double
    IKE version. One of: 1, 2.
    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
    IkePolicyId float64
    NetBox id.
    IkeProposalIds []float64
    Ids of the IKE proposals the policy offers.
    LastUpdated string
    Mode string
    IKEv1 negotiation mode; IKEv2 has none. NetBox does not allow clearing it once set, so a policy that has a mode cannot be moved to version 2; leaving it unset keeps the current value. One of: aggressive, main.
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    PresharedKey string
    Pre-shared key, when the proposals authenticate with one.
    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
    Version float64
    IKE version. One of: 1, 2.
    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
    ike_policy_id number
    NetBox id.
    ike_proposal_ids list(number)
    Ids of the IKE proposals the policy offers.
    last_updated string
    mode string
    IKEv1 negotiation mode; IKEv2 has none. NetBox does not allow clearing it once set, so a policy that has a mode cannot be moved to version 2; leaving it unset keeps the current value. One of: aggressive, main.
    name string
    owner_id number
    Id of the owner the object is assigned to.
    preshared_key string
    Pre-shared key, when the proposals authenticate with one.
    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
    version number
    IKE version. One of: 1, 2.
    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
    ikePolicyId Double
    NetBox id.
    ikeProposalIds List<Double>
    Ids of the IKE proposals the policy offers.
    lastUpdated String
    mode String
    IKEv1 negotiation mode; IKEv2 has none. NetBox does not allow clearing it once set, so a policy that has a mode cannot be moved to version 2; leaving it unset keeps the current value. One of: aggressive, main.
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    presharedKey String
    Pre-shared key, when the proposals authenticate with one.
    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
    version Double
    IKE version. One of: 1, 2.
    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
    ikePolicyId number
    NetBox id.
    ikeProposalIds number[]
    Ids of the IKE proposals the policy offers.
    lastUpdated string
    mode string
    IKEv1 negotiation mode; IKEv2 has none. NetBox does not allow clearing it once set, so a policy that has a mode cannot be moved to version 2; leaving it unset keeps the current value. One of: aggressive, main.
    name string
    ownerId number
    Id of the owner the object is assigned to.
    presharedKey string
    Pre-shared key, when the proposals authenticate with one.
    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
    version number
    IKE version. One of: 1, 2.
    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
    ike_policy_id float
    NetBox id.
    ike_proposal_ids Sequence[float]
    Ids of the IKE proposals the policy offers.
    last_updated str
    mode str
    IKEv1 negotiation mode; IKEv2 has none. NetBox does not allow clearing it once set, so a policy that has a mode cannot be moved to version 2; leaving it unset keeps the current value. One of: aggressive, main.
    name str
    owner_id float
    Id of the owner the object is assigned to.
    preshared_key str
    Pre-shared key, when the proposals authenticate with one.
    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
    version float
    IKE version. One of: 1, 2.
    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
    ikePolicyId Number
    NetBox id.
    ikeProposalIds List<Number>
    Ids of the IKE proposals the policy offers.
    lastUpdated String
    mode String
    IKEv1 negotiation mode; IKEv2 has none. NetBox does not allow clearing it once set, so a policy that has a mode cannot be moved to version 2; leaving it unset keeps the current value. One of: aggressive, main.
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    presharedKey String
    Pre-shared key, when the proposals authenticate with one.
    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
    version Number
    IKE version. One of: 1, 2.

    Import

    In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:

    terraform

    import {

    to = netbox_ike_policy.test

    id = “123”

    }

    The pulumi import command can be used, for example:

    $ pulumi import netbox:index/ikePolicy:IkePolicy 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