published on Monday, Nov 16, 2026 by e-breuninger
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
- 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
- Ike
Proposal List<double>Ids - 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 double - Id of the owner the object is assigned to.
- string
- Pre-shared key, when the proposals authenticate with one.
- 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
- 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
- Ike
Proposal []float64Ids - 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 float64 - Id of the owner the object is assigned to.
- string
- Pre-shared key, when the proposals authenticate with one.
- []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_ list(number)ids - 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.
- string
- Pre-shared key, when the proposals authenticate with one.
- 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
- 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
- ike
Proposal List<Double>Ids - 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 Double - Id of the owner the object is assigned to.
- String
- Pre-shared key, when the proposals authenticate with one.
- 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
- 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
- ike
Proposal number[]Ids - 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.
- string
- Pre-shared key, when the proposals authenticate with one.
- 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_ Sequence[float]ids - 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.
- str
- Pre-shared key, when the proposals authenticate with one.
- 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
- 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 List<Number>Ids - 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.
- String
- Pre-shared key, when the proposals authenticate with one.
- 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.
- Ike
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.
- Ike
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.
- ike_
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.
- ike
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.
- ike
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.
- ike_
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.
- ike
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 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) -> IkePolicyfunc 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.
- 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
- Ike
Policy doubleId - NetBox id.
- Ike
Proposal List<double>Ids - 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 double - Id of the owner the object is assigned to.
- string
- Pre-shared key, when the proposals authenticate with one.
- 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
- Version double
- IKE version. One of: 1, 2.
- 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
- Ike
Policy float64Id - NetBox id.
- Ike
Proposal []float64Ids - 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 float64 - Id of the owner the object is assigned to.
- string
- Pre-shared key, when the proposals authenticate with one.
- []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
- 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_ numberid - NetBox id.
- ike_
proposal_ list(number)ids - 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.
- string
- Pre-shared key, when the proposals authenticate with one.
- 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
- version number
- IKE version. One of: 1, 2.
- 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
- ike
Policy DoubleId - NetBox id.
- ike
Proposal List<Double>Ids - 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 Double - Id of the owner the object is assigned to.
- String
- Pre-shared key, when the proposals authenticate with one.
- 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
- version Double
- IKE version. One of: 1, 2.
- 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
- ike
Policy numberId - NetBox id.
- ike
Proposal number[]Ids - 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.
- string
- Pre-shared key, when the proposals authenticate with one.
- 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
- 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_ floatid - NetBox id.
- ike_
proposal_ Sequence[float]ids - 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.
- str
- Pre-shared key, when the proposals authenticate with one.
- 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
- version float
- 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 NumberId - NetBox id.
- ike
Proposal List<Number>Ids - 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.
- String
- Pre-shared key, when the proposals authenticate with one.
- 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
- 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
netboxTerraform Provider.
published on Monday, Nov 16, 2026 by e-breuninger