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",
});
// IPv4 Unicast - Redistribute Connected Routes
const ipv4Connected = new panos.BgpRedistributionRoutingProfile("ipv4_connected", {
location: {
template: {
name: bgpTemplate.name,
},
},
name: "ipv4-redistribute-connected",
ipv4: {
unicast: {
connected: {
enable: true,
metric: 100,
},
},
},
});
// IPv4 Unicast - Redistribute OSPF Routes
const ipv4Ospf = new panos.BgpRedistributionRoutingProfile("ipv4_ospf", {
location: {
template: {
name: bgpTemplate.name,
},
},
name: "ipv4-redistribute-ospf",
ipv4: {
unicast: {
ospf: {
enable: true,
metric: 200,
},
},
},
});
// IPv4 Unicast - Redistribute Static Routes
const ipv4Static = new panos.BgpRedistributionRoutingProfile("ipv4_static", {
location: {
template: {
name: bgpTemplate.name,
},
},
name: "ipv4-redistribute-static",
ipv4: {
unicast: {
static: {
enable: true,
metric: 150,
},
},
},
});
// IPv4 Unicast - Redistribute RIP Routes
const ipv4Rip = new panos.BgpRedistributionRoutingProfile("ipv4_rip", {
location: {
template: {
name: bgpTemplate.name,
},
},
name: "ipv4-redistribute-rip",
ipv4: {
unicast: {
rip: {
enable: true,
metric: 175,
},
},
},
});
// IPv4 Unicast - Redistribute Multiple Sources
const ipv4Multiple = new panos.BgpRedistributionRoutingProfile("ipv4_multiple", {
location: {
template: {
name: bgpTemplate.name,
},
},
name: "ipv4-redistribute-multiple",
ipv4: {
unicast: {
connected: {
enable: true,
metric: 100,
},
ospf: {
enable: true,
metric: 200,
},
static: {
enable: true,
metric: 150,
},
},
},
});
// IPv6 Unicast - Redistribute Connected Routes
const ipv6Connected = new panos.BgpRedistributionRoutingProfile("ipv6_connected", {
location: {
template: {
name: bgpTemplate.name,
},
},
name: "ipv6-redistribute-connected",
ipv6: {
unicast: {
connected: {
enable: true,
metric: 100,
},
},
},
});
// IPv6 Unicast - Redistribute OSPFv3 Routes
const ipv6Ospfv3 = new panos.BgpRedistributionRoutingProfile("ipv6_ospfv3", {
location: {
template: {
name: bgpTemplate.name,
},
},
name: "ipv6-redistribute-ospfv3",
ipv6: {
unicast: {
ospfv3: {
enable: true,
metric: 200,
},
},
},
});
// IPv6 Unicast - Redistribute Static Routes
const ipv6Static = new panos.BgpRedistributionRoutingProfile("ipv6_static", {
location: {
template: {
name: bgpTemplate.name,
},
},
name: "ipv6-redistribute-static",
ipv6: {
unicast: {
static: {
enable: true,
metric: 150,
},
},
},
});
// IPv6 Unicast - Redistribute Multiple Sources
const ipv6Multiple = new panos.BgpRedistributionRoutingProfile("ipv6_multiple", {
location: {
template: {
name: bgpTemplate.name,
},
},
name: "ipv6-redistribute-multiple",
ipv6: {
unicast: {
connected: {
enable: true,
metric: 100,
},
ospfv3: {
enable: true,
metric: 200,
},
static: {
enable: true,
metric: 150,
},
},
},
});
// Using template-stack location
const bgpStack = new panos.TemplateStack("bgp_stack", {
location: {
panorama: {},
},
name: "bgp-routing-stack",
});
const templateStackExample = new panos.BgpRedistributionRoutingProfile("template_stack_example", {
location: {
templateStack: {
name: bgpStack.name,
},
},
name: "stack-redistribute-profile",
ipv4: {
unicast: {
connected: {
enable: true,
metric: 100,
},
},
},
});
import pulumi
import pulumi_panos as panos
# Create a template
bgp_template = panos.Template("bgp_template",
location={
"panorama": {},
},
name="bgp-routing-template")
# IPv4 Unicast - Redistribute Connected Routes
ipv4_connected = panos.BgpRedistributionRoutingProfile("ipv4_connected",
location={
"template": {
"name": bgp_template.name,
},
},
name="ipv4-redistribute-connected",
ipv4={
"unicast": {
"connected": {
"enable": True,
"metric": 100,
},
},
})
# IPv4 Unicast - Redistribute OSPF Routes
ipv4_ospf = panos.BgpRedistributionRoutingProfile("ipv4_ospf",
location={
"template": {
"name": bgp_template.name,
},
},
name="ipv4-redistribute-ospf",
ipv4={
"unicast": {
"ospf": {
"enable": True,
"metric": 200,
},
},
})
# IPv4 Unicast - Redistribute Static Routes
ipv4_static = panos.BgpRedistributionRoutingProfile("ipv4_static",
location={
"template": {
"name": bgp_template.name,
},
},
name="ipv4-redistribute-static",
ipv4={
"unicast": {
"static": {
"enable": True,
"metric": 150,
},
},
})
# IPv4 Unicast - Redistribute RIP Routes
ipv4_rip = panos.BgpRedistributionRoutingProfile("ipv4_rip",
location={
"template": {
"name": bgp_template.name,
},
},
name="ipv4-redistribute-rip",
ipv4={
"unicast": {
"rip": {
"enable": True,
"metric": 175,
},
},
})
# IPv4 Unicast - Redistribute Multiple Sources
ipv4_multiple = panos.BgpRedistributionRoutingProfile("ipv4_multiple",
location={
"template": {
"name": bgp_template.name,
},
},
name="ipv4-redistribute-multiple",
ipv4={
"unicast": {
"connected": {
"enable": True,
"metric": 100,
},
"ospf": {
"enable": True,
"metric": 200,
},
"static": {
"enable": True,
"metric": 150,
},
},
})
# IPv6 Unicast - Redistribute Connected Routes
ipv6_connected = panos.BgpRedistributionRoutingProfile("ipv6_connected",
location={
"template": {
"name": bgp_template.name,
},
},
name="ipv6-redistribute-connected",
ipv6={
"unicast": {
"connected": {
"enable": True,
"metric": 100,
},
},
})
# IPv6 Unicast - Redistribute OSPFv3 Routes
ipv6_ospfv3 = panos.BgpRedistributionRoutingProfile("ipv6_ospfv3",
location={
"template": {
"name": bgp_template.name,
},
},
name="ipv6-redistribute-ospfv3",
ipv6={
"unicast": {
"ospfv3": {
"enable": True,
"metric": 200,
},
},
})
# IPv6 Unicast - Redistribute Static Routes
ipv6_static = panos.BgpRedistributionRoutingProfile("ipv6_static",
location={
"template": {
"name": bgp_template.name,
},
},
name="ipv6-redistribute-static",
ipv6={
"unicast": {
"static": {
"enable": True,
"metric": 150,
},
},
})
# IPv6 Unicast - Redistribute Multiple Sources
ipv6_multiple = panos.BgpRedistributionRoutingProfile("ipv6_multiple",
location={
"template": {
"name": bgp_template.name,
},
},
name="ipv6-redistribute-multiple",
ipv6={
"unicast": {
"connected": {
"enable": True,
"metric": 100,
},
"ospfv3": {
"enable": True,
"metric": 200,
},
"static": {
"enable": True,
"metric": 150,
},
},
})
# Using template-stack location
bgp_stack = panos.TemplateStack("bgp_stack",
location={
"panorama": {},
},
name="bgp-routing-stack")
template_stack_example = panos.BgpRedistributionRoutingProfile("template_stack_example",
location={
"template_stack": {
"name": bgp_stack.name,
},
},
name="stack-redistribute-profile",
ipv4={
"unicast": {
"connected": {
"enable": True,
"metric": 100,
},
},
})
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
}
// IPv4 Unicast - Redistribute Connected Routes
_, err = panos.NewBgpRedistributionRoutingProfile(ctx, "ipv4_connected", &panos.BgpRedistributionRoutingProfileArgs{
Location: &panos.BgpRedistributionRoutingProfileLocationArgs{
Template: &panos.BgpRedistributionRoutingProfileLocationTemplateArgs{
Name: bgpTemplate.Name,
},
},
Name: pulumi.String("ipv4-redistribute-connected"),
Ipv4: &panos.BgpRedistributionRoutingProfileIpv4Args{
Unicast: &panos.BgpRedistributionRoutingProfileIpv4UnicastArgs{
Connected: &panos.BgpRedistributionRoutingProfileIpv4UnicastConnectedArgs{
Enable: pulumi.Bool(true),
Metric: pulumi.Float64(100),
},
},
},
})
if err != nil {
return err
}
// IPv4 Unicast - Redistribute OSPF Routes
_, err = panos.NewBgpRedistributionRoutingProfile(ctx, "ipv4_ospf", &panos.BgpRedistributionRoutingProfileArgs{
Location: &panos.BgpRedistributionRoutingProfileLocationArgs{
Template: &panos.BgpRedistributionRoutingProfileLocationTemplateArgs{
Name: bgpTemplate.Name,
},
},
Name: pulumi.String("ipv4-redistribute-ospf"),
Ipv4: &panos.BgpRedistributionRoutingProfileIpv4Args{
Unicast: &panos.BgpRedistributionRoutingProfileIpv4UnicastArgs{
Ospf: &panos.BgpRedistributionRoutingProfileIpv4UnicastOspfArgs{
Enable: pulumi.Bool(true),
Metric: pulumi.Float64(200),
},
},
},
})
if err != nil {
return err
}
// IPv4 Unicast - Redistribute Static Routes
_, err = panos.NewBgpRedistributionRoutingProfile(ctx, "ipv4_static", &panos.BgpRedistributionRoutingProfileArgs{
Location: &panos.BgpRedistributionRoutingProfileLocationArgs{
Template: &panos.BgpRedistributionRoutingProfileLocationTemplateArgs{
Name: bgpTemplate.Name,
},
},
Name: pulumi.String("ipv4-redistribute-static"),
Ipv4: &panos.BgpRedistributionRoutingProfileIpv4Args{
Unicast: &panos.BgpRedistributionRoutingProfileIpv4UnicastArgs{
Static: &panos.BgpRedistributionRoutingProfileIpv4UnicastStaticArgs{
Enable: pulumi.Bool(true),
Metric: pulumi.Float64(150),
},
},
},
})
if err != nil {
return err
}
// IPv4 Unicast - Redistribute RIP Routes
_, err = panos.NewBgpRedistributionRoutingProfile(ctx, "ipv4_rip", &panos.BgpRedistributionRoutingProfileArgs{
Location: &panos.BgpRedistributionRoutingProfileLocationArgs{
Template: &panos.BgpRedistributionRoutingProfileLocationTemplateArgs{
Name: bgpTemplate.Name,
},
},
Name: pulumi.String("ipv4-redistribute-rip"),
Ipv4: &panos.BgpRedistributionRoutingProfileIpv4Args{
Unicast: &panos.BgpRedistributionRoutingProfileIpv4UnicastArgs{
Rip: &panos.BgpRedistributionRoutingProfileIpv4UnicastRipArgs{
Enable: pulumi.Bool(true),
Metric: pulumi.Float64(175),
},
},
},
})
if err != nil {
return err
}
// IPv4 Unicast - Redistribute Multiple Sources
_, err = panos.NewBgpRedistributionRoutingProfile(ctx, "ipv4_multiple", &panos.BgpRedistributionRoutingProfileArgs{
Location: &panos.BgpRedistributionRoutingProfileLocationArgs{
Template: &panos.BgpRedistributionRoutingProfileLocationTemplateArgs{
Name: bgpTemplate.Name,
},
},
Name: pulumi.String("ipv4-redistribute-multiple"),
Ipv4: &panos.BgpRedistributionRoutingProfileIpv4Args{
Unicast: &panos.BgpRedistributionRoutingProfileIpv4UnicastArgs{
Connected: &panos.BgpRedistributionRoutingProfileIpv4UnicastConnectedArgs{
Enable: pulumi.Bool(true),
Metric: pulumi.Float64(100),
},
Ospf: &panos.BgpRedistributionRoutingProfileIpv4UnicastOspfArgs{
Enable: pulumi.Bool(true),
Metric: pulumi.Float64(200),
},
Static: &panos.BgpRedistributionRoutingProfileIpv4UnicastStaticArgs{
Enable: pulumi.Bool(true),
Metric: pulumi.Float64(150),
},
},
},
})
if err != nil {
return err
}
// IPv6 Unicast - Redistribute Connected Routes
_, err = panos.NewBgpRedistributionRoutingProfile(ctx, "ipv6_connected", &panos.BgpRedistributionRoutingProfileArgs{
Location: &panos.BgpRedistributionRoutingProfileLocationArgs{
Template: &panos.BgpRedistributionRoutingProfileLocationTemplateArgs{
Name: bgpTemplate.Name,
},
},
Name: pulumi.String("ipv6-redistribute-connected"),
Ipv6: &panos.BgpRedistributionRoutingProfileIpv6Args{
Unicast: &panos.BgpRedistributionRoutingProfileIpv6UnicastArgs{
Connected: &panos.BgpRedistributionRoutingProfileIpv6UnicastConnectedArgs{
Enable: pulumi.Bool(true),
Metric: pulumi.Float64(100),
},
},
},
})
if err != nil {
return err
}
// IPv6 Unicast - Redistribute OSPFv3 Routes
_, err = panos.NewBgpRedistributionRoutingProfile(ctx, "ipv6_ospfv3", &panos.BgpRedistributionRoutingProfileArgs{
Location: &panos.BgpRedistributionRoutingProfileLocationArgs{
Template: &panos.BgpRedistributionRoutingProfileLocationTemplateArgs{
Name: bgpTemplate.Name,
},
},
Name: pulumi.String("ipv6-redistribute-ospfv3"),
Ipv6: &panos.BgpRedistributionRoutingProfileIpv6Args{
Unicast: &panos.BgpRedistributionRoutingProfileIpv6UnicastArgs{
Ospfv3: &panos.BgpRedistributionRoutingProfileIpv6UnicastOspfv3Args{
Enable: pulumi.Bool(true),
Metric: pulumi.Float64(200),
},
},
},
})
if err != nil {
return err
}
// IPv6 Unicast - Redistribute Static Routes
_, err = panos.NewBgpRedistributionRoutingProfile(ctx, "ipv6_static", &panos.BgpRedistributionRoutingProfileArgs{
Location: &panos.BgpRedistributionRoutingProfileLocationArgs{
Template: &panos.BgpRedistributionRoutingProfileLocationTemplateArgs{
Name: bgpTemplate.Name,
},
},
Name: pulumi.String("ipv6-redistribute-static"),
Ipv6: &panos.BgpRedistributionRoutingProfileIpv6Args{
Unicast: &panos.BgpRedistributionRoutingProfileIpv6UnicastArgs{
Static: &panos.BgpRedistributionRoutingProfileIpv6UnicastStaticArgs{
Enable: pulumi.Bool(true),
Metric: pulumi.Float64(150),
},
},
},
})
if err != nil {
return err
}
// IPv6 Unicast - Redistribute Multiple Sources
_, err = panos.NewBgpRedistributionRoutingProfile(ctx, "ipv6_multiple", &panos.BgpRedistributionRoutingProfileArgs{
Location: &panos.BgpRedistributionRoutingProfileLocationArgs{
Template: &panos.BgpRedistributionRoutingProfileLocationTemplateArgs{
Name: bgpTemplate.Name,
},
},
Name: pulumi.String("ipv6-redistribute-multiple"),
Ipv6: &panos.BgpRedistributionRoutingProfileIpv6Args{
Unicast: &panos.BgpRedistributionRoutingProfileIpv6UnicastArgs{
Connected: &panos.BgpRedistributionRoutingProfileIpv6UnicastConnectedArgs{
Enable: pulumi.Bool(true),
Metric: pulumi.Float64(100),
},
Ospfv3: &panos.BgpRedistributionRoutingProfileIpv6UnicastOspfv3Args{
Enable: pulumi.Bool(true),
Metric: pulumi.Float64(200),
},
Static: &panos.BgpRedistributionRoutingProfileIpv6UnicastStaticArgs{
Enable: pulumi.Bool(true),
Metric: pulumi.Float64(150),
},
},
},
})
if err != nil {
return err
}
// Using template-stack location
bgpStack, err := panos.NewTemplateStack(ctx, "bgp_stack", &panos.TemplateStackArgs{
Location: &panos.TemplateStackLocationArgs{
Panorama: &panos.TemplateStackLocationPanoramaArgs{},
},
Name: pulumi.String("bgp-routing-stack"),
})
if err != nil {
return err
}
_, err = panos.NewBgpRedistributionRoutingProfile(ctx, "template_stack_example", &panos.BgpRedistributionRoutingProfileArgs{
Location: &panos.BgpRedistributionRoutingProfileLocationArgs{
TemplateStack: &panos.BgpRedistributionRoutingProfileLocationTemplateStackArgs{
Name: bgpStack.Name,
},
},
Name: pulumi.String("stack-redistribute-profile"),
Ipv4: &panos.BgpRedistributionRoutingProfileIpv4Args{
Unicast: &panos.BgpRedistributionRoutingProfileIpv4UnicastArgs{
Connected: &panos.BgpRedistributionRoutingProfileIpv4UnicastConnectedArgs{
Enable: pulumi.Bool(true),
Metric: pulumi.Float64(100),
},
},
},
})
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",
});
// IPv4 Unicast - Redistribute Connected Routes
var ipv4Connected = new Panos.BgpRedistributionRoutingProfile("ipv4_connected", new()
{
Location = new Panos.Inputs.BgpRedistributionRoutingProfileLocationArgs
{
Template = new Panos.Inputs.BgpRedistributionRoutingProfileLocationTemplateArgs
{
Name = bgpTemplate.Name,
},
},
Name = "ipv4-redistribute-connected",
Ipv4 = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4Args
{
Unicast = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastArgs
{
Connected = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastConnectedArgs
{
Enable = true,
Metric = 100,
},
},
},
});
// IPv4 Unicast - Redistribute OSPF Routes
var ipv4Ospf = new Panos.BgpRedistributionRoutingProfile("ipv4_ospf", new()
{
Location = new Panos.Inputs.BgpRedistributionRoutingProfileLocationArgs
{
Template = new Panos.Inputs.BgpRedistributionRoutingProfileLocationTemplateArgs
{
Name = bgpTemplate.Name,
},
},
Name = "ipv4-redistribute-ospf",
Ipv4 = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4Args
{
Unicast = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastArgs
{
Ospf = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastOspfArgs
{
Enable = true,
Metric = 200,
},
},
},
});
// IPv4 Unicast - Redistribute Static Routes
var ipv4Static = new Panos.BgpRedistributionRoutingProfile("ipv4_static", new()
{
Location = new Panos.Inputs.BgpRedistributionRoutingProfileLocationArgs
{
Template = new Panos.Inputs.BgpRedistributionRoutingProfileLocationTemplateArgs
{
Name = bgpTemplate.Name,
},
},
Name = "ipv4-redistribute-static",
Ipv4 = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4Args
{
Unicast = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastArgs
{
Static = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastStaticArgs
{
Enable = true,
Metric = 150,
},
},
},
});
// IPv4 Unicast - Redistribute RIP Routes
var ipv4Rip = new Panos.BgpRedistributionRoutingProfile("ipv4_rip", new()
{
Location = new Panos.Inputs.BgpRedistributionRoutingProfileLocationArgs
{
Template = new Panos.Inputs.BgpRedistributionRoutingProfileLocationTemplateArgs
{
Name = bgpTemplate.Name,
},
},
Name = "ipv4-redistribute-rip",
Ipv4 = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4Args
{
Unicast = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastArgs
{
Rip = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastRipArgs
{
Enable = true,
Metric = 175,
},
},
},
});
// IPv4 Unicast - Redistribute Multiple Sources
var ipv4Multiple = new Panos.BgpRedistributionRoutingProfile("ipv4_multiple", new()
{
Location = new Panos.Inputs.BgpRedistributionRoutingProfileLocationArgs
{
Template = new Panos.Inputs.BgpRedistributionRoutingProfileLocationTemplateArgs
{
Name = bgpTemplate.Name,
},
},
Name = "ipv4-redistribute-multiple",
Ipv4 = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4Args
{
Unicast = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastArgs
{
Connected = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastConnectedArgs
{
Enable = true,
Metric = 100,
},
Ospf = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastOspfArgs
{
Enable = true,
Metric = 200,
},
Static = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastStaticArgs
{
Enable = true,
Metric = 150,
},
},
},
});
// IPv6 Unicast - Redistribute Connected Routes
var ipv6Connected = new Panos.BgpRedistributionRoutingProfile("ipv6_connected", new()
{
Location = new Panos.Inputs.BgpRedistributionRoutingProfileLocationArgs
{
Template = new Panos.Inputs.BgpRedistributionRoutingProfileLocationTemplateArgs
{
Name = bgpTemplate.Name,
},
},
Name = "ipv6-redistribute-connected",
Ipv6 = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6Args
{
Unicast = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6UnicastArgs
{
Connected = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6UnicastConnectedArgs
{
Enable = true,
Metric = 100,
},
},
},
});
// IPv6 Unicast - Redistribute OSPFv3 Routes
var ipv6Ospfv3 = new Panos.BgpRedistributionRoutingProfile("ipv6_ospfv3", new()
{
Location = new Panos.Inputs.BgpRedistributionRoutingProfileLocationArgs
{
Template = new Panos.Inputs.BgpRedistributionRoutingProfileLocationTemplateArgs
{
Name = bgpTemplate.Name,
},
},
Name = "ipv6-redistribute-ospfv3",
Ipv6 = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6Args
{
Unicast = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6UnicastArgs
{
Ospfv3 = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6UnicastOspfv3Args
{
Enable = true,
Metric = 200,
},
},
},
});
// IPv6 Unicast - Redistribute Static Routes
var ipv6Static = new Panos.BgpRedistributionRoutingProfile("ipv6_static", new()
{
Location = new Panos.Inputs.BgpRedistributionRoutingProfileLocationArgs
{
Template = new Panos.Inputs.BgpRedistributionRoutingProfileLocationTemplateArgs
{
Name = bgpTemplate.Name,
},
},
Name = "ipv6-redistribute-static",
Ipv6 = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6Args
{
Unicast = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6UnicastArgs
{
Static = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6UnicastStaticArgs
{
Enable = true,
Metric = 150,
},
},
},
});
// IPv6 Unicast - Redistribute Multiple Sources
var ipv6Multiple = new Panos.BgpRedistributionRoutingProfile("ipv6_multiple", new()
{
Location = new Panos.Inputs.BgpRedistributionRoutingProfileLocationArgs
{
Template = new Panos.Inputs.BgpRedistributionRoutingProfileLocationTemplateArgs
{
Name = bgpTemplate.Name,
},
},
Name = "ipv6-redistribute-multiple",
Ipv6 = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6Args
{
Unicast = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6UnicastArgs
{
Connected = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6UnicastConnectedArgs
{
Enable = true,
Metric = 100,
},
Ospfv3 = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6UnicastOspfv3Args
{
Enable = true,
Metric = 200,
},
Static = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6UnicastStaticArgs
{
Enable = true,
Metric = 150,
},
},
},
});
// Using template-stack location
var bgpStack = new Panos.TemplateStack("bgp_stack", new()
{
Location = new Panos.Inputs.TemplateStackLocationArgs
{
Panorama = null,
},
Name = "bgp-routing-stack",
});
var templateStackExample = new Panos.BgpRedistributionRoutingProfile("template_stack_example", new()
{
Location = new Panos.Inputs.BgpRedistributionRoutingProfileLocationArgs
{
TemplateStack = new Panos.Inputs.BgpRedistributionRoutingProfileLocationTemplateStackArgs
{
Name = bgpStack.Name,
},
},
Name = "stack-redistribute-profile",
Ipv4 = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4Args
{
Unicast = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastArgs
{
Connected = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastConnectedArgs
{
Enable = true,
Metric = 100,
},
},
},
});
});
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.BgpRedistributionRoutingProfile;
import com.pulumi.panos.BgpRedistributionRoutingProfileArgs;
import com.pulumi.panos.inputs.BgpRedistributionRoutingProfileLocationArgs;
import com.pulumi.panos.inputs.BgpRedistributionRoutingProfileLocationTemplateArgs;
import com.pulumi.panos.inputs.BgpRedistributionRoutingProfileIpv4Args;
import com.pulumi.panos.inputs.BgpRedistributionRoutingProfileIpv4UnicastArgs;
import com.pulumi.panos.inputs.BgpRedistributionRoutingProfileIpv4UnicastConnectedArgs;
import com.pulumi.panos.inputs.BgpRedistributionRoutingProfileIpv4UnicastOspfArgs;
import com.pulumi.panos.inputs.BgpRedistributionRoutingProfileIpv4UnicastStaticArgs;
import com.pulumi.panos.inputs.BgpRedistributionRoutingProfileIpv4UnicastRipArgs;
import com.pulumi.panos.inputs.BgpRedistributionRoutingProfileIpv6Args;
import com.pulumi.panos.inputs.BgpRedistributionRoutingProfileIpv6UnicastArgs;
import com.pulumi.panos.inputs.BgpRedistributionRoutingProfileIpv6UnicastConnectedArgs;
import com.pulumi.panos.inputs.BgpRedistributionRoutingProfileIpv6UnicastOspfv3Args;
import com.pulumi.panos.inputs.BgpRedistributionRoutingProfileIpv6UnicastStaticArgs;
import com.pulumi.panos.TemplateStack;
import com.pulumi.panos.TemplateStackArgs;
import com.pulumi.panos.inputs.TemplateStackLocationArgs;
import com.pulumi.panos.inputs.TemplateStackLocationPanoramaArgs;
import com.pulumi.panos.inputs.BgpRedistributionRoutingProfileLocationTemplateStackArgs;
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());
// IPv4 Unicast - Redistribute Connected Routes
var ipv4Connected = new BgpRedistributionRoutingProfile("ipv4Connected", BgpRedistributionRoutingProfileArgs.builder()
.location(BgpRedistributionRoutingProfileLocationArgs.builder()
.template(BgpRedistributionRoutingProfileLocationTemplateArgs.builder()
.name(bgpTemplate.name())
.build())
.build())
.name("ipv4-redistribute-connected")
.ipv4(BgpRedistributionRoutingProfileIpv4Args.builder()
.unicast(BgpRedistributionRoutingProfileIpv4UnicastArgs.builder()
.connected(BgpRedistributionRoutingProfileIpv4UnicastConnectedArgs.builder()
.enable(true)
.metric(100.0)
.build())
.build())
.build())
.build());
// IPv4 Unicast - Redistribute OSPF Routes
var ipv4Ospf = new BgpRedistributionRoutingProfile("ipv4Ospf", BgpRedistributionRoutingProfileArgs.builder()
.location(BgpRedistributionRoutingProfileLocationArgs.builder()
.template(BgpRedistributionRoutingProfileLocationTemplateArgs.builder()
.name(bgpTemplate.name())
.build())
.build())
.name("ipv4-redistribute-ospf")
.ipv4(BgpRedistributionRoutingProfileIpv4Args.builder()
.unicast(BgpRedistributionRoutingProfileIpv4UnicastArgs.builder()
.ospf(BgpRedistributionRoutingProfileIpv4UnicastOspfArgs.builder()
.enable(true)
.metric(200.0)
.build())
.build())
.build())
.build());
// IPv4 Unicast - Redistribute Static Routes
var ipv4Static = new BgpRedistributionRoutingProfile("ipv4Static", BgpRedistributionRoutingProfileArgs.builder()
.location(BgpRedistributionRoutingProfileLocationArgs.builder()
.template(BgpRedistributionRoutingProfileLocationTemplateArgs.builder()
.name(bgpTemplate.name())
.build())
.build())
.name("ipv4-redistribute-static")
.ipv4(BgpRedistributionRoutingProfileIpv4Args.builder()
.unicast(BgpRedistributionRoutingProfileIpv4UnicastArgs.builder()
.static_(BgpRedistributionRoutingProfileIpv4UnicastStaticArgs.builder()
.enable(true)
.metric(150.0)
.build())
.build())
.build())
.build());
// IPv4 Unicast - Redistribute RIP Routes
var ipv4Rip = new BgpRedistributionRoutingProfile("ipv4Rip", BgpRedistributionRoutingProfileArgs.builder()
.location(BgpRedistributionRoutingProfileLocationArgs.builder()
.template(BgpRedistributionRoutingProfileLocationTemplateArgs.builder()
.name(bgpTemplate.name())
.build())
.build())
.name("ipv4-redistribute-rip")
.ipv4(BgpRedistributionRoutingProfileIpv4Args.builder()
.unicast(BgpRedistributionRoutingProfileIpv4UnicastArgs.builder()
.rip(BgpRedistributionRoutingProfileIpv4UnicastRipArgs.builder()
.enable(true)
.metric(175.0)
.build())
.build())
.build())
.build());
// IPv4 Unicast - Redistribute Multiple Sources
var ipv4Multiple = new BgpRedistributionRoutingProfile("ipv4Multiple", BgpRedistributionRoutingProfileArgs.builder()
.location(BgpRedistributionRoutingProfileLocationArgs.builder()
.template(BgpRedistributionRoutingProfileLocationTemplateArgs.builder()
.name(bgpTemplate.name())
.build())
.build())
.name("ipv4-redistribute-multiple")
.ipv4(BgpRedistributionRoutingProfileIpv4Args.builder()
.unicast(BgpRedistributionRoutingProfileIpv4UnicastArgs.builder()
.connected(BgpRedistributionRoutingProfileIpv4UnicastConnectedArgs.builder()
.enable(true)
.metric(100.0)
.build())
.ospf(BgpRedistributionRoutingProfileIpv4UnicastOspfArgs.builder()
.enable(true)
.metric(200.0)
.build())
.static_(BgpRedistributionRoutingProfileIpv4UnicastStaticArgs.builder()
.enable(true)
.metric(150.0)
.build())
.build())
.build())
.build());
// IPv6 Unicast - Redistribute Connected Routes
var ipv6Connected = new BgpRedistributionRoutingProfile("ipv6Connected", BgpRedistributionRoutingProfileArgs.builder()
.location(BgpRedistributionRoutingProfileLocationArgs.builder()
.template(BgpRedistributionRoutingProfileLocationTemplateArgs.builder()
.name(bgpTemplate.name())
.build())
.build())
.name("ipv6-redistribute-connected")
.ipv6(BgpRedistributionRoutingProfileIpv6Args.builder()
.unicast(BgpRedistributionRoutingProfileIpv6UnicastArgs.builder()
.connected(BgpRedistributionRoutingProfileIpv6UnicastConnectedArgs.builder()
.enable(true)
.metric(100.0)
.build())
.build())
.build())
.build());
// IPv6 Unicast - Redistribute OSPFv3 Routes
var ipv6Ospfv3 = new BgpRedistributionRoutingProfile("ipv6Ospfv3", BgpRedistributionRoutingProfileArgs.builder()
.location(BgpRedistributionRoutingProfileLocationArgs.builder()
.template(BgpRedistributionRoutingProfileLocationTemplateArgs.builder()
.name(bgpTemplate.name())
.build())
.build())
.name("ipv6-redistribute-ospfv3")
.ipv6(BgpRedistributionRoutingProfileIpv6Args.builder()
.unicast(BgpRedistributionRoutingProfileIpv6UnicastArgs.builder()
.ospfv3(BgpRedistributionRoutingProfileIpv6UnicastOspfv3Args.builder()
.enable(true)
.metric(200.0)
.build())
.build())
.build())
.build());
// IPv6 Unicast - Redistribute Static Routes
var ipv6Static = new BgpRedistributionRoutingProfile("ipv6Static", BgpRedistributionRoutingProfileArgs.builder()
.location(BgpRedistributionRoutingProfileLocationArgs.builder()
.template(BgpRedistributionRoutingProfileLocationTemplateArgs.builder()
.name(bgpTemplate.name())
.build())
.build())
.name("ipv6-redistribute-static")
.ipv6(BgpRedistributionRoutingProfileIpv6Args.builder()
.unicast(BgpRedistributionRoutingProfileIpv6UnicastArgs.builder()
.static_(BgpRedistributionRoutingProfileIpv6UnicastStaticArgs.builder()
.enable(true)
.metric(150.0)
.build())
.build())
.build())
.build());
// IPv6 Unicast - Redistribute Multiple Sources
var ipv6Multiple = new BgpRedistributionRoutingProfile("ipv6Multiple", BgpRedistributionRoutingProfileArgs.builder()
.location(BgpRedistributionRoutingProfileLocationArgs.builder()
.template(BgpRedistributionRoutingProfileLocationTemplateArgs.builder()
.name(bgpTemplate.name())
.build())
.build())
.name("ipv6-redistribute-multiple")
.ipv6(BgpRedistributionRoutingProfileIpv6Args.builder()
.unicast(BgpRedistributionRoutingProfileIpv6UnicastArgs.builder()
.connected(BgpRedistributionRoutingProfileIpv6UnicastConnectedArgs.builder()
.enable(true)
.metric(100.0)
.build())
.ospfv3(BgpRedistributionRoutingProfileIpv6UnicastOspfv3Args.builder()
.enable(true)
.metric(200.0)
.build())
.static_(BgpRedistributionRoutingProfileIpv6UnicastStaticArgs.builder()
.enable(true)
.metric(150.0)
.build())
.build())
.build())
.build());
// Using template-stack location
var bgpStack = new TemplateStack("bgpStack", TemplateStackArgs.builder()
.location(TemplateStackLocationArgs.builder()
.panorama(TemplateStackLocationPanoramaArgs.builder()
.build())
.build())
.name("bgp-routing-stack")
.build());
var templateStackExample = new BgpRedistributionRoutingProfile("templateStackExample", BgpRedistributionRoutingProfileArgs.builder()
.location(BgpRedistributionRoutingProfileLocationArgs.builder()
.templateStack(BgpRedistributionRoutingProfileLocationTemplateStackArgs.builder()
.name(bgpStack.name())
.build())
.build())
.name("stack-redistribute-profile")
.ipv4(BgpRedistributionRoutingProfileIpv4Args.builder()
.unicast(BgpRedistributionRoutingProfileIpv4UnicastArgs.builder()
.connected(BgpRedistributionRoutingProfileIpv4UnicastConnectedArgs.builder()
.enable(true)
.metric(100.0)
.build())
.build())
.build())
.build());
}
}
resources:
# Create a template
bgpTemplate:
type: panos:Template
name: bgp_template
properties:
location:
panorama: {}
name: bgp-routing-template
# IPv4 Unicast - Redistribute Connected Routes
ipv4Connected:
type: panos:BgpRedistributionRoutingProfile
name: ipv4_connected
properties:
location:
template:
name: ${bgpTemplate.name}
name: ipv4-redistribute-connected
ipv4:
unicast:
connected:
enable: true
metric: 100
# IPv4 Unicast - Redistribute OSPF Routes
ipv4Ospf:
type: panos:BgpRedistributionRoutingProfile
name: ipv4_ospf
properties:
location:
template:
name: ${bgpTemplate.name}
name: ipv4-redistribute-ospf
ipv4:
unicast:
ospf:
enable: true
metric: 200
# IPv4 Unicast - Redistribute Static Routes
ipv4Static:
type: panos:BgpRedistributionRoutingProfile
name: ipv4_static
properties:
location:
template:
name: ${bgpTemplate.name}
name: ipv4-redistribute-static
ipv4:
unicast:
static:
enable: true
metric: 150
# IPv4 Unicast - Redistribute RIP Routes
ipv4Rip:
type: panos:BgpRedistributionRoutingProfile
name: ipv4_rip
properties:
location:
template:
name: ${bgpTemplate.name}
name: ipv4-redistribute-rip
ipv4:
unicast:
rip:
enable: true
metric: 175
# IPv4 Unicast - Redistribute Multiple Sources
ipv4Multiple:
type: panos:BgpRedistributionRoutingProfile
name: ipv4_multiple
properties:
location:
template:
name: ${bgpTemplate.name}
name: ipv4-redistribute-multiple
ipv4:
unicast:
connected:
enable: true
metric: 100
ospf:
enable: true
metric: 200
static:
enable: true
metric: 150
# IPv6 Unicast - Redistribute Connected Routes
ipv6Connected:
type: panos:BgpRedistributionRoutingProfile
name: ipv6_connected
properties:
location:
template:
name: ${bgpTemplate.name}
name: ipv6-redistribute-connected
ipv6:
unicast:
connected:
enable: true
metric: 100
# IPv6 Unicast - Redistribute OSPFv3 Routes
ipv6Ospfv3:
type: panos:BgpRedistributionRoutingProfile
name: ipv6_ospfv3
properties:
location:
template:
name: ${bgpTemplate.name}
name: ipv6-redistribute-ospfv3
ipv6:
unicast:
ospfv3:
enable: true
metric: 200
# IPv6 Unicast - Redistribute Static Routes
ipv6Static:
type: panos:BgpRedistributionRoutingProfile
name: ipv6_static
properties:
location:
template:
name: ${bgpTemplate.name}
name: ipv6-redistribute-static
ipv6:
unicast:
static:
enable: true
metric: 150
# IPv6 Unicast - Redistribute Multiple Sources
ipv6Multiple:
type: panos:BgpRedistributionRoutingProfile
name: ipv6_multiple
properties:
location:
template:
name: ${bgpTemplate.name}
name: ipv6-redistribute-multiple
ipv6:
unicast:
connected:
enable: true
metric: 100
ospfv3:
enable: true
metric: 200
static:
enable: true
metric: 150
# Using template-stack location
bgpStack:
type: panos:TemplateStack
name: bgp_stack
properties:
location:
panorama: {}
name: bgp-routing-stack
templateStackExample:
type: panos:BgpRedistributionRoutingProfile
name: template_stack_example
properties:
location:
templateStack:
name: ${bgpStack.name}
name: stack-redistribute-profile
ipv4:
unicast:
connected:
enable: true
metric: 100
Create BgpRedistributionRoutingProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BgpRedistributionRoutingProfile(name: string, args: BgpRedistributionRoutingProfileArgs, opts?: CustomResourceOptions);@overload
def BgpRedistributionRoutingProfile(resource_name: str,
args: BgpRedistributionRoutingProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BgpRedistributionRoutingProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[BgpRedistributionRoutingProfileLocationArgs] = None,
ipv4: Optional[BgpRedistributionRoutingProfileIpv4Args] = None,
ipv6: Optional[BgpRedistributionRoutingProfileIpv6Args] = None,
name: Optional[str] = None)func NewBgpRedistributionRoutingProfile(ctx *Context, name string, args BgpRedistributionRoutingProfileArgs, opts ...ResourceOption) (*BgpRedistributionRoutingProfile, error)public BgpRedistributionRoutingProfile(string name, BgpRedistributionRoutingProfileArgs args, CustomResourceOptions? opts = null)
public BgpRedistributionRoutingProfile(String name, BgpRedistributionRoutingProfileArgs args)
public BgpRedistributionRoutingProfile(String name, BgpRedistributionRoutingProfileArgs args, CustomResourceOptions options)
type: panos:BgpRedistributionRoutingProfile
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 BgpRedistributionRoutingProfileArgs
- 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 BgpRedistributionRoutingProfileArgs
- 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 BgpRedistributionRoutingProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BgpRedistributionRoutingProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BgpRedistributionRoutingProfileArgs
- 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 bgpRedistributionRoutingProfileResource = new Panos.BgpRedistributionRoutingProfile("bgpRedistributionRoutingProfileResource", new()
{
Location = new Panos.Inputs.BgpRedistributionRoutingProfileLocationArgs
{
Ngfw = new Panos.Inputs.BgpRedistributionRoutingProfileLocationNgfwArgs
{
NgfwDevice = "string",
},
Template = new Panos.Inputs.BgpRedistributionRoutingProfileLocationTemplateArgs
{
Name = "string",
NgfwDevice = "string",
PanoramaDevice = "string",
},
TemplateStack = new Panos.Inputs.BgpRedistributionRoutingProfileLocationTemplateStackArgs
{
Name = "string",
NgfwDevice = "string",
PanoramaDevice = "string",
},
},
Ipv4 = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4Args
{
Unicast = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastArgs
{
Connected = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastConnectedArgs
{
Enable = false,
Metric = 0,
RouteMap = "string",
},
Ospf = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastOspfArgs
{
Enable = false,
Metric = 0,
RouteMap = "string",
},
Rip = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastRipArgs
{
Enable = false,
Metric = 0,
RouteMap = "string",
},
Static = new Panos.Inputs.BgpRedistributionRoutingProfileIpv4UnicastStaticArgs
{
Enable = false,
Metric = 0,
RouteMap = "string",
},
},
},
Ipv6 = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6Args
{
Unicast = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6UnicastArgs
{
Connected = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6UnicastConnectedArgs
{
Enable = false,
Metric = 0,
RouteMap = "string",
},
Ospfv3 = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6UnicastOspfv3Args
{
Enable = false,
Metric = 0,
RouteMap = "string",
},
Static = new Panos.Inputs.BgpRedistributionRoutingProfileIpv6UnicastStaticArgs
{
Enable = false,
Metric = 0,
RouteMap = "string",
},
},
},
Name = "string",
});
example, err := panos.NewBgpRedistributionRoutingProfile(ctx, "bgpRedistributionRoutingProfileResource", &panos.BgpRedistributionRoutingProfileArgs{
Location: &panos.BgpRedistributionRoutingProfileLocationArgs{
Ngfw: &panos.BgpRedistributionRoutingProfileLocationNgfwArgs{
NgfwDevice: pulumi.String("string"),
},
Template: &panos.BgpRedistributionRoutingProfileLocationTemplateArgs{
Name: pulumi.String("string"),
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
TemplateStack: &panos.BgpRedistributionRoutingProfileLocationTemplateStackArgs{
Name: pulumi.String("string"),
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
},
Ipv4: &panos.BgpRedistributionRoutingProfileIpv4Args{
Unicast: &panos.BgpRedistributionRoutingProfileIpv4UnicastArgs{
Connected: &panos.BgpRedistributionRoutingProfileIpv4UnicastConnectedArgs{
Enable: pulumi.Bool(false),
Metric: pulumi.Float64(0),
RouteMap: pulumi.String("string"),
},
Ospf: &panos.BgpRedistributionRoutingProfileIpv4UnicastOspfArgs{
Enable: pulumi.Bool(false),
Metric: pulumi.Float64(0),
RouteMap: pulumi.String("string"),
},
Rip: &panos.BgpRedistributionRoutingProfileIpv4UnicastRipArgs{
Enable: pulumi.Bool(false),
Metric: pulumi.Float64(0),
RouteMap: pulumi.String("string"),
},
Static: &panos.BgpRedistributionRoutingProfileIpv4UnicastStaticArgs{
Enable: pulumi.Bool(false),
Metric: pulumi.Float64(0),
RouteMap: pulumi.String("string"),
},
},
},
Ipv6: &panos.BgpRedistributionRoutingProfileIpv6Args{
Unicast: &panos.BgpRedistributionRoutingProfileIpv6UnicastArgs{
Connected: &panos.BgpRedistributionRoutingProfileIpv6UnicastConnectedArgs{
Enable: pulumi.Bool(false),
Metric: pulumi.Float64(0),
RouteMap: pulumi.String("string"),
},
Ospfv3: &panos.BgpRedistributionRoutingProfileIpv6UnicastOspfv3Args{
Enable: pulumi.Bool(false),
Metric: pulumi.Float64(0),
RouteMap: pulumi.String("string"),
},
Static: &panos.BgpRedistributionRoutingProfileIpv6UnicastStaticArgs{
Enable: pulumi.Bool(false),
Metric: pulumi.Float64(0),
RouteMap: pulumi.String("string"),
},
},
},
Name: pulumi.String("string"),
})
var bgpRedistributionRoutingProfileResource = new BgpRedistributionRoutingProfile("bgpRedistributionRoutingProfileResource", BgpRedistributionRoutingProfileArgs.builder()
.location(BgpRedistributionRoutingProfileLocationArgs.builder()
.ngfw(BgpRedistributionRoutingProfileLocationNgfwArgs.builder()
.ngfwDevice("string")
.build())
.template(BgpRedistributionRoutingProfileLocationTemplateArgs.builder()
.name("string")
.ngfwDevice("string")
.panoramaDevice("string")
.build())
.templateStack(BgpRedistributionRoutingProfileLocationTemplateStackArgs.builder()
.name("string")
.ngfwDevice("string")
.panoramaDevice("string")
.build())
.build())
.ipv4(BgpRedistributionRoutingProfileIpv4Args.builder()
.unicast(BgpRedistributionRoutingProfileIpv4UnicastArgs.builder()
.connected(BgpRedistributionRoutingProfileIpv4UnicastConnectedArgs.builder()
.enable(false)
.metric(0.0)
.routeMap("string")
.build())
.ospf(BgpRedistributionRoutingProfileIpv4UnicastOspfArgs.builder()
.enable(false)
.metric(0.0)
.routeMap("string")
.build())
.rip(BgpRedistributionRoutingProfileIpv4UnicastRipArgs.builder()
.enable(false)
.metric(0.0)
.routeMap("string")
.build())
.static_(BgpRedistributionRoutingProfileIpv4UnicastStaticArgs.builder()
.enable(false)
.metric(0.0)
.routeMap("string")
.build())
.build())
.build())
.ipv6(BgpRedistributionRoutingProfileIpv6Args.builder()
.unicast(BgpRedistributionRoutingProfileIpv6UnicastArgs.builder()
.connected(BgpRedistributionRoutingProfileIpv6UnicastConnectedArgs.builder()
.enable(false)
.metric(0.0)
.routeMap("string")
.build())
.ospfv3(BgpRedistributionRoutingProfileIpv6UnicastOspfv3Args.builder()
.enable(false)
.metric(0.0)
.routeMap("string")
.build())
.static_(BgpRedistributionRoutingProfileIpv6UnicastStaticArgs.builder()
.enable(false)
.metric(0.0)
.routeMap("string")
.build())
.build())
.build())
.name("string")
.build());
bgp_redistribution_routing_profile_resource = panos.BgpRedistributionRoutingProfile("bgpRedistributionRoutingProfileResource",
location={
"ngfw": {
"ngfw_device": "string",
},
"template": {
"name": "string",
"ngfw_device": "string",
"panorama_device": "string",
},
"template_stack": {
"name": "string",
"ngfw_device": "string",
"panorama_device": "string",
},
},
ipv4={
"unicast": {
"connected": {
"enable": False,
"metric": 0,
"route_map": "string",
},
"ospf": {
"enable": False,
"metric": 0,
"route_map": "string",
},
"rip": {
"enable": False,
"metric": 0,
"route_map": "string",
},
"static": {
"enable": False,
"metric": 0,
"route_map": "string",
},
},
},
ipv6={
"unicast": {
"connected": {
"enable": False,
"metric": 0,
"route_map": "string",
},
"ospfv3": {
"enable": False,
"metric": 0,
"route_map": "string",
},
"static": {
"enable": False,
"metric": 0,
"route_map": "string",
},
},
},
name="string")
const bgpRedistributionRoutingProfileResource = new panos.BgpRedistributionRoutingProfile("bgpRedistributionRoutingProfileResource", {
location: {
ngfw: {
ngfwDevice: "string",
},
template: {
name: "string",
ngfwDevice: "string",
panoramaDevice: "string",
},
templateStack: {
name: "string",
ngfwDevice: "string",
panoramaDevice: "string",
},
},
ipv4: {
unicast: {
connected: {
enable: false,
metric: 0,
routeMap: "string",
},
ospf: {
enable: false,
metric: 0,
routeMap: "string",
},
rip: {
enable: false,
metric: 0,
routeMap: "string",
},
static: {
enable: false,
metric: 0,
routeMap: "string",
},
},
},
ipv6: {
unicast: {
connected: {
enable: false,
metric: 0,
routeMap: "string",
},
ospfv3: {
enable: false,
metric: 0,
routeMap: "string",
},
static: {
enable: false,
metric: 0,
routeMap: "string",
},
},
},
name: "string",
});
type: panos:BgpRedistributionRoutingProfile
properties:
ipv4:
unicast:
connected:
enable: false
metric: 0
routeMap: string
ospf:
enable: false
metric: 0
routeMap: string
rip:
enable: false
metric: 0
routeMap: string
static:
enable: false
metric: 0
routeMap: string
ipv6:
unicast:
connected:
enable: false
metric: 0
routeMap: string
ospfv3:
enable: false
metric: 0
routeMap: string
static:
enable: false
metric: 0
routeMap: string
location:
ngfw:
ngfwDevice: string
template:
name: string
ngfwDevice: string
panoramaDevice: string
templateStack:
name: string
ngfwDevice: string
panoramaDevice: string
name: string
BgpRedistributionRoutingProfile 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 BgpRedistributionRoutingProfile resource accepts the following input properties:
- Location
Bgp
Redistribution Routing Profile Location - The location of this object.
- Ipv4
Bgp
Redistribution Routing Profile Ipv4 - Ipv6
Bgp
Redistribution Routing Profile Ipv6 - Name string
- Location
Bgp
Redistribution Routing Profile Location Args - The location of this object.
- Ipv4
Bgp
Redistribution Routing Profile Ipv4Args - Ipv6
Bgp
Redistribution Routing Profile Ipv6Args - Name string
- location
Bgp
Redistribution Routing Profile Location - The location of this object.
- ipv4
Bgp
Redistribution Routing Profile Ipv4 - ipv6
Bgp
Redistribution Routing Profile Ipv6 - name String
- location
Bgp
Redistribution Routing Profile Location - The location of this object.
- ipv4
Bgp
Redistribution Routing Profile Ipv4 - ipv6
Bgp
Redistribution Routing Profile Ipv6 - name string
- location Property Map
- The location of this object.
- ipv4 Property Map
- ipv6 Property Map
- name String
Outputs
All input properties are implicitly available as output properties. Additionally, the BgpRedistributionRoutingProfile 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 BgpRedistributionRoutingProfile Resource
Get an existing BgpRedistributionRoutingProfile 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?: BgpRedistributionRoutingProfileState, opts?: CustomResourceOptions): BgpRedistributionRoutingProfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ipv4: Optional[BgpRedistributionRoutingProfileIpv4Args] = None,
ipv6: Optional[BgpRedistributionRoutingProfileIpv6Args] = None,
location: Optional[BgpRedistributionRoutingProfileLocationArgs] = None,
name: Optional[str] = None) -> BgpRedistributionRoutingProfilefunc GetBgpRedistributionRoutingProfile(ctx *Context, name string, id IDInput, state *BgpRedistributionRoutingProfileState, opts ...ResourceOption) (*BgpRedistributionRoutingProfile, error)public static BgpRedistributionRoutingProfile Get(string name, Input<string> id, BgpRedistributionRoutingProfileState? state, CustomResourceOptions? opts = null)public static BgpRedistributionRoutingProfile get(String name, Output<String> id, BgpRedistributionRoutingProfileState state, CustomResourceOptions options)resources: _: type: panos:BgpRedistributionRoutingProfile 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.
- Ipv4
Bgp
Redistribution Routing Profile Ipv4 - Ipv6
Bgp
Redistribution Routing Profile Ipv6 - Location
Bgp
Redistribution Routing Profile Location - The location of this object.
- Name string
- Ipv4
Bgp
Redistribution Routing Profile Ipv4Args - Ipv6
Bgp
Redistribution Routing Profile Ipv6Args - Location
Bgp
Redistribution Routing Profile Location Args - The location of this object.
- Name string
- ipv4
Bgp
Redistribution Routing Profile Ipv4 - ipv6
Bgp
Redistribution Routing Profile Ipv6 - location
Bgp
Redistribution Routing Profile Location - The location of this object.
- name String
- ipv4
Bgp
Redistribution Routing Profile Ipv4 - ipv6
Bgp
Redistribution Routing Profile Ipv6 - location
Bgp
Redistribution Routing Profile Location - The location of this object.
- name string
- ipv4 Property Map
- ipv6 Property Map
- location Property Map
- The location of this object.
- name String
Supporting Types
BgpRedistributionRoutingProfileIpv4, BgpRedistributionRoutingProfileIpv4Args
BgpRedistributionRoutingProfileIpv4Unicast, BgpRedistributionRoutingProfileIpv4UnicastArgs
BgpRedistributionRoutingProfileIpv4UnicastConnected, BgpRedistributionRoutingProfileIpv4UnicastConnectedArgs
BgpRedistributionRoutingProfileIpv4UnicastOspf, BgpRedistributionRoutingProfileIpv4UnicastOspfArgs
BgpRedistributionRoutingProfileIpv4UnicastRip, BgpRedistributionRoutingProfileIpv4UnicastRipArgs
BgpRedistributionRoutingProfileIpv4UnicastStatic, BgpRedistributionRoutingProfileIpv4UnicastStaticArgs
BgpRedistributionRoutingProfileIpv6, BgpRedistributionRoutingProfileIpv6Args
BgpRedistributionRoutingProfileIpv6Unicast, BgpRedistributionRoutingProfileIpv6UnicastArgs
BgpRedistributionRoutingProfileIpv6UnicastConnected, BgpRedistributionRoutingProfileIpv6UnicastConnectedArgs
BgpRedistributionRoutingProfileIpv6UnicastOspfv3, BgpRedistributionRoutingProfileIpv6UnicastOspfv3Args
BgpRedistributionRoutingProfileIpv6UnicastStatic, BgpRedistributionRoutingProfileIpv6UnicastStaticArgs
BgpRedistributionRoutingProfileLocation, BgpRedistributionRoutingProfileLocationArgs
- Ngfw
Bgp
Redistribution Routing Profile Location Ngfw - Located in a specific NGFW device
- Template
Bgp
Redistribution Routing Profile Location Template - Located in a specific template
- Template
Stack BgpRedistribution Routing Profile Location Template Stack - Located in a specific template stack
- Ngfw
Bgp
Redistribution Routing Profile Location Ngfw - Located in a specific NGFW device
- Template
Bgp
Redistribution Routing Profile Location Template - Located in a specific template
- Template
Stack BgpRedistribution Routing Profile Location Template Stack - Located in a specific template stack
- ngfw
Bgp
Redistribution Routing Profile Location Ngfw - Located in a specific NGFW device
- template
Bgp
Redistribution Routing Profile Location Template - Located in a specific template
- template
Stack BgpRedistribution Routing Profile Location Template Stack - Located in a specific template stack
- ngfw
Bgp
Redistribution Routing Profile Location Ngfw - Located in a specific NGFW device
- template
Bgp
Redistribution Routing Profile Location Template - Located in a specific template
- template
Stack BgpRedistribution Routing Profile Location Template Stack - Located in a specific template stack
- ngfw
Bgp
Redistribution Routing Profile Location Ngfw - Located in a specific NGFW device
- template
Bgp
Redistribution Routing Profile Location Template - Located in a specific template
- template_
stack BgpRedistribution 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
BgpRedistributionRoutingProfileLocationNgfw, BgpRedistributionRoutingProfileLocationNgfwArgs
- 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
BgpRedistributionRoutingProfileLocationTemplate, BgpRedistributionRoutingProfileLocationTemplateArgs
- 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
BgpRedistributionRoutingProfileLocationTemplateStack, BgpRedistributionRoutingProfileLocationTemplateStackArgs
- 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.
