1. Packages
  2. Packages
  3. Panos Provider
  4. API Docs
  5. OspfAuthRoutingProfile
Viewing docs for panos 2.0.11
published on Tuesday, Apr 28, 2026 by paloaltonetworks
Viewing docs for panos 2.0.11
published on Tuesday, Apr 28, 2026 by paloaltonetworks

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as panos from "@pulumi/panos";
    
    // Create a template
    const ospfSimpleTemplate = new panos.Template("ospf_simple_template", {
        location: {
            panorama: {},
        },
        name: "ospf-simple-template",
    });
    // OSPF Authentication Profile using simple password
    const simplePassword = new panos.OspfAuthRoutingProfile("simple_password", {
        location: {
            template: {
                name: ospfSimpleTemplate.name,
            },
        },
        name: "ospf-simple-auth",
        password: "ospf-pass",
    });
    
    import pulumi
    import pulumi_panos as panos
    
    # Create a template
    ospf_simple_template = panos.Template("ospf_simple_template",
        location={
            "panorama": {},
        },
        name="ospf-simple-template")
    # OSPF Authentication Profile using simple password
    simple_password = panos.OspfAuthRoutingProfile("simple_password",
        location={
            "template": {
                "name": ospf_simple_template.name,
            },
        },
        name="ospf-simple-auth",
        password="ospf-pass")
    
    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
    		ospfSimpleTemplate, err := panos.NewTemplate(ctx, "ospf_simple_template", &panos.TemplateArgs{
    			Location: &panos.TemplateLocationArgs{
    				Panorama: &panos.TemplateLocationPanoramaArgs{},
    			},
    			Name: pulumi.String("ospf-simple-template"),
    		})
    		if err != nil {
    			return err
    		}
    		// OSPF Authentication Profile using simple password
    		_, err = panos.NewOspfAuthRoutingProfile(ctx, "simple_password", &panos.OspfAuthRoutingProfileArgs{
    			Location: &panos.OspfAuthRoutingProfileLocationArgs{
    				Template: &panos.OspfAuthRoutingProfileLocationTemplateArgs{
    					Name: ospfSimpleTemplate.Name,
    				},
    			},
    			Name:     pulumi.String("ospf-simple-auth"),
    			Password: pulumi.String("ospf-pass"),
    		})
    		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 ospfSimpleTemplate = new Panos.Template("ospf_simple_template", new()
        {
            Location = new Panos.Inputs.TemplateLocationArgs
            {
                Panorama = null,
            },
            Name = "ospf-simple-template",
        });
    
        // OSPF Authentication Profile using simple password
        var simplePassword = new Panos.OspfAuthRoutingProfile("simple_password", new()
        {
            Location = new Panos.Inputs.OspfAuthRoutingProfileLocationArgs
            {
                Template = new Panos.Inputs.OspfAuthRoutingProfileLocationTemplateArgs
                {
                    Name = ospfSimpleTemplate.Name,
                },
            },
            Name = "ospf-simple-auth",
            Password = "ospf-pass",
        });
    
    });
    
    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.OspfAuthRoutingProfile;
    import com.pulumi.panos.OspfAuthRoutingProfileArgs;
    import com.pulumi.panos.inputs.OspfAuthRoutingProfileLocationArgs;
    import com.pulumi.panos.inputs.OspfAuthRoutingProfileLocationTemplateArgs;
    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 ospfSimpleTemplate = new Template("ospfSimpleTemplate", TemplateArgs.builder()
                .location(TemplateLocationArgs.builder()
                    .panorama(TemplateLocationPanoramaArgs.builder()
                        .build())
                    .build())
                .name("ospf-simple-template")
                .build());
    
            // OSPF Authentication Profile using simple password
            var simplePassword = new OspfAuthRoutingProfile("simplePassword", OspfAuthRoutingProfileArgs.builder()
                .location(OspfAuthRoutingProfileLocationArgs.builder()
                    .template(OspfAuthRoutingProfileLocationTemplateArgs.builder()
                        .name(ospfSimpleTemplate.name())
                        .build())
                    .build())
                .name("ospf-simple-auth")
                .password("ospf-pass")
                .build());
    
        }
    }
    
    resources:
      # Create a template
      ospfSimpleTemplate:
        type: panos:Template
        name: ospf_simple_template
        properties:
          location:
            panorama: {}
          name: ospf-simple-template
      # OSPF Authentication Profile using simple password
      simplePassword:
        type: panos:OspfAuthRoutingProfile
        name: simple_password
        properties:
          location:
            template:
              name: ${ospfSimpleTemplate.name}
          name: ospf-simple-auth
          password: ospf-pass
    

    Create OspfAuthRoutingProfile Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OspfAuthRoutingProfile(name: string, args: OspfAuthRoutingProfileArgs, opts?: CustomResourceOptions);
    @overload
    def OspfAuthRoutingProfile(resource_name: str,
                               args: OspfAuthRoutingProfileArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def OspfAuthRoutingProfile(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               location: Optional[OspfAuthRoutingProfileLocationArgs] = None,
                               md5s: Optional[Sequence[OspfAuthRoutingProfileMd5Args]] = None,
                               name: Optional[str] = None,
                               password: Optional[str] = None)
    func NewOspfAuthRoutingProfile(ctx *Context, name string, args OspfAuthRoutingProfileArgs, opts ...ResourceOption) (*OspfAuthRoutingProfile, error)
    public OspfAuthRoutingProfile(string name, OspfAuthRoutingProfileArgs args, CustomResourceOptions? opts = null)
    public OspfAuthRoutingProfile(String name, OspfAuthRoutingProfileArgs args)
    public OspfAuthRoutingProfile(String name, OspfAuthRoutingProfileArgs args, CustomResourceOptions options)
    
    type: panos:OspfAuthRoutingProfile
    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 OspfAuthRoutingProfileArgs
    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 OspfAuthRoutingProfileArgs
    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 OspfAuthRoutingProfileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OspfAuthRoutingProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OspfAuthRoutingProfileArgs
    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 ospfAuthRoutingProfileResource = new Panos.OspfAuthRoutingProfile("ospfAuthRoutingProfileResource", new()
    {
        Location = new Panos.Inputs.OspfAuthRoutingProfileLocationArgs
        {
            Ngfw = new Panos.Inputs.OspfAuthRoutingProfileLocationNgfwArgs
            {
                NgfwDevice = "string",
            },
            Template = new Panos.Inputs.OspfAuthRoutingProfileLocationTemplateArgs
            {
                Name = "string",
                NgfwDevice = "string",
                PanoramaDevice = "string",
            },
            TemplateStack = new Panos.Inputs.OspfAuthRoutingProfileLocationTemplateStackArgs
            {
                Name = "string",
                NgfwDevice = "string",
                PanoramaDevice = "string",
            },
        },
        Md5s = new[]
        {
            new Panos.Inputs.OspfAuthRoutingProfileMd5Args
            {
                Name = "string",
                Key = "string",
                Preferred = false,
            },
        },
        Name = "string",
        Password = "string",
    });
    
    example, err := panos.NewOspfAuthRoutingProfile(ctx, "ospfAuthRoutingProfileResource", &panos.OspfAuthRoutingProfileArgs{
    	Location: &panos.OspfAuthRoutingProfileLocationArgs{
    		Ngfw: &panos.OspfAuthRoutingProfileLocationNgfwArgs{
    			NgfwDevice: pulumi.String("string"),
    		},
    		Template: &panos.OspfAuthRoutingProfileLocationTemplateArgs{
    			Name:           pulumi.String("string"),
    			NgfwDevice:     pulumi.String("string"),
    			PanoramaDevice: pulumi.String("string"),
    		},
    		TemplateStack: &panos.OspfAuthRoutingProfileLocationTemplateStackArgs{
    			Name:           pulumi.String("string"),
    			NgfwDevice:     pulumi.String("string"),
    			PanoramaDevice: pulumi.String("string"),
    		},
    	},
    	Md5s: panos.OspfAuthRoutingProfileMd5Array{
    		&panos.OspfAuthRoutingProfileMd5Args{
    			Name:      pulumi.String("string"),
    			Key:       pulumi.String("string"),
    			Preferred: pulumi.Bool(false),
    		},
    	},
    	Name:     pulumi.String("string"),
    	Password: pulumi.String("string"),
    })
    
    var ospfAuthRoutingProfileResource = new OspfAuthRoutingProfile("ospfAuthRoutingProfileResource", OspfAuthRoutingProfileArgs.builder()
        .location(OspfAuthRoutingProfileLocationArgs.builder()
            .ngfw(OspfAuthRoutingProfileLocationNgfwArgs.builder()
                .ngfwDevice("string")
                .build())
            .template(OspfAuthRoutingProfileLocationTemplateArgs.builder()
                .name("string")
                .ngfwDevice("string")
                .panoramaDevice("string")
                .build())
            .templateStack(OspfAuthRoutingProfileLocationTemplateStackArgs.builder()
                .name("string")
                .ngfwDevice("string")
                .panoramaDevice("string")
                .build())
            .build())
        .md5s(OspfAuthRoutingProfileMd5Args.builder()
            .name("string")
            .key("string")
            .preferred(false)
            .build())
        .name("string")
        .password("string")
        .build());
    
    ospf_auth_routing_profile_resource = panos.OspfAuthRoutingProfile("ospfAuthRoutingProfileResource",
        location={
            "ngfw": {
                "ngfw_device": "string",
            },
            "template": {
                "name": "string",
                "ngfw_device": "string",
                "panorama_device": "string",
            },
            "template_stack": {
                "name": "string",
                "ngfw_device": "string",
                "panorama_device": "string",
            },
        },
        md5s=[{
            "name": "string",
            "key": "string",
            "preferred": False,
        }],
        name="string",
        password="string")
    
    const ospfAuthRoutingProfileResource = new panos.OspfAuthRoutingProfile("ospfAuthRoutingProfileResource", {
        location: {
            ngfw: {
                ngfwDevice: "string",
            },
            template: {
                name: "string",
                ngfwDevice: "string",
                panoramaDevice: "string",
            },
            templateStack: {
                name: "string",
                ngfwDevice: "string",
                panoramaDevice: "string",
            },
        },
        md5s: [{
            name: "string",
            key: "string",
            preferred: false,
        }],
        name: "string",
        password: "string",
    });
    
    type: panos:OspfAuthRoutingProfile
    properties:
        location:
            ngfw:
                ngfwDevice: string
            template:
                name: string
                ngfwDevice: string
                panoramaDevice: string
            templateStack:
                name: string
                ngfwDevice: string
                panoramaDevice: string
        md5s:
            - key: string
              name: string
              preferred: false
        name: string
        password: string
    

    OspfAuthRoutingProfile 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 OspfAuthRoutingProfile resource accepts the following input properties:

    Location OspfAuthRoutingProfileLocation
    The location of this object.
    Md5s List<OspfAuthRoutingProfileMd5>
    Name string
    Password string
    Simple password authentication
    Location OspfAuthRoutingProfileLocationArgs
    The location of this object.
    Md5s []OspfAuthRoutingProfileMd5Args
    Name string
    Password string
    Simple password authentication
    location OspfAuthRoutingProfileLocation
    The location of this object.
    md5s List<OspfAuthRoutingProfileMd5>
    name String
    password String
    Simple password authentication
    location OspfAuthRoutingProfileLocation
    The location of this object.
    md5s OspfAuthRoutingProfileMd5[]
    name string
    password string
    Simple password authentication
    location OspfAuthRoutingProfileLocationArgs
    The location of this object.
    md5s Sequence[OspfAuthRoutingProfileMd5Args]
    name str
    password str
    Simple password authentication
    location Property Map
    The location of this object.
    md5s List<Property Map>
    name String
    password String
    Simple password authentication

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OspfAuthRoutingProfile 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 OspfAuthRoutingProfile Resource

    Get an existing OspfAuthRoutingProfile 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?: OspfAuthRoutingProfileState, opts?: CustomResourceOptions): OspfAuthRoutingProfile
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            location: Optional[OspfAuthRoutingProfileLocationArgs] = None,
            md5s: Optional[Sequence[OspfAuthRoutingProfileMd5Args]] = None,
            name: Optional[str] = None,
            password: Optional[str] = None) -> OspfAuthRoutingProfile
    func GetOspfAuthRoutingProfile(ctx *Context, name string, id IDInput, state *OspfAuthRoutingProfileState, opts ...ResourceOption) (*OspfAuthRoutingProfile, error)
    public static OspfAuthRoutingProfile Get(string name, Input<string> id, OspfAuthRoutingProfileState? state, CustomResourceOptions? opts = null)
    public static OspfAuthRoutingProfile get(String name, Output<String> id, OspfAuthRoutingProfileState state, CustomResourceOptions options)
    resources:  _:    type: panos:OspfAuthRoutingProfile    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.
    The following state arguments are supported:
    Location OspfAuthRoutingProfileLocation
    The location of this object.
    Md5s List<OspfAuthRoutingProfileMd5>
    Name string
    Password string
    Simple password authentication
    Location OspfAuthRoutingProfileLocationArgs
    The location of this object.
    Md5s []OspfAuthRoutingProfileMd5Args
    Name string
    Password string
    Simple password authentication
    location OspfAuthRoutingProfileLocation
    The location of this object.
    md5s List<OspfAuthRoutingProfileMd5>
    name String
    password String
    Simple password authentication
    location OspfAuthRoutingProfileLocation
    The location of this object.
    md5s OspfAuthRoutingProfileMd5[]
    name string
    password string
    Simple password authentication
    location OspfAuthRoutingProfileLocationArgs
    The location of this object.
    md5s Sequence[OspfAuthRoutingProfileMd5Args]
    name str
    password str
    Simple password authentication
    location Property Map
    The location of this object.
    md5s List<Property Map>
    name String
    password String
    Simple password authentication

    Supporting Types

    OspfAuthRoutingProfileLocation, OspfAuthRoutingProfileLocationArgs

    Ngfw OspfAuthRoutingProfileLocationNgfw
    Located in a specific NGFW device
    Template OspfAuthRoutingProfileLocationTemplate
    Located in a specific template
    TemplateStack OspfAuthRoutingProfileLocationTemplateStack
    Located in a specific template stack
    Ngfw OspfAuthRoutingProfileLocationNgfw
    Located in a specific NGFW device
    Template OspfAuthRoutingProfileLocationTemplate
    Located in a specific template
    TemplateStack OspfAuthRoutingProfileLocationTemplateStack
    Located in a specific template stack
    ngfw OspfAuthRoutingProfileLocationNgfw
    Located in a specific NGFW device
    template OspfAuthRoutingProfileLocationTemplate
    Located in a specific template
    templateStack OspfAuthRoutingProfileLocationTemplateStack
    Located in a specific template stack
    ngfw OspfAuthRoutingProfileLocationNgfw
    Located in a specific NGFW device
    template OspfAuthRoutingProfileLocationTemplate
    Located in a specific template
    templateStack OspfAuthRoutingProfileLocationTemplateStack
    Located in a specific template stack
    ngfw OspfAuthRoutingProfileLocationNgfw
    Located in a specific NGFW device
    template OspfAuthRoutingProfileLocationTemplate
    Located in a specific template
    template_stack OspfAuthRoutingProfileLocationTemplateStack
    Located in a specific template stack
    ngfw Property Map
    Located in a specific NGFW device
    template Property Map
    Located in a specific template
    templateStack Property Map
    Located in a specific template stack

    OspfAuthRoutingProfileLocationNgfw, OspfAuthRoutingProfileLocationNgfwArgs

    NgfwDevice string
    The NGFW device
    NgfwDevice string
    The NGFW device
    ngfwDevice String
    The NGFW device
    ngfwDevice string
    The NGFW device
    ngfw_device str
    The NGFW device
    ngfwDevice String
    The NGFW device

    OspfAuthRoutingProfileLocationTemplate, OspfAuthRoutingProfileLocationTemplateArgs

    Name string
    Specific Panorama template
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    Name string
    Specific Panorama template
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    name String
    Specific Panorama template
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device
    name string
    Specific Panorama template
    ngfwDevice string
    The NGFW device
    panoramaDevice 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
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device

    OspfAuthRoutingProfileLocationTemplateStack, OspfAuthRoutingProfileLocationTemplateStackArgs

    Name string
    Specific Panorama template stack
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    Name string
    Specific Panorama template stack
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    name String
    Specific Panorama template stack
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device
    name string
    Specific Panorama template stack
    ngfwDevice string
    The NGFW device
    panoramaDevice 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
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device

    OspfAuthRoutingProfileMd5, OspfAuthRoutingProfileMd5Args

    Name string
    Key string
    key for the authentication
    Preferred bool
    use this key when sending packet
    Name string
    Key string
    key for the authentication
    Preferred bool
    use this key when sending packet
    name String
    key String
    key for the authentication
    preferred Boolean
    use this key when sending packet
    name string
    key string
    key for the authentication
    preferred boolean
    use this key when sending packet
    name str
    key str
    key for the authentication
    preferred bool
    use this key when sending packet
    name String
    key String
    key for the authentication
    preferred Boolean
    use this key when sending packet

    Import

    #!/bin/bash

    An OSPF authentication routing profile can be imported by providing the following base64 encoded object as the ID

    Import from an NGFW device

    {

    location = {

    ngfw = {
    
      ngfw_device = "localhost.localdomain"
    
    }
    

    }

    name = “ospf-simple-password”

    }

    $ pulumi import panos:index/ospfAuthRoutingProfile:OspfAuthRoutingProfile example $(echo '{"location":{"ngfw":{"ngfw_device":"localhost.localdomain"}},"name":"ospf-simple-password"}' | base64)
    

    Import from a Panorama template

    {

    location = {

    template = {
    
      name            = "ospf-routing-template"
    
      panorama_device = "localhost.localdomain"
    
      ngfw_device     = "localhost.localdomain"
    
    }
    

    }

    name = “ospf-md5-auth”

    }

    $ pulumi import panos:index/ospfAuthRoutingProfile:OspfAuthRoutingProfile example $(echo '{"location":{"template":{"name":"ospf-routing-template","panorama_device":"localhost.localdomain","ngfw_device":"localhost.localdomain"}},"name":"ospf-md5-auth"}' | base64)
    

    Import from a Panorama template stack

    {

    location = {

    template_stack = {
    
      name            = "ospf-routing-stack"
    
      panorama_device = "localhost.localdomain"
    
      ngfw_device     = "localhost.localdomain"
    
    }
    

    }

    name = “ospf-md5-auth”

    }

    $ pulumi import panos:index/ospfAuthRoutingProfile:OspfAuthRoutingProfile example $(echo '{"location":{"template_stack":{"name":"ospf-routing-stack","panorama_device":"localhost.localdomain","ngfw_device":"localhost.localdomain"}},"name":"ospf-md5-auth"}' | base64)
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    panos paloaltonetworks/terraform-provider-panos
    License
    Notes
    This Pulumi package is based on the panos Terraform Provider.
    Viewing docs for panos 2.0.11
    published on Tuesday, Apr 28, 2026 by paloaltonetworks
      Try Pulumi Cloud free. Your team will thank you.