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";
const example = new panos.Template("example", {
location: {
panorama: {},
},
name: "example-template",
});
// Example 1: Monitor profile with default values (minimal configuration)
const minimal = new panos.MonitorProfile("minimal", {
location: {
template: {
name: example.name,
},
},
name: "minimal-monitor-profile",
}, {
dependsOn: [example],
});
// Example 2: Monitor profile with fail-over action
const failover = new panos.MonitorProfile("failover", {
location: {
template: {
name: example.name,
},
},
name: "failover-monitor-profile",
action: "fail-over",
interval: 5,
threshold: 3,
}, {
dependsOn: [example],
});
// Example 3: Monitor profile with wait-recover action and custom settings
const custom = new panos.MonitorProfile("custom", {
location: {
template: {
name: example.name,
},
},
name: "custom-monitor-profile",
action: "wait-recover",
interval: 10,
threshold: 7,
}, {
dependsOn: [example],
});
import pulumi
import pulumi_panos as panos
example = panos.Template("example",
location={
"panorama": {},
},
name="example-template")
# Example 1: Monitor profile with default values (minimal configuration)
minimal = panos.MonitorProfile("minimal",
location={
"template": {
"name": example.name,
},
},
name="minimal-monitor-profile",
opts = pulumi.ResourceOptions(depends_on=[example]))
# Example 2: Monitor profile with fail-over action
failover = panos.MonitorProfile("failover",
location={
"template": {
"name": example.name,
},
},
name="failover-monitor-profile",
action="fail-over",
interval=5,
threshold=3,
opts = pulumi.ResourceOptions(depends_on=[example]))
# Example 3: Monitor profile with wait-recover action and custom settings
custom = panos.MonitorProfile("custom",
location={
"template": {
"name": example.name,
},
},
name="custom-monitor-profile",
action="wait-recover",
interval=10,
threshold=7,
opts = pulumi.ResourceOptions(depends_on=[example]))
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 {
example, err := panos.NewTemplate(ctx, "example", &panos.TemplateArgs{
Location: &panos.TemplateLocationArgs{
Panorama: &panos.TemplateLocationPanoramaArgs{},
},
Name: pulumi.String("example-template"),
})
if err != nil {
return err
}
// Example 1: Monitor profile with default values (minimal configuration)
_, err = panos.NewMonitorProfile(ctx, "minimal", &panos.MonitorProfileArgs{
Location: &panos.MonitorProfileLocationArgs{
Template: &panos.MonitorProfileLocationTemplateArgs{
Name: example.Name,
},
},
Name: pulumi.String("minimal-monitor-profile"),
}, pulumi.DependsOn([]pulumi.Resource{
example,
}))
if err != nil {
return err
}
// Example 2: Monitor profile with fail-over action
_, err = panos.NewMonitorProfile(ctx, "failover", &panos.MonitorProfileArgs{
Location: &panos.MonitorProfileLocationArgs{
Template: &panos.MonitorProfileLocationTemplateArgs{
Name: example.Name,
},
},
Name: pulumi.String("failover-monitor-profile"),
Action: pulumi.String("fail-over"),
Interval: pulumi.Float64(5),
Threshold: pulumi.Float64(3),
}, pulumi.DependsOn([]pulumi.Resource{
example,
}))
if err != nil {
return err
}
// Example 3: Monitor profile with wait-recover action and custom settings
_, err = panos.NewMonitorProfile(ctx, "custom", &panos.MonitorProfileArgs{
Location: &panos.MonitorProfileLocationArgs{
Template: &panos.MonitorProfileLocationTemplateArgs{
Name: example.Name,
},
},
Name: pulumi.String("custom-monitor-profile"),
Action: pulumi.String("wait-recover"),
Interval: pulumi.Float64(10),
Threshold: pulumi.Float64(7),
}, pulumi.DependsOn([]pulumi.Resource{
example,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Panos = Pulumi.Panos;
return await Deployment.RunAsync(() =>
{
var example = new Panos.Template("example", new()
{
Location = new Panos.Inputs.TemplateLocationArgs
{
Panorama = null,
},
Name = "example-template",
});
// Example 1: Monitor profile with default values (minimal configuration)
var minimal = new Panos.MonitorProfile("minimal", new()
{
Location = new Panos.Inputs.MonitorProfileLocationArgs
{
Template = new Panos.Inputs.MonitorProfileLocationTemplateArgs
{
Name = example.Name,
},
},
Name = "minimal-monitor-profile",
}, new CustomResourceOptions
{
DependsOn =
{
example,
},
});
// Example 2: Monitor profile with fail-over action
var failover = new Panos.MonitorProfile("failover", new()
{
Location = new Panos.Inputs.MonitorProfileLocationArgs
{
Template = new Panos.Inputs.MonitorProfileLocationTemplateArgs
{
Name = example.Name,
},
},
Name = "failover-monitor-profile",
Action = "fail-over",
Interval = 5,
Threshold = 3,
}, new CustomResourceOptions
{
DependsOn =
{
example,
},
});
// Example 3: Monitor profile with wait-recover action and custom settings
var custom = new Panos.MonitorProfile("custom", new()
{
Location = new Panos.Inputs.MonitorProfileLocationArgs
{
Template = new Panos.Inputs.MonitorProfileLocationTemplateArgs
{
Name = example.Name,
},
},
Name = "custom-monitor-profile",
Action = "wait-recover",
Interval = 10,
Threshold = 7,
}, new CustomResourceOptions
{
DependsOn =
{
example,
},
});
});
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.MonitorProfile;
import com.pulumi.panos.MonitorProfileArgs;
import com.pulumi.panos.inputs.MonitorProfileLocationArgs;
import com.pulumi.panos.inputs.MonitorProfileLocationTemplateArgs;
import com.pulumi.resources.CustomResourceOptions;
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 example = new Template("example", TemplateArgs.builder()
.location(TemplateLocationArgs.builder()
.panorama(TemplateLocationPanoramaArgs.builder()
.build())
.build())
.name("example-template")
.build());
// Example 1: Monitor profile with default values (minimal configuration)
var minimal = new MonitorProfile("minimal", MonitorProfileArgs.builder()
.location(MonitorProfileLocationArgs.builder()
.template(MonitorProfileLocationTemplateArgs.builder()
.name(example.name())
.build())
.build())
.name("minimal-monitor-profile")
.build(), CustomResourceOptions.builder()
.dependsOn(example)
.build());
// Example 2: Monitor profile with fail-over action
var failover = new MonitorProfile("failover", MonitorProfileArgs.builder()
.location(MonitorProfileLocationArgs.builder()
.template(MonitorProfileLocationTemplateArgs.builder()
.name(example.name())
.build())
.build())
.name("failover-monitor-profile")
.action("fail-over")
.interval(5.0)
.threshold(3.0)
.build(), CustomResourceOptions.builder()
.dependsOn(example)
.build());
// Example 3: Monitor profile with wait-recover action and custom settings
var custom = new MonitorProfile("custom", MonitorProfileArgs.builder()
.location(MonitorProfileLocationArgs.builder()
.template(MonitorProfileLocationTemplateArgs.builder()
.name(example.name())
.build())
.build())
.name("custom-monitor-profile")
.action("wait-recover")
.interval(10.0)
.threshold(7.0)
.build(), CustomResourceOptions.builder()
.dependsOn(example)
.build());
}
}
resources:
example:
type: panos:Template
properties:
location:
panorama: {}
name: example-template
# Example 1: Monitor profile with default values (minimal configuration)
minimal:
type: panos:MonitorProfile
properties:
location:
template:
name: ${example.name}
name: minimal-monitor-profile
options:
dependsOn:
- ${example}
# Example 2: Monitor profile with fail-over action
failover:
type: panos:MonitorProfile
properties:
location:
template:
name: ${example.name}
name: failover-monitor-profile
action: fail-over
interval: 5
threshold: 3
options:
dependsOn:
- ${example}
# Example 3: Monitor profile with wait-recover action and custom settings
custom:
type: panos:MonitorProfile
properties:
location:
template:
name: ${example.name}
name: custom-monitor-profile
action: wait-recover
interval: 10
threshold: 7
options:
dependsOn:
- ${example}
Create MonitorProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorProfile(name: string, args: MonitorProfileArgs, opts?: CustomResourceOptions);@overload
def MonitorProfile(resource_name: str,
args: MonitorProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitorProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[MonitorProfileLocationArgs] = None,
action: Optional[str] = None,
interval: Optional[float] = None,
name: Optional[str] = None,
threshold: Optional[float] = None)func NewMonitorProfile(ctx *Context, name string, args MonitorProfileArgs, opts ...ResourceOption) (*MonitorProfile, error)public MonitorProfile(string name, MonitorProfileArgs args, CustomResourceOptions? opts = null)
public MonitorProfile(String name, MonitorProfileArgs args)
public MonitorProfile(String name, MonitorProfileArgs args, CustomResourceOptions options)
type: panos:MonitorProfile
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 MonitorProfileArgs
- 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 MonitorProfileArgs
- 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 MonitorProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorProfileArgs
- 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 monitorProfileResource = new Panos.MonitorProfile("monitorProfileResource", new()
{
Location = new Panos.Inputs.MonitorProfileLocationArgs
{
Ngfw = new Panos.Inputs.MonitorProfileLocationNgfwArgs
{
NgfwDevice = "string",
},
Template = new Panos.Inputs.MonitorProfileLocationTemplateArgs
{
Name = "string",
NgfwDevice = "string",
PanoramaDevice = "string",
},
TemplateStack = new Panos.Inputs.MonitorProfileLocationTemplateStackArgs
{
Name = "string",
NgfwDevice = "string",
PanoramaDevice = "string",
},
},
Action = "string",
Interval = 0,
Name = "string",
Threshold = 0,
});
example, err := panos.NewMonitorProfile(ctx, "monitorProfileResource", &panos.MonitorProfileArgs{
Location: &panos.MonitorProfileLocationArgs{
Ngfw: &panos.MonitorProfileLocationNgfwArgs{
NgfwDevice: pulumi.String("string"),
},
Template: &panos.MonitorProfileLocationTemplateArgs{
Name: pulumi.String("string"),
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
TemplateStack: &panos.MonitorProfileLocationTemplateStackArgs{
Name: pulumi.String("string"),
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
},
Action: pulumi.String("string"),
Interval: pulumi.Float64(0),
Name: pulumi.String("string"),
Threshold: pulumi.Float64(0),
})
var monitorProfileResource = new MonitorProfile("monitorProfileResource", MonitorProfileArgs.builder()
.location(MonitorProfileLocationArgs.builder()
.ngfw(MonitorProfileLocationNgfwArgs.builder()
.ngfwDevice("string")
.build())
.template(MonitorProfileLocationTemplateArgs.builder()
.name("string")
.ngfwDevice("string")
.panoramaDevice("string")
.build())
.templateStack(MonitorProfileLocationTemplateStackArgs.builder()
.name("string")
.ngfwDevice("string")
.panoramaDevice("string")
.build())
.build())
.action("string")
.interval(0.0)
.name("string")
.threshold(0.0)
.build());
monitor_profile_resource = panos.MonitorProfile("monitorProfileResource",
location={
"ngfw": {
"ngfw_device": "string",
},
"template": {
"name": "string",
"ngfw_device": "string",
"panorama_device": "string",
},
"template_stack": {
"name": "string",
"ngfw_device": "string",
"panorama_device": "string",
},
},
action="string",
interval=float(0),
name="string",
threshold=float(0))
const monitorProfileResource = new panos.MonitorProfile("monitorProfileResource", {
location: {
ngfw: {
ngfwDevice: "string",
},
template: {
name: "string",
ngfwDevice: "string",
panoramaDevice: "string",
},
templateStack: {
name: "string",
ngfwDevice: "string",
panoramaDevice: "string",
},
},
action: "string",
interval: 0,
name: "string",
threshold: 0,
});
type: panos:MonitorProfile
properties:
action: string
interval: 0
location:
ngfw:
ngfwDevice: string
template:
name: string
ngfwDevice: string
panoramaDevice: string
templateStack:
name: string
ngfwDevice: string
panoramaDevice: string
name: string
threshold: 0
MonitorProfile 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 MonitorProfile resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorProfile 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 MonitorProfile Resource
Get an existing MonitorProfile 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?: MonitorProfileState, opts?: CustomResourceOptions): MonitorProfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
interval: Optional[float] = None,
location: Optional[MonitorProfileLocationArgs] = None,
name: Optional[str] = None,
threshold: Optional[float] = None) -> MonitorProfilefunc GetMonitorProfile(ctx *Context, name string, id IDInput, state *MonitorProfileState, opts ...ResourceOption) (*MonitorProfile, error)public static MonitorProfile Get(string name, Input<string> id, MonitorProfileState? state, CustomResourceOptions? opts = null)public static MonitorProfile get(String name, Output<String> id, MonitorProfileState state, CustomResourceOptions options)resources: _: type: panos:MonitorProfile 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.
Supporting Types
MonitorProfileLocation, MonitorProfileLocationArgs
- Ngfw
Monitor
Profile Location Ngfw - Located in a specific NGFW device
- Template
Monitor
Profile Location Template - Located in a specific template
- Template
Stack MonitorProfile Location Template Stack - Located in a specific template stack
- Ngfw
Monitor
Profile Location Ngfw - Located in a specific NGFW device
- Template
Monitor
Profile Location Template - Located in a specific template
- Template
Stack MonitorProfile Location Template Stack - Located in a specific template stack
- ngfw
Monitor
Profile Location Ngfw - Located in a specific NGFW device
- template
Monitor
Profile Location Template - Located in a specific template
- template
Stack MonitorProfile Location Template Stack - Located in a specific template stack
- ngfw
Monitor
Profile Location Ngfw - Located in a specific NGFW device
- template
Monitor
Profile Location Template - Located in a specific template
- template
Stack MonitorProfile Location Template Stack - Located in a specific template stack
- ngfw
Monitor
Profile Location Ngfw - Located in a specific NGFW device
- template
Monitor
Profile Location Template - Located in a specific template
- template_
stack MonitorProfile 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
MonitorProfileLocationNgfw, MonitorProfileLocationNgfwArgs
- 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
MonitorProfileLocationTemplate, MonitorProfileLocationTemplateArgs
- 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
MonitorProfileLocationTemplateStack, MonitorProfileLocationTemplateStackArgs
- 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
