published on Tuesday, Apr 28, 2026 by paloaltonetworks
published on Tuesday, Apr 28, 2026 by paloaltonetworks
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as panos from "@pulumi/panos";
// Create a template
const ospfTemplate = new panos.Template("ospf_template", {
location: {
panorama: {},
},
name: "ospf-routing-template",
});
// OSPF SPF Timer Profile with custom timing values
const customTimers = new panos.OspfSpfTimerRoutingProfile("custom_timers", {
location: {
template: {
name: ospfTemplate.name,
},
},
name: "custom-spf-timer-profile",
spfCalculationDelay: 10,
initialHoldTime: 15,
maxHoldTime: 30,
lsaInterval: 8,
});
import pulumi
import pulumi_panos as panos
# Create a template
ospf_template = panos.Template("ospf_template",
location={
"panorama": {},
},
name="ospf-routing-template")
# OSPF SPF Timer Profile with custom timing values
custom_timers = panos.OspfSpfTimerRoutingProfile("custom_timers",
location={
"template": {
"name": ospf_template.name,
},
},
name="custom-spf-timer-profile",
spf_calculation_delay=10,
initial_hold_time=15,
max_hold_time=30,
lsa_interval=8)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/panos/v2/panos"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a template
ospfTemplate, err := panos.NewTemplate(ctx, "ospf_template", &panos.TemplateArgs{
Location: &panos.TemplateLocationArgs{
Panorama: &panos.TemplateLocationPanoramaArgs{},
},
Name: pulumi.String("ospf-routing-template"),
})
if err != nil {
return err
}
// OSPF SPF Timer Profile with custom timing values
_, err = panos.NewOspfSpfTimerRoutingProfile(ctx, "custom_timers", &panos.OspfSpfTimerRoutingProfileArgs{
Location: &panos.OspfSpfTimerRoutingProfileLocationArgs{
Template: &panos.OspfSpfTimerRoutingProfileLocationTemplateArgs{
Name: ospfTemplate.Name,
},
},
Name: pulumi.String("custom-spf-timer-profile"),
SpfCalculationDelay: pulumi.Float64(10),
InitialHoldTime: pulumi.Float64(15),
MaxHoldTime: pulumi.Float64(30),
LsaInterval: pulumi.Float64(8),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Panos = Pulumi.Panos;
return await Deployment.RunAsync(() =>
{
// Create a template
var ospfTemplate = new Panos.Template("ospf_template", new()
{
Location = new Panos.Inputs.TemplateLocationArgs
{
Panorama = null,
},
Name = "ospf-routing-template",
});
// OSPF SPF Timer Profile with custom timing values
var customTimers = new Panos.OspfSpfTimerRoutingProfile("custom_timers", new()
{
Location = new Panos.Inputs.OspfSpfTimerRoutingProfileLocationArgs
{
Template = new Panos.Inputs.OspfSpfTimerRoutingProfileLocationTemplateArgs
{
Name = ospfTemplate.Name,
},
},
Name = "custom-spf-timer-profile",
SpfCalculationDelay = 10,
InitialHoldTime = 15,
MaxHoldTime = 30,
LsaInterval = 8,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.panos.Template;
import com.pulumi.panos.TemplateArgs;
import com.pulumi.panos.inputs.TemplateLocationArgs;
import com.pulumi.panos.inputs.TemplateLocationPanoramaArgs;
import com.pulumi.panos.OspfSpfTimerRoutingProfile;
import com.pulumi.panos.OspfSpfTimerRoutingProfileArgs;
import com.pulumi.panos.inputs.OspfSpfTimerRoutingProfileLocationArgs;
import com.pulumi.panos.inputs.OspfSpfTimerRoutingProfileLocationTemplateArgs;
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) {
// Create a template
var ospfTemplate = new Template("ospfTemplate", TemplateArgs.builder()
.location(TemplateLocationArgs.builder()
.panorama(TemplateLocationPanoramaArgs.builder()
.build())
.build())
.name("ospf-routing-template")
.build());
// OSPF SPF Timer Profile with custom timing values
var customTimers = new OspfSpfTimerRoutingProfile("customTimers", OspfSpfTimerRoutingProfileArgs.builder()
.location(OspfSpfTimerRoutingProfileLocationArgs.builder()
.template(OspfSpfTimerRoutingProfileLocationTemplateArgs.builder()
.name(ospfTemplate.name())
.build())
.build())
.name("custom-spf-timer-profile")
.spfCalculationDelay(10.0)
.initialHoldTime(15.0)
.maxHoldTime(30.0)
.lsaInterval(8.0)
.build());
}
}
resources:
# Create a template
ospfTemplate:
type: panos:Template
name: ospf_template
properties:
location:
panorama: {}
name: ospf-routing-template
# OSPF SPF Timer Profile with custom timing values
customTimers:
type: panos:OspfSpfTimerRoutingProfile
name: custom_timers
properties:
location:
template:
name: ${ospfTemplate.name}
name: custom-spf-timer-profile
spfCalculationDelay: 10
initialHoldTime: 15
maxHoldTime: 30
lsaInterval: 8
Create OspfSpfTimerRoutingProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OspfSpfTimerRoutingProfile(name: string, args: OspfSpfTimerRoutingProfileArgs, opts?: CustomResourceOptions);@overload
def OspfSpfTimerRoutingProfile(resource_name: str,
args: OspfSpfTimerRoutingProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OspfSpfTimerRoutingProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[OspfSpfTimerRoutingProfileLocationArgs] = None,
initial_hold_time: Optional[float] = None,
lsa_interval: Optional[float] = None,
max_hold_time: Optional[float] = None,
name: Optional[str] = None,
spf_calculation_delay: Optional[float] = None)func NewOspfSpfTimerRoutingProfile(ctx *Context, name string, args OspfSpfTimerRoutingProfileArgs, opts ...ResourceOption) (*OspfSpfTimerRoutingProfile, error)public OspfSpfTimerRoutingProfile(string name, OspfSpfTimerRoutingProfileArgs args, CustomResourceOptions? opts = null)
public OspfSpfTimerRoutingProfile(String name, OspfSpfTimerRoutingProfileArgs args)
public OspfSpfTimerRoutingProfile(String name, OspfSpfTimerRoutingProfileArgs args, CustomResourceOptions options)
type: panos:OspfSpfTimerRoutingProfile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OspfSpfTimerRoutingProfileArgs
- 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 OspfSpfTimerRoutingProfileArgs
- 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 OspfSpfTimerRoutingProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OspfSpfTimerRoutingProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OspfSpfTimerRoutingProfileArgs
- 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 ospfSpfTimerRoutingProfileResource = new Panos.OspfSpfTimerRoutingProfile("ospfSpfTimerRoutingProfileResource", new()
{
Location = new Panos.Inputs.OspfSpfTimerRoutingProfileLocationArgs
{
Ngfw = new Panos.Inputs.OspfSpfTimerRoutingProfileLocationNgfwArgs
{
NgfwDevice = "string",
},
Template = new Panos.Inputs.OspfSpfTimerRoutingProfileLocationTemplateArgs
{
Name = "string",
NgfwDevice = "string",
PanoramaDevice = "string",
},
TemplateStack = new Panos.Inputs.OspfSpfTimerRoutingProfileLocationTemplateStackArgs
{
Name = "string",
NgfwDevice = "string",
PanoramaDevice = "string",
},
},
InitialHoldTime = 0,
LsaInterval = 0,
MaxHoldTime = 0,
Name = "string",
SpfCalculationDelay = 0,
});
example, err := panos.NewOspfSpfTimerRoutingProfile(ctx, "ospfSpfTimerRoutingProfileResource", &panos.OspfSpfTimerRoutingProfileArgs{
Location: &panos.OspfSpfTimerRoutingProfileLocationArgs{
Ngfw: &panos.OspfSpfTimerRoutingProfileLocationNgfwArgs{
NgfwDevice: pulumi.String("string"),
},
Template: &panos.OspfSpfTimerRoutingProfileLocationTemplateArgs{
Name: pulumi.String("string"),
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
TemplateStack: &panos.OspfSpfTimerRoutingProfileLocationTemplateStackArgs{
Name: pulumi.String("string"),
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
},
InitialHoldTime: pulumi.Float64(0),
LsaInterval: pulumi.Float64(0),
MaxHoldTime: pulumi.Float64(0),
Name: pulumi.String("string"),
SpfCalculationDelay: pulumi.Float64(0),
})
var ospfSpfTimerRoutingProfileResource = new OspfSpfTimerRoutingProfile("ospfSpfTimerRoutingProfileResource", OspfSpfTimerRoutingProfileArgs.builder()
.location(OspfSpfTimerRoutingProfileLocationArgs.builder()
.ngfw(OspfSpfTimerRoutingProfileLocationNgfwArgs.builder()
.ngfwDevice("string")
.build())
.template(OspfSpfTimerRoutingProfileLocationTemplateArgs.builder()
.name("string")
.ngfwDevice("string")
.panoramaDevice("string")
.build())
.templateStack(OspfSpfTimerRoutingProfileLocationTemplateStackArgs.builder()
.name("string")
.ngfwDevice("string")
.panoramaDevice("string")
.build())
.build())
.initialHoldTime(0.0)
.lsaInterval(0.0)
.maxHoldTime(0.0)
.name("string")
.spfCalculationDelay(0.0)
.build());
ospf_spf_timer_routing_profile_resource = panos.OspfSpfTimerRoutingProfile("ospfSpfTimerRoutingProfileResource",
location={
"ngfw": {
"ngfw_device": "string",
},
"template": {
"name": "string",
"ngfw_device": "string",
"panorama_device": "string",
},
"template_stack": {
"name": "string",
"ngfw_device": "string",
"panorama_device": "string",
},
},
initial_hold_time=float(0),
lsa_interval=float(0),
max_hold_time=float(0),
name="string",
spf_calculation_delay=float(0))
const ospfSpfTimerRoutingProfileResource = new panos.OspfSpfTimerRoutingProfile("ospfSpfTimerRoutingProfileResource", {
location: {
ngfw: {
ngfwDevice: "string",
},
template: {
name: "string",
ngfwDevice: "string",
panoramaDevice: "string",
},
templateStack: {
name: "string",
ngfwDevice: "string",
panoramaDevice: "string",
},
},
initialHoldTime: 0,
lsaInterval: 0,
maxHoldTime: 0,
name: "string",
spfCalculationDelay: 0,
});
type: panos:OspfSpfTimerRoutingProfile
properties:
initialHoldTime: 0
location:
ngfw:
ngfwDevice: string
template:
name: string
ngfwDevice: string
panoramaDevice: string
templateStack:
name: string
ngfwDevice: string
panoramaDevice: string
lsaInterval: 0
maxHoldTime: 0
name: string
spfCalculationDelay: 0
OspfSpfTimerRoutingProfile 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 OspfSpfTimerRoutingProfile resource accepts the following input properties:
- Location
Ospf
Spf Timer Routing Profile Location - The location of this object.
- Initial
Hold doubleTime - Initial hold time (second) between consecutive SPF calculations
- Lsa
Interval double - The minimum time in seconds between distinct originations of any particular LSA
- Max
Hold doubleTime - Maximum hold time (second)
- Name string
- Spf
Calculation doubleDelay - Delay in seconds before running the SPF algorithm
- Location
Ospf
Spf Timer Routing Profile Location Args - The location of this object.
- Initial
Hold float64Time - Initial hold time (second) between consecutive SPF calculations
- Lsa
Interval float64 - The minimum time in seconds between distinct originations of any particular LSA
- Max
Hold float64Time - Maximum hold time (second)
- Name string
- Spf
Calculation float64Delay - Delay in seconds before running the SPF algorithm
- location
Ospf
Spf Timer Routing Profile Location - The location of this object.
- initial
Hold DoubleTime - Initial hold time (second) between consecutive SPF calculations
- lsa
Interval Double - The minimum time in seconds between distinct originations of any particular LSA
- max
Hold DoubleTime - Maximum hold time (second)
- name String
- spf
Calculation DoubleDelay - Delay in seconds before running the SPF algorithm
- location
Ospf
Spf Timer Routing Profile Location - The location of this object.
- initial
Hold numberTime - Initial hold time (second) between consecutive SPF calculations
- lsa
Interval number - The minimum time in seconds between distinct originations of any particular LSA
- max
Hold numberTime - Maximum hold time (second)
- name string
- spf
Calculation numberDelay - Delay in seconds before running the SPF algorithm
- location
Ospf
Spf Timer Routing Profile Location Args - The location of this object.
- initial_
hold_ floattime - Initial hold time (second) between consecutive SPF calculations
- lsa_
interval float - The minimum time in seconds between distinct originations of any particular LSA
- max_
hold_ floattime - Maximum hold time (second)
- name str
- spf_
calculation_ floatdelay - Delay in seconds before running the SPF algorithm
- location Property Map
- The location of this object.
- initial
Hold NumberTime - Initial hold time (second) between consecutive SPF calculations
- lsa
Interval Number - The minimum time in seconds between distinct originations of any particular LSA
- max
Hold NumberTime - Maximum hold time (second)
- name String
- spf
Calculation NumberDelay - Delay in seconds before running the SPF algorithm
Outputs
All input properties are implicitly available as output properties. Additionally, the OspfSpfTimerRoutingProfile resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing OspfSpfTimerRoutingProfile Resource
Get an existing OspfSpfTimerRoutingProfile 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?: OspfSpfTimerRoutingProfileState, opts?: CustomResourceOptions): OspfSpfTimerRoutingProfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
initial_hold_time: Optional[float] = None,
location: Optional[OspfSpfTimerRoutingProfileLocationArgs] = None,
lsa_interval: Optional[float] = None,
max_hold_time: Optional[float] = None,
name: Optional[str] = None,
spf_calculation_delay: Optional[float] = None) -> OspfSpfTimerRoutingProfilefunc GetOspfSpfTimerRoutingProfile(ctx *Context, name string, id IDInput, state *OspfSpfTimerRoutingProfileState, opts ...ResourceOption) (*OspfSpfTimerRoutingProfile, error)public static OspfSpfTimerRoutingProfile Get(string name, Input<string> id, OspfSpfTimerRoutingProfileState? state, CustomResourceOptions? opts = null)public static OspfSpfTimerRoutingProfile get(String name, Output<String> id, OspfSpfTimerRoutingProfileState state, CustomResourceOptions options)resources: _: type: panos:OspfSpfTimerRoutingProfile get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Initial
Hold doubleTime - Initial hold time (second) between consecutive SPF calculations
- Location
Ospf
Spf Timer Routing Profile Location - The location of this object.
- Lsa
Interval double - The minimum time in seconds between distinct originations of any particular LSA
- Max
Hold doubleTime - Maximum hold time (second)
- Name string
- Spf
Calculation doubleDelay - Delay in seconds before running the SPF algorithm
- Initial
Hold float64Time - Initial hold time (second) between consecutive SPF calculations
- Location
Ospf
Spf Timer Routing Profile Location Args - The location of this object.
- Lsa
Interval float64 - The minimum time in seconds between distinct originations of any particular LSA
- Max
Hold float64Time - Maximum hold time (second)
- Name string
- Spf
Calculation float64Delay - Delay in seconds before running the SPF algorithm
- initial
Hold DoubleTime - Initial hold time (second) between consecutive SPF calculations
- location
Ospf
Spf Timer Routing Profile Location - The location of this object.
- lsa
Interval Double - The minimum time in seconds between distinct originations of any particular LSA
- max
Hold DoubleTime - Maximum hold time (second)
- name String
- spf
Calculation DoubleDelay - Delay in seconds before running the SPF algorithm
- initial
Hold numberTime - Initial hold time (second) between consecutive SPF calculations
- location
Ospf
Spf Timer Routing Profile Location - The location of this object.
- lsa
Interval number - The minimum time in seconds between distinct originations of any particular LSA
- max
Hold numberTime - Maximum hold time (second)
- name string
- spf
Calculation numberDelay - Delay in seconds before running the SPF algorithm
- initial_
hold_ floattime - Initial hold time (second) between consecutive SPF calculations
- location
Ospf
Spf Timer Routing Profile Location Args - The location of this object.
- lsa_
interval float - The minimum time in seconds between distinct originations of any particular LSA
- max_
hold_ floattime - Maximum hold time (second)
- name str
- spf_
calculation_ floatdelay - Delay in seconds before running the SPF algorithm
- initial
Hold NumberTime - Initial hold time (second) between consecutive SPF calculations
- location Property Map
- The location of this object.
- lsa
Interval Number - The minimum time in seconds between distinct originations of any particular LSA
- max
Hold NumberTime - Maximum hold time (second)
- name String
- spf
Calculation NumberDelay - Delay in seconds before running the SPF algorithm
Supporting Types
OspfSpfTimerRoutingProfileLocation, OspfSpfTimerRoutingProfileLocationArgs
- Ngfw
Ospf
Spf Timer Routing Profile Location Ngfw - Located in a specific NGFW device
- Template
Ospf
Spf Timer Routing Profile Location Template - Located in a specific template
- Template
Stack OspfSpf Timer Routing Profile Location Template Stack - Located in a specific template stack
- Ngfw
Ospf
Spf Timer Routing Profile Location Ngfw - Located in a specific NGFW device
- Template
Ospf
Spf Timer Routing Profile Location Template - Located in a specific template
- Template
Stack OspfSpf Timer Routing Profile Location Template Stack - Located in a specific template stack
- ngfw
Ospf
Spf Timer Routing Profile Location Ngfw - Located in a specific NGFW device
- template
Ospf
Spf Timer Routing Profile Location Template - Located in a specific template
- template
Stack OspfSpf Timer Routing Profile Location Template Stack - Located in a specific template stack
- ngfw
Ospf
Spf Timer Routing Profile Location Ngfw - Located in a specific NGFW device
- template
Ospf
Spf Timer Routing Profile Location Template - Located in a specific template
- template
Stack OspfSpf Timer Routing Profile Location Template Stack - Located in a specific template stack
- ngfw
Ospf
Spf Timer Routing Profile Location Ngfw - Located in a specific NGFW device
- template
Ospf
Spf Timer Routing Profile Location Template - Located in a specific template
- template_
stack OspfSpf Timer Routing Profile Location Template Stack - Located in a specific template stack
- ngfw Property Map
- Located in a specific NGFW device
- template Property Map
- Located in a specific template
- template
Stack Property Map - Located in a specific template stack
OspfSpfTimerRoutingProfileLocationNgfw, OspfSpfTimerRoutingProfileLocationNgfwArgs
- Ngfw
Device string - The NGFW device
- Ngfw
Device string - The NGFW device
- ngfw
Device String - The NGFW device
- ngfw
Device string - The NGFW device
- ngfw_
device str - The NGFW device
- ngfw
Device String - The NGFW device
OspfSpfTimerRoutingProfileLocationTemplate, OspfSpfTimerRoutingProfileLocationTemplateArgs
- Name string
- Specific Panorama template
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Name string
- Specific Panorama template
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- name String
- Specific Panorama template
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- name string
- Specific Panorama template
- ngfw
Device string - The NGFW device
- panorama
Device string - Specific Panorama device
- name str
- Specific Panorama template
- ngfw_
device str - The NGFW device
- panorama_
device str - Specific Panorama device
- name String
- Specific Panorama template
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
OspfSpfTimerRoutingProfileLocationTemplateStack, OspfSpfTimerRoutingProfileLocationTemplateStackArgs
- Name string
- Specific Panorama template stack
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Name string
- Specific Panorama template stack
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- name String
- Specific Panorama template stack
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- name string
- Specific Panorama template stack
- ngfw
Device string - The NGFW device
- panorama
Device string - Specific Panorama device
- name str
- Specific Panorama template stack
- ngfw_
device str - The NGFW device
- panorama_
device str - Specific Panorama device
- name String
- Specific Panorama template stack
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
Package Details
- Repository
- panos paloaltonetworks/terraform-provider-panos
- License
- Notes
- This Pulumi package is based on the
panosTerraform Provider.
published on Tuesday, Apr 28, 2026 by paloaltonetworks
