Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as panos from "@pulumi/panos";
// Create a template
const bgpTemplate = new panos.Template("bgp_template", {
location: {
panorama: {},
},
name: "bgp-routing-template",
});
// BGP Dampening Profile with custom values
const custom = new panos.BgpDampeningRoutingProfile("custom", {
location: {
template: {
name: bgpTemplate.name,
},
},
name: "custom-dampening-profile",
description: "BGP dampening profile with custom timer values",
halfLife: 10,
maxSuppressLimit: 120,
reuseLimit: 500,
suppressLimit: 1500,
});
import pulumi
import pulumi_panos as panos
# Create a template
bgp_template = panos.Template("bgp_template",
location={
"panorama": {},
},
name="bgp-routing-template")
# BGP Dampening Profile with custom values
custom = panos.BgpDampeningRoutingProfile("custom",
location={
"template": {
"name": bgp_template.name,
},
},
name="custom-dampening-profile",
description="BGP dampening profile with custom timer values",
half_life=10,
max_suppress_limit=120,
reuse_limit=500,
suppress_limit=1500)
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
bgpTemplate, err := panos.NewTemplate(ctx, "bgp_template", &panos.TemplateArgs{
Location: &panos.TemplateLocationArgs{
Panorama: &panos.TemplateLocationPanoramaArgs{},
},
Name: pulumi.String("bgp-routing-template"),
})
if err != nil {
return err
}
// BGP Dampening Profile with custom values
_, err = panos.NewBgpDampeningRoutingProfile(ctx, "custom", &panos.BgpDampeningRoutingProfileArgs{
Location: &panos.BgpDampeningRoutingProfileLocationArgs{
Template: &panos.BgpDampeningRoutingProfileLocationTemplateArgs{
Name: bgpTemplate.Name,
},
},
Name: pulumi.String("custom-dampening-profile"),
Description: pulumi.String("BGP dampening profile with custom timer values"),
HalfLife: pulumi.Float64(10),
MaxSuppressLimit: pulumi.Float64(120),
ReuseLimit: pulumi.Float64(500),
SuppressLimit: pulumi.Float64(1500),
})
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 bgpTemplate = new Panos.Template("bgp_template", new()
{
Location = new Panos.Inputs.TemplateLocationArgs
{
Panorama = null,
},
Name = "bgp-routing-template",
});
// BGP Dampening Profile with custom values
var custom = new Panos.BgpDampeningRoutingProfile("custom", new()
{
Location = new Panos.Inputs.BgpDampeningRoutingProfileLocationArgs
{
Template = new Panos.Inputs.BgpDampeningRoutingProfileLocationTemplateArgs
{
Name = bgpTemplate.Name,
},
},
Name = "custom-dampening-profile",
Description = "BGP dampening profile with custom timer values",
HalfLife = 10,
MaxSuppressLimit = 120,
ReuseLimit = 500,
SuppressLimit = 1500,
});
});
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.BgpDampeningRoutingProfile;
import com.pulumi.panos.BgpDampeningRoutingProfileArgs;
import com.pulumi.panos.inputs.BgpDampeningRoutingProfileLocationArgs;
import com.pulumi.panos.inputs.BgpDampeningRoutingProfileLocationTemplateArgs;
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 bgpTemplate = new Template("bgpTemplate", TemplateArgs.builder()
.location(TemplateLocationArgs.builder()
.panorama(TemplateLocationPanoramaArgs.builder()
.build())
.build())
.name("bgp-routing-template")
.build());
// BGP Dampening Profile with custom values
var custom = new BgpDampeningRoutingProfile("custom", BgpDampeningRoutingProfileArgs.builder()
.location(BgpDampeningRoutingProfileLocationArgs.builder()
.template(BgpDampeningRoutingProfileLocationTemplateArgs.builder()
.name(bgpTemplate.name())
.build())
.build())
.name("custom-dampening-profile")
.description("BGP dampening profile with custom timer values")
.halfLife(10.0)
.maxSuppressLimit(120.0)
.reuseLimit(500.0)
.suppressLimit(1500.0)
.build());
}
}
resources:
# Create a template
bgpTemplate:
type: panos:Template
name: bgp_template
properties:
location:
panorama: {}
name: bgp-routing-template
# BGP Dampening Profile with custom values
custom:
type: panos:BgpDampeningRoutingProfile
properties:
location:
template:
name: ${bgpTemplate.name}
name: custom-dampening-profile
description: BGP dampening profile with custom timer values
halfLife: 10
maxSuppressLimit: 120
reuseLimit: 500
suppressLimit: 1500
Create BgpDampeningRoutingProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BgpDampeningRoutingProfile(name: string, args: BgpDampeningRoutingProfileArgs, opts?: CustomResourceOptions);@overload
def BgpDampeningRoutingProfile(resource_name: str,
args: BgpDampeningRoutingProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BgpDampeningRoutingProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[BgpDampeningRoutingProfileLocationArgs] = None,
description: Optional[str] = None,
half_life: Optional[float] = None,
max_suppress_limit: Optional[float] = None,
name: Optional[str] = None,
reuse_limit: Optional[float] = None,
suppress_limit: Optional[float] = None)func NewBgpDampeningRoutingProfile(ctx *Context, name string, args BgpDampeningRoutingProfileArgs, opts ...ResourceOption) (*BgpDampeningRoutingProfile, error)public BgpDampeningRoutingProfile(string name, BgpDampeningRoutingProfileArgs args, CustomResourceOptions? opts = null)
public BgpDampeningRoutingProfile(String name, BgpDampeningRoutingProfileArgs args)
public BgpDampeningRoutingProfile(String name, BgpDampeningRoutingProfileArgs args, CustomResourceOptions options)
type: panos:BgpDampeningRoutingProfile
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 BgpDampeningRoutingProfileArgs
- 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 BgpDampeningRoutingProfileArgs
- 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 BgpDampeningRoutingProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BgpDampeningRoutingProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BgpDampeningRoutingProfileArgs
- 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 bgpDampeningRoutingProfileResource = new Panos.BgpDampeningRoutingProfile("bgpDampeningRoutingProfileResource", new()
{
Location = new Panos.Inputs.BgpDampeningRoutingProfileLocationArgs
{
Ngfw = new Panos.Inputs.BgpDampeningRoutingProfileLocationNgfwArgs
{
NgfwDevice = "string",
},
Template = new Panos.Inputs.BgpDampeningRoutingProfileLocationTemplateArgs
{
Name = "string",
NgfwDevice = "string",
PanoramaDevice = "string",
},
TemplateStack = new Panos.Inputs.BgpDampeningRoutingProfileLocationTemplateStackArgs
{
Name = "string",
NgfwDevice = "string",
PanoramaDevice = "string",
},
},
Description = "string",
HalfLife = 0,
MaxSuppressLimit = 0,
Name = "string",
ReuseLimit = 0,
SuppressLimit = 0,
});
example, err := panos.NewBgpDampeningRoutingProfile(ctx, "bgpDampeningRoutingProfileResource", &panos.BgpDampeningRoutingProfileArgs{
Location: &panos.BgpDampeningRoutingProfileLocationArgs{
Ngfw: &panos.BgpDampeningRoutingProfileLocationNgfwArgs{
NgfwDevice: pulumi.String("string"),
},
Template: &panos.BgpDampeningRoutingProfileLocationTemplateArgs{
Name: pulumi.String("string"),
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
TemplateStack: &panos.BgpDampeningRoutingProfileLocationTemplateStackArgs{
Name: pulumi.String("string"),
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
HalfLife: pulumi.Float64(0),
MaxSuppressLimit: pulumi.Float64(0),
Name: pulumi.String("string"),
ReuseLimit: pulumi.Float64(0),
SuppressLimit: pulumi.Float64(0),
})
var bgpDampeningRoutingProfileResource = new BgpDampeningRoutingProfile("bgpDampeningRoutingProfileResource", BgpDampeningRoutingProfileArgs.builder()
.location(BgpDampeningRoutingProfileLocationArgs.builder()
.ngfw(BgpDampeningRoutingProfileLocationNgfwArgs.builder()
.ngfwDevice("string")
.build())
.template(BgpDampeningRoutingProfileLocationTemplateArgs.builder()
.name("string")
.ngfwDevice("string")
.panoramaDevice("string")
.build())
.templateStack(BgpDampeningRoutingProfileLocationTemplateStackArgs.builder()
.name("string")
.ngfwDevice("string")
.panoramaDevice("string")
.build())
.build())
.description("string")
.halfLife(0.0)
.maxSuppressLimit(0.0)
.name("string")
.reuseLimit(0.0)
.suppressLimit(0.0)
.build());
bgp_dampening_routing_profile_resource = panos.BgpDampeningRoutingProfile("bgpDampeningRoutingProfileResource",
location={
"ngfw": {
"ngfw_device": "string",
},
"template": {
"name": "string",
"ngfw_device": "string",
"panorama_device": "string",
},
"template_stack": {
"name": "string",
"ngfw_device": "string",
"panorama_device": "string",
},
},
description="string",
half_life=0,
max_suppress_limit=0,
name="string",
reuse_limit=0,
suppress_limit=0)
const bgpDampeningRoutingProfileResource = new panos.BgpDampeningRoutingProfile("bgpDampeningRoutingProfileResource", {
location: {
ngfw: {
ngfwDevice: "string",
},
template: {
name: "string",
ngfwDevice: "string",
panoramaDevice: "string",
},
templateStack: {
name: "string",
ngfwDevice: "string",
panoramaDevice: "string",
},
},
description: "string",
halfLife: 0,
maxSuppressLimit: 0,
name: "string",
reuseLimit: 0,
suppressLimit: 0,
});
type: panos:BgpDampeningRoutingProfile
properties:
description: string
halfLife: 0
location:
ngfw:
ngfwDevice: string
template:
name: string
ngfwDevice: string
panoramaDevice: string
templateStack:
name: string
ngfwDevice: string
panoramaDevice: string
maxSuppressLimit: 0
name: string
reuseLimit: 0
suppressLimit: 0
BgpDampeningRoutingProfile 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 BgpDampeningRoutingProfile resource accepts the following input properties:
- Location
Bgp
Dampening Routing Profile Location - The location of this object.
- Description string
- Describe BGP Dampening Profile
- Half
Life double - Half-life for the penalty Default:15 (in minutes)
- Max
Suppress doubleLimit - Maximum duration (in minutes) a route can be suppressed. Default:60
- Name string
- Reuse
Limit double - Value to start reusing a route. Default:750
- Suppress
Limit double - Value to start supressing the route. Default:2000
- Location
Bgp
Dampening Routing Profile Location Args - The location of this object.
- Description string
- Describe BGP Dampening Profile
- Half
Life float64 - Half-life for the penalty Default:15 (in minutes)
- Max
Suppress float64Limit - Maximum duration (in minutes) a route can be suppressed. Default:60
- Name string
- Reuse
Limit float64 - Value to start reusing a route. Default:750
- Suppress
Limit float64 - Value to start supressing the route. Default:2000
- location
Bgp
Dampening Routing Profile Location - The location of this object.
- description String
- Describe BGP Dampening Profile
- half
Life Double - Half-life for the penalty Default:15 (in minutes)
- max
Suppress DoubleLimit - Maximum duration (in minutes) a route can be suppressed. Default:60
- name String
- reuse
Limit Double - Value to start reusing a route. Default:750
- suppress
Limit Double - Value to start supressing the route. Default:2000
- location
Bgp
Dampening Routing Profile Location - The location of this object.
- description string
- Describe BGP Dampening Profile
- half
Life number - Half-life for the penalty Default:15 (in minutes)
- max
Suppress numberLimit - Maximum duration (in minutes) a route can be suppressed. Default:60
- name string
- reuse
Limit number - Value to start reusing a route. Default:750
- suppress
Limit number - Value to start supressing the route. Default:2000
- location
Bgp
Dampening Routing Profile Location Args - The location of this object.
- description str
- Describe BGP Dampening Profile
- half_
life float - Half-life for the penalty Default:15 (in minutes)
- max_
suppress_ floatlimit - Maximum duration (in minutes) a route can be suppressed. Default:60
- name str
- reuse_
limit float - Value to start reusing a route. Default:750
- suppress_
limit float - Value to start supressing the route. Default:2000
- location Property Map
- The location of this object.
- description String
- Describe BGP Dampening Profile
- half
Life Number - Half-life for the penalty Default:15 (in minutes)
- max
Suppress NumberLimit - Maximum duration (in minutes) a route can be suppressed. Default:60
- name String
- reuse
Limit Number - Value to start reusing a route. Default:750
- suppress
Limit Number - Value to start supressing the route. Default:2000
Outputs
All input properties are implicitly available as output properties. Additionally, the BgpDampeningRoutingProfile 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 BgpDampeningRoutingProfile Resource
Get an existing BgpDampeningRoutingProfile 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?: BgpDampeningRoutingProfileState, opts?: CustomResourceOptions): BgpDampeningRoutingProfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
half_life: Optional[float] = None,
location: Optional[BgpDampeningRoutingProfileLocationArgs] = None,
max_suppress_limit: Optional[float] = None,
name: Optional[str] = None,
reuse_limit: Optional[float] = None,
suppress_limit: Optional[float] = None) -> BgpDampeningRoutingProfilefunc GetBgpDampeningRoutingProfile(ctx *Context, name string, id IDInput, state *BgpDampeningRoutingProfileState, opts ...ResourceOption) (*BgpDampeningRoutingProfile, error)public static BgpDampeningRoutingProfile Get(string name, Input<string> id, BgpDampeningRoutingProfileState? state, CustomResourceOptions? opts = null)public static BgpDampeningRoutingProfile get(String name, Output<String> id, BgpDampeningRoutingProfileState state, CustomResourceOptions options)resources: _: type: panos:BgpDampeningRoutingProfile 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.
- Description string
- Describe BGP Dampening Profile
- Half
Life double - Half-life for the penalty Default:15 (in minutes)
- Location
Bgp
Dampening Routing Profile Location - The location of this object.
- Max
Suppress doubleLimit - Maximum duration (in minutes) a route can be suppressed. Default:60
- Name string
- Reuse
Limit double - Value to start reusing a route. Default:750
- Suppress
Limit double - Value to start supressing the route. Default:2000
- Description string
- Describe BGP Dampening Profile
- Half
Life float64 - Half-life for the penalty Default:15 (in minutes)
- Location
Bgp
Dampening Routing Profile Location Args - The location of this object.
- Max
Suppress float64Limit - Maximum duration (in minutes) a route can be suppressed. Default:60
- Name string
- Reuse
Limit float64 - Value to start reusing a route. Default:750
- Suppress
Limit float64 - Value to start supressing the route. Default:2000
- description String
- Describe BGP Dampening Profile
- half
Life Double - Half-life for the penalty Default:15 (in minutes)
- location
Bgp
Dampening Routing Profile Location - The location of this object.
- max
Suppress DoubleLimit - Maximum duration (in minutes) a route can be suppressed. Default:60
- name String
- reuse
Limit Double - Value to start reusing a route. Default:750
- suppress
Limit Double - Value to start supressing the route. Default:2000
- description string
- Describe BGP Dampening Profile
- half
Life number - Half-life for the penalty Default:15 (in minutes)
- location
Bgp
Dampening Routing Profile Location - The location of this object.
- max
Suppress numberLimit - Maximum duration (in minutes) a route can be suppressed. Default:60
- name string
- reuse
Limit number - Value to start reusing a route. Default:750
- suppress
Limit number - Value to start supressing the route. Default:2000
- description str
- Describe BGP Dampening Profile
- half_
life float - Half-life for the penalty Default:15 (in minutes)
- location
Bgp
Dampening Routing Profile Location Args - The location of this object.
- max_
suppress_ floatlimit - Maximum duration (in minutes) a route can be suppressed. Default:60
- name str
- reuse_
limit float - Value to start reusing a route. Default:750
- suppress_
limit float - Value to start supressing the route. Default:2000
- description String
- Describe BGP Dampening Profile
- half
Life Number - Half-life for the penalty Default:15 (in minutes)
- location Property Map
- The location of this object.
- max
Suppress NumberLimit - Maximum duration (in minutes) a route can be suppressed. Default:60
- name String
- reuse
Limit Number - Value to start reusing a route. Default:750
- suppress
Limit Number - Value to start supressing the route. Default:2000
Supporting Types
BgpDampeningRoutingProfileLocation, BgpDampeningRoutingProfileLocationArgs
- Ngfw
Bgp
Dampening Routing Profile Location Ngfw - Located in a specific NGFW device
- Template
Bgp
Dampening Routing Profile Location Template - Located in a specific template
- Template
Stack BgpDampening Routing Profile Location Template Stack - Located in a specific template stack
- Ngfw
Bgp
Dampening Routing Profile Location Ngfw - Located in a specific NGFW device
- Template
Bgp
Dampening Routing Profile Location Template - Located in a specific template
- Template
Stack BgpDampening Routing Profile Location Template Stack - Located in a specific template stack
- ngfw
Bgp
Dampening Routing Profile Location Ngfw - Located in a specific NGFW device
- template
Bgp
Dampening Routing Profile Location Template - Located in a specific template
- template
Stack BgpDampening Routing Profile Location Template Stack - Located in a specific template stack
- ngfw
Bgp
Dampening Routing Profile Location Ngfw - Located in a specific NGFW device
- template
Bgp
Dampening Routing Profile Location Template - Located in a specific template
- template
Stack BgpDampening Routing Profile Location Template Stack - Located in a specific template stack
- ngfw
Bgp
Dampening Routing Profile Location Ngfw - Located in a specific NGFW device
- template
Bgp
Dampening Routing Profile Location Template - Located in a specific template
- template_
stack BgpDampening 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
BgpDampeningRoutingProfileLocationNgfw, BgpDampeningRoutingProfileLocationNgfwArgs
- 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
BgpDampeningRoutingProfileLocationTemplate, BgpDampeningRoutingProfileLocationTemplateArgs
- 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
BgpDampeningRoutingProfileLocationTemplateStack, BgpDampeningRoutingProfileLocationTemplateStackArgs
- 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.
