1. Packages
  2. Panos Provider
  3. API Docs
  4. AuthenticationPolicy
Viewing docs for panos 2.0.10
published on Thursday, Apr 9, 2026 by paloaltonetworks
Viewing docs for panos 2.0.10
published on Thursday, Apr 9, 2026 by paloaltonetworks

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as panos from "@pulumi/panos";
    
    const exampleDeviceGroup = new panos.DeviceGroup("example", {
        location: {
            panorama: {},
        },
        name: "example-device-group",
    });
    // Basic authentication policy rule in device group
    const example = new panos.AuthenticationPolicy("example", {
        location: {
            deviceGroup: {
                name: exampleDeviceGroup.name,
            },
        },
        rules: [{
            name: "require-auth-web-access",
            sourceZones: ["trust"],
            sourceAddresses: ["any"],
            destinationZones: ["untrust"],
            destinationAddresses: ["any"],
            services: [
                "service-http",
                "service-https",
            ],
            authenticationEnforcement: "auth-profile-captive-portal",
            timeout: 120,
            logAuthenticationTimeout: true,
        }],
    });
    
    import pulumi
    import pulumi_panos as panos
    
    example_device_group = panos.DeviceGroup("example",
        location={
            "panorama": {},
        },
        name="example-device-group")
    # Basic authentication policy rule in device group
    example = panos.AuthenticationPolicy("example",
        location={
            "device_group": {
                "name": example_device_group.name,
            },
        },
        rules=[{
            "name": "require-auth-web-access",
            "source_zones": ["trust"],
            "source_addresses": ["any"],
            "destination_zones": ["untrust"],
            "destination_addresses": ["any"],
            "services": [
                "service-http",
                "service-https",
            ],
            "authentication_enforcement": "auth-profile-captive-portal",
            "timeout": 120,
            "log_authentication_timeout": True,
        }])
    
    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 {
    		exampleDeviceGroup, err := panos.NewDeviceGroup(ctx, "example", &panos.DeviceGroupArgs{
    			Location: &panos.DeviceGroupLocationArgs{
    				Panorama: &panos.DeviceGroupLocationPanoramaArgs{},
    			},
    			Name: pulumi.String("example-device-group"),
    		})
    		if err != nil {
    			return err
    		}
    		// Basic authentication policy rule in device group
    		_, err = panos.NewAuthenticationPolicy(ctx, "example", &panos.AuthenticationPolicyArgs{
    			Location: &panos.AuthenticationPolicyLocationArgs{
    				DeviceGroup: &panos.AuthenticationPolicyLocationDeviceGroupArgs{
    					Name: exampleDeviceGroup.Name,
    				},
    			},
    			Rules: panos.AuthenticationPolicyRuleArray{
    				&panos.AuthenticationPolicyRuleArgs{
    					Name: pulumi.String("require-auth-web-access"),
    					SourceZones: pulumi.StringArray{
    						pulumi.String("trust"),
    					},
    					SourceAddresses: pulumi.StringArray{
    						pulumi.String("any"),
    					},
    					DestinationZones: pulumi.StringArray{
    						pulumi.String("untrust"),
    					},
    					DestinationAddresses: pulumi.StringArray{
    						pulumi.String("any"),
    					},
    					Services: pulumi.StringArray{
    						pulumi.String("service-http"),
    						pulumi.String("service-https"),
    					},
    					AuthenticationEnforcement: pulumi.String("auth-profile-captive-portal"),
    					Timeout:                   pulumi.Float64(120),
    					LogAuthenticationTimeout:  pulumi.Bool(true),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Panos = Pulumi.Panos;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleDeviceGroup = new Panos.DeviceGroup("example", new()
        {
            Location = new Panos.Inputs.DeviceGroupLocationArgs
            {
                Panorama = null,
            },
            Name = "example-device-group",
        });
    
        // Basic authentication policy rule in device group
        var example = new Panos.AuthenticationPolicy("example", new()
        {
            Location = new Panos.Inputs.AuthenticationPolicyLocationArgs
            {
                DeviceGroup = new Panos.Inputs.AuthenticationPolicyLocationDeviceGroupArgs
                {
                    Name = exampleDeviceGroup.Name,
                },
            },
            Rules = new[]
            {
                new Panos.Inputs.AuthenticationPolicyRuleArgs
                {
                    Name = "require-auth-web-access",
                    SourceZones = new[]
                    {
                        "trust",
                    },
                    SourceAddresses = new[]
                    {
                        "any",
                    },
                    DestinationZones = new[]
                    {
                        "untrust",
                    },
                    DestinationAddresses = new[]
                    {
                        "any",
                    },
                    Services = new[]
                    {
                        "service-http",
                        "service-https",
                    },
                    AuthenticationEnforcement = "auth-profile-captive-portal",
                    Timeout = 120,
                    LogAuthenticationTimeout = true,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.panos.DeviceGroup;
    import com.pulumi.panos.DeviceGroupArgs;
    import com.pulumi.panos.inputs.DeviceGroupLocationArgs;
    import com.pulumi.panos.inputs.DeviceGroupLocationPanoramaArgs;
    import com.pulumi.panos.AuthenticationPolicy;
    import com.pulumi.panos.AuthenticationPolicyArgs;
    import com.pulumi.panos.inputs.AuthenticationPolicyLocationArgs;
    import com.pulumi.panos.inputs.AuthenticationPolicyLocationDeviceGroupArgs;
    import com.pulumi.panos.inputs.AuthenticationPolicyRuleArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var exampleDeviceGroup = new DeviceGroup("exampleDeviceGroup", DeviceGroupArgs.builder()
                .location(DeviceGroupLocationArgs.builder()
                    .panorama(DeviceGroupLocationPanoramaArgs.builder()
                        .build())
                    .build())
                .name("example-device-group")
                .build());
    
            // Basic authentication policy rule in device group
            var example = new AuthenticationPolicy("example", AuthenticationPolicyArgs.builder()
                .location(AuthenticationPolicyLocationArgs.builder()
                    .deviceGroup(AuthenticationPolicyLocationDeviceGroupArgs.builder()
                        .name(exampleDeviceGroup.name())
                        .build())
                    .build())
                .rules(AuthenticationPolicyRuleArgs.builder()
                    .name("require-auth-web-access")
                    .sourceZones("trust")
                    .sourceAddresses("any")
                    .destinationZones("untrust")
                    .destinationAddresses("any")
                    .services(                
                        "service-http",
                        "service-https")
                    .authenticationEnforcement("auth-profile-captive-portal")
                    .timeout(120.0)
                    .logAuthenticationTimeout(true)
                    .build())
                .build());
    
        }
    }
    
    resources:
      # Basic authentication policy rule in device group
      example:
        type: panos:AuthenticationPolicy
        properties:
          location:
            deviceGroup:
              name: ${exampleDeviceGroup.name}
          rules:
            - name: require-auth-web-access
              sourceZones:
                - trust
              sourceAddresses:
                - any
              destinationZones:
                - untrust
              destinationAddresses:
                - any
              services:
                - service-http
                - service-https
              authenticationEnforcement: auth-profile-captive-portal
              timeout: 120
              logAuthenticationTimeout: true
      exampleDeviceGroup:
        type: panos:DeviceGroup
        name: example
        properties:
          location:
            panorama: {}
          name: example-device-group
    

    Create AuthenticationPolicy Resource

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

    Constructor syntax

    new AuthenticationPolicy(name: string, args: AuthenticationPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def AuthenticationPolicy(resource_name: str,
                             args: AuthenticationPolicyArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def AuthenticationPolicy(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             location: Optional[AuthenticationPolicyLocationArgs] = None,
                             rules: Optional[Sequence[AuthenticationPolicyRuleArgs]] = None)
    func NewAuthenticationPolicy(ctx *Context, name string, args AuthenticationPolicyArgs, opts ...ResourceOption) (*AuthenticationPolicy, error)
    public AuthenticationPolicy(string name, AuthenticationPolicyArgs args, CustomResourceOptions? opts = null)
    public AuthenticationPolicy(String name, AuthenticationPolicyArgs args)
    public AuthenticationPolicy(String name, AuthenticationPolicyArgs args, CustomResourceOptions options)
    
    type: panos:AuthenticationPolicy
    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 AuthenticationPolicyArgs
    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 AuthenticationPolicyArgs
    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 AuthenticationPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AuthenticationPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AuthenticationPolicyArgs
    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 authenticationPolicyResource = new Panos.Index.AuthenticationPolicy("authenticationPolicyResource", new()
    {
        Location = new Panos.Inputs.AuthenticationPolicyLocationArgs
        {
            DeviceGroup = new Panos.Inputs.AuthenticationPolicyLocationDeviceGroupArgs
            {
                Name = "string",
                PanoramaDevice = "string",
                Rulebase = "string",
            },
            Shared = new Panos.Inputs.AuthenticationPolicyLocationSharedArgs
            {
                Rulebase = "string",
            },
            Vsys = new Panos.Inputs.AuthenticationPolicyLocationVsysArgs
            {
                Name = "string",
                NgfwDevice = "string",
            },
        },
        Rules = new[]
        {
            new Panos.Inputs.AuthenticationPolicyRuleArgs
            {
                Name = "string",
                DestinationZones = new[]
                {
                    "string",
                },
                Description = "string",
                DestinationAddresses = new[]
                {
                    "string",
                },
                DestinationHips = new[]
                {
                    "string",
                },
                AuthenticationEnforcement = "string",
                Disabled = false,
                GroupTag = "string",
                LogAuthenticationTimeout = false,
                Categories = new[]
                {
                    "string",
                },
                LogSetting = "string",
                Services = new[]
                {
                    "string",
                },
                NegateSource = false,
                NegateDestination = false,
                SourceAddresses = new[]
                {
                    "string",
                },
                SourceHips = new[]
                {
                    "string",
                },
                SourceUsers = new[]
                {
                    "string",
                },
                SourceZones = new[]
                {
                    "string",
                },
                Tags = new[]
                {
                    "string",
                },
                Target = new Panos.Inputs.AuthenticationPolicyRuleTargetArgs
                {
                    Devices = new[]
                    {
                        new Panos.Inputs.AuthenticationPolicyRuleTargetDeviceArgs
                        {
                            Name = "string",
                            Vsys = new[]
                            {
                                new Panos.Inputs.AuthenticationPolicyRuleTargetDeviceVsyArgs
                                {
                                    Name = "string",
                                },
                            },
                        },
                    },
                    Negate = false,
                    Tags = new[]
                    {
                        "string",
                    },
                },
                Timeout = 0,
            },
        },
    });
    
    example, err := panos.NewAuthenticationPolicy(ctx, "authenticationPolicyResource", &panos.AuthenticationPolicyArgs{
    	Location: &panos.AuthenticationPolicyLocationArgs{
    		DeviceGroup: &panos.AuthenticationPolicyLocationDeviceGroupArgs{
    			Name:           pulumi.String("string"),
    			PanoramaDevice: pulumi.String("string"),
    			Rulebase:       pulumi.String("string"),
    		},
    		Shared: &panos.AuthenticationPolicyLocationSharedArgs{
    			Rulebase: pulumi.String("string"),
    		},
    		Vsys: &panos.AuthenticationPolicyLocationVsysArgs{
    			Name:       pulumi.String("string"),
    			NgfwDevice: pulumi.String("string"),
    		},
    	},
    	Rules: panos.AuthenticationPolicyRuleArray{
    		&panos.AuthenticationPolicyRuleArgs{
    			Name: pulumi.String("string"),
    			DestinationZones: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Description: pulumi.String("string"),
    			DestinationAddresses: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			DestinationHips: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			AuthenticationEnforcement: pulumi.String("string"),
    			Disabled:                  pulumi.Bool(false),
    			GroupTag:                  pulumi.String("string"),
    			LogAuthenticationTimeout:  pulumi.Bool(false),
    			Categories: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			LogSetting: pulumi.String("string"),
    			Services: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			NegateSource:      pulumi.Bool(false),
    			NegateDestination: pulumi.Bool(false),
    			SourceAddresses: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			SourceHips: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			SourceUsers: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			SourceZones: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Tags: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Target: &panos.AuthenticationPolicyRuleTargetArgs{
    				Devices: panos.AuthenticationPolicyRuleTargetDeviceArray{
    					&panos.AuthenticationPolicyRuleTargetDeviceArgs{
    						Name: pulumi.String("string"),
    						Vsys: panos.AuthenticationPolicyRuleTargetDeviceVsyArray{
    							&panos.AuthenticationPolicyRuleTargetDeviceVsyArgs{
    								Name: pulumi.String("string"),
    							},
    						},
    					},
    				},
    				Negate: pulumi.Bool(false),
    				Tags: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    			Timeout: pulumi.Float64(0),
    		},
    	},
    })
    
    var authenticationPolicyResource = new AuthenticationPolicy("authenticationPolicyResource", AuthenticationPolicyArgs.builder()
        .location(AuthenticationPolicyLocationArgs.builder()
            .deviceGroup(AuthenticationPolicyLocationDeviceGroupArgs.builder()
                .name("string")
                .panoramaDevice("string")
                .rulebase("string")
                .build())
            .shared(AuthenticationPolicyLocationSharedArgs.builder()
                .rulebase("string")
                .build())
            .vsys(AuthenticationPolicyLocationVsysArgs.builder()
                .name("string")
                .ngfwDevice("string")
                .build())
            .build())
        .rules(AuthenticationPolicyRuleArgs.builder()
            .name("string")
            .destinationZones("string")
            .description("string")
            .destinationAddresses("string")
            .destinationHips("string")
            .authenticationEnforcement("string")
            .disabled(false)
            .groupTag("string")
            .logAuthenticationTimeout(false)
            .categories("string")
            .logSetting("string")
            .services("string")
            .negateSource(false)
            .negateDestination(false)
            .sourceAddresses("string")
            .sourceHips("string")
            .sourceUsers("string")
            .sourceZones("string")
            .tags("string")
            .target(AuthenticationPolicyRuleTargetArgs.builder()
                .devices(AuthenticationPolicyRuleTargetDeviceArgs.builder()
                    .name("string")
                    .vsys(AuthenticationPolicyRuleTargetDeviceVsyArgs.builder()
                        .name("string")
                        .build())
                    .build())
                .negate(false)
                .tags("string")
                .build())
            .timeout(0.0)
            .build())
        .build());
    
    authentication_policy_resource = panos.AuthenticationPolicy("authenticationPolicyResource",
        location={
            "device_group": {
                "name": "string",
                "panorama_device": "string",
                "rulebase": "string",
            },
            "shared": {
                "rulebase": "string",
            },
            "vsys": {
                "name": "string",
                "ngfw_device": "string",
            },
        },
        rules=[{
            "name": "string",
            "destination_zones": ["string"],
            "description": "string",
            "destination_addresses": ["string"],
            "destination_hips": ["string"],
            "authentication_enforcement": "string",
            "disabled": False,
            "group_tag": "string",
            "log_authentication_timeout": False,
            "categories": ["string"],
            "log_setting": "string",
            "services": ["string"],
            "negate_source": False,
            "negate_destination": False,
            "source_addresses": ["string"],
            "source_hips": ["string"],
            "source_users": ["string"],
            "source_zones": ["string"],
            "tags": ["string"],
            "target": {
                "devices": [{
                    "name": "string",
                    "vsys": [{
                        "name": "string",
                    }],
                }],
                "negate": False,
                "tags": ["string"],
            },
            "timeout": 0,
        }])
    
    const authenticationPolicyResource = new panos.AuthenticationPolicy("authenticationPolicyResource", {
        location: {
            deviceGroup: {
                name: "string",
                panoramaDevice: "string",
                rulebase: "string",
            },
            shared: {
                rulebase: "string",
            },
            vsys: {
                name: "string",
                ngfwDevice: "string",
            },
        },
        rules: [{
            name: "string",
            destinationZones: ["string"],
            description: "string",
            destinationAddresses: ["string"],
            destinationHips: ["string"],
            authenticationEnforcement: "string",
            disabled: false,
            groupTag: "string",
            logAuthenticationTimeout: false,
            categories: ["string"],
            logSetting: "string",
            services: ["string"],
            negateSource: false,
            negateDestination: false,
            sourceAddresses: ["string"],
            sourceHips: ["string"],
            sourceUsers: ["string"],
            sourceZones: ["string"],
            tags: ["string"],
            target: {
                devices: [{
                    name: "string",
                    vsys: [{
                        name: "string",
                    }],
                }],
                negate: false,
                tags: ["string"],
            },
            timeout: 0,
        }],
    });
    
    type: panos:AuthenticationPolicy
    properties:
        location:
            deviceGroup:
                name: string
                panoramaDevice: string
                rulebase: string
            shared:
                rulebase: string
            vsys:
                name: string
                ngfwDevice: string
        rules:
            - authenticationEnforcement: string
              categories:
                - string
              description: string
              destinationAddresses:
                - string
              destinationHips:
                - string
              destinationZones:
                - string
              disabled: false
              groupTag: string
              logAuthenticationTimeout: false
              logSetting: string
              name: string
              negateDestination: false
              negateSource: false
              services:
                - string
              sourceAddresses:
                - string
              sourceHips:
                - string
              sourceUsers:
                - string
              sourceZones:
                - string
              tags:
                - string
              target:
                devices:
                    - name: string
                      vsys:
                        - name: string
                negate: false
                tags:
                    - string
              timeout: 0
    

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

    location Property Map
    The location of this object.
    rules List<Property Map>

    Outputs

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

    Get an existing AuthenticationPolicy 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?: AuthenticationPolicyState, opts?: CustomResourceOptions): AuthenticationPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            location: Optional[AuthenticationPolicyLocationArgs] = None,
            rules: Optional[Sequence[AuthenticationPolicyRuleArgs]] = None) -> AuthenticationPolicy
    func GetAuthenticationPolicy(ctx *Context, name string, id IDInput, state *AuthenticationPolicyState, opts ...ResourceOption) (*AuthenticationPolicy, error)
    public static AuthenticationPolicy Get(string name, Input<string> id, AuthenticationPolicyState? state, CustomResourceOptions? opts = null)
    public static AuthenticationPolicy get(String name, Output<String> id, AuthenticationPolicyState state, CustomResourceOptions options)
    resources:  _:    type: panos:AuthenticationPolicy    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.

    Supporting Types

    AuthenticationPolicyLocation, AuthenticationPolicyLocationArgs

    DeviceGroup AuthenticationPolicyLocationDeviceGroup
    Located in a specific device group rulebase
    Shared AuthenticationPolicyLocationShared
    Located in a shared rulebase
    Vsys AuthenticationPolicyLocationVsys
    Located in a specific vsys rulebase
    DeviceGroup AuthenticationPolicyLocationDeviceGroup
    Located in a specific device group rulebase
    Shared AuthenticationPolicyLocationShared
    Located in a shared rulebase
    Vsys AuthenticationPolicyLocationVsys
    Located in a specific vsys rulebase
    deviceGroup AuthenticationPolicyLocationDeviceGroup
    Located in a specific device group rulebase
    shared AuthenticationPolicyLocationShared
    Located in a shared rulebase
    vsys AuthenticationPolicyLocationVsys
    Located in a specific vsys rulebase
    deviceGroup AuthenticationPolicyLocationDeviceGroup
    Located in a specific device group rulebase
    shared AuthenticationPolicyLocationShared
    Located in a shared rulebase
    vsys AuthenticationPolicyLocationVsys
    Located in a specific vsys rulebase
    device_group AuthenticationPolicyLocationDeviceGroup
    Located in a specific device group rulebase
    shared AuthenticationPolicyLocationShared
    Located in a shared rulebase
    vsys AuthenticationPolicyLocationVsys
    Located in a specific vsys rulebase
    deviceGroup Property Map
    Located in a specific device group rulebase
    shared Property Map
    Located in a shared rulebase
    vsys Property Map
    Located in a specific vsys rulebase

    AuthenticationPolicyLocationDeviceGroup, AuthenticationPolicyLocationDeviceGroupArgs

    Name string
    The device group name
    PanoramaDevice string
    The panorama device
    Rulebase string
    The rulebase
    Name string
    The device group name
    PanoramaDevice string
    The panorama device
    Rulebase string
    The rulebase
    name String
    The device group name
    panoramaDevice String
    The panorama device
    rulebase String
    The rulebase
    name string
    The device group name
    panoramaDevice string
    The panorama device
    rulebase string
    The rulebase
    name str
    The device group name
    panorama_device str
    The panorama device
    rulebase str
    The rulebase
    name String
    The device group name
    panoramaDevice String
    The panorama device
    rulebase String
    The rulebase

    AuthenticationPolicyLocationShared, AuthenticationPolicyLocationSharedArgs

    Rulebase string
    Rulebase name
    Rulebase string
    Rulebase name
    rulebase String
    Rulebase name
    rulebase string
    Rulebase name
    rulebase str
    Rulebase name
    rulebase String
    Rulebase name

    AuthenticationPolicyLocationVsys, AuthenticationPolicyLocationVsysArgs

    Name string
    The vsys name
    NgfwDevice string
    The NGFW device
    Name string
    The vsys name
    NgfwDevice string
    The NGFW device
    name String
    The vsys name
    ngfwDevice String
    The NGFW device
    name string
    The vsys name
    ngfwDevice string
    The NGFW device
    name str
    The vsys name
    ngfw_device str
    The NGFW device
    name String
    The vsys name
    ngfwDevice String
    The NGFW device

    AuthenticationPolicyRule, AuthenticationPolicyRuleArgs

    Name string
    AuthenticationEnforcement string
    Authentication enforcement object to use for authentication.
    Categories List<string>
    Description string
    DestinationAddresses List<string>
    DestinationHips List<string>
    DestinationZones List<string>
    Disabled bool
    Disable the rule
    GroupTag string
    LogAuthenticationTimeout bool
    LogSetting string
    Log setting for forwarding authentication logs
    NegateDestination bool
    NegateSource bool
    Services List<string>
    SourceAddresses List<string>
    SourceHips List<string>
    SourceUsers List<string>
    SourceZones List<string>
    Tags List<string>
    Target AuthenticationPolicyRuleTarget
    Timeout double
    expiration timer (minutes)
    Name string
    AuthenticationEnforcement string
    Authentication enforcement object to use for authentication.
    Categories []string
    Description string
    DestinationAddresses []string
    DestinationHips []string
    DestinationZones []string
    Disabled bool
    Disable the rule
    GroupTag string
    LogAuthenticationTimeout bool
    LogSetting string
    Log setting for forwarding authentication logs
    NegateDestination bool
    NegateSource bool
    Services []string
    SourceAddresses []string
    SourceHips []string
    SourceUsers []string
    SourceZones []string
    Tags []string
    Target AuthenticationPolicyRuleTarget
    Timeout float64
    expiration timer (minutes)
    name String
    authenticationEnforcement String
    Authentication enforcement object to use for authentication.
    categories List<String>
    description String
    destinationAddresses List<String>
    destinationHips List<String>
    destinationZones List<String>
    disabled Boolean
    Disable the rule
    groupTag String
    logAuthenticationTimeout Boolean
    logSetting String
    Log setting for forwarding authentication logs
    negateDestination Boolean
    negateSource Boolean
    services List<String>
    sourceAddresses List<String>
    sourceHips List<String>
    sourceUsers List<String>
    sourceZones List<String>
    tags List<String>
    target AuthenticationPolicyRuleTarget
    timeout Double
    expiration timer (minutes)
    name string
    authenticationEnforcement string
    Authentication enforcement object to use for authentication.
    categories string[]
    description string
    destinationAddresses string[]
    destinationHips string[]
    destinationZones string[]
    disabled boolean
    Disable the rule
    groupTag string
    logAuthenticationTimeout boolean
    logSetting string
    Log setting for forwarding authentication logs
    negateDestination boolean
    negateSource boolean
    services string[]
    sourceAddresses string[]
    sourceHips string[]
    sourceUsers string[]
    sourceZones string[]
    tags string[]
    target AuthenticationPolicyRuleTarget
    timeout number
    expiration timer (minutes)
    name str
    authentication_enforcement str
    Authentication enforcement object to use for authentication.
    categories Sequence[str]
    description str
    destination_addresses Sequence[str]
    destination_hips Sequence[str]
    destination_zones Sequence[str]
    disabled bool
    Disable the rule
    group_tag str
    log_authentication_timeout bool
    log_setting str
    Log setting for forwarding authentication logs
    negate_destination bool
    negate_source bool
    services Sequence[str]
    source_addresses Sequence[str]
    source_hips Sequence[str]
    source_users Sequence[str]
    source_zones Sequence[str]
    tags Sequence[str]
    target AuthenticationPolicyRuleTarget
    timeout float
    expiration timer (minutes)
    name String
    authenticationEnforcement String
    Authentication enforcement object to use for authentication.
    categories List<String>
    description String
    destinationAddresses List<String>
    destinationHips List<String>
    destinationZones List<String>
    disabled Boolean
    Disable the rule
    groupTag String
    logAuthenticationTimeout Boolean
    logSetting String
    Log setting for forwarding authentication logs
    negateDestination Boolean
    negateSource Boolean
    services List<String>
    sourceAddresses List<String>
    sourceHips List<String>
    sourceUsers List<String>
    sourceZones List<String>
    tags List<String>
    target Property Map
    timeout Number
    expiration timer (minutes)

    AuthenticationPolicyRuleTarget, AuthenticationPolicyRuleTargetArgs

    Devices List<AuthenticationPolicyRuleTargetDevice>
    Negate bool
    Target to all but these specified devices and tags
    Tags List<string>
    Devices []AuthenticationPolicyRuleTargetDevice
    Negate bool
    Target to all but these specified devices and tags
    Tags []string
    devices List<AuthenticationPolicyRuleTargetDevice>
    negate Boolean
    Target to all but these specified devices and tags
    tags List<String>
    devices AuthenticationPolicyRuleTargetDevice[]
    negate boolean
    Target to all but these specified devices and tags
    tags string[]
    devices Sequence[AuthenticationPolicyRuleTargetDevice]
    negate bool
    Target to all but these specified devices and tags
    tags Sequence[str]
    devices List<Property Map>
    negate Boolean
    Target to all but these specified devices and tags
    tags List<String>

    AuthenticationPolicyRuleTargetDevice, AuthenticationPolicyRuleTargetDeviceArgs

    AuthenticationPolicyRuleTargetDeviceVsy, AuthenticationPolicyRuleTargetDeviceVsyArgs

    Name string
    Name string
    name String
    name string
    name str
    name String

    Import

    #!/bin/bash

    The entire authentication policy can be imported by providing the following base64 encoded object as the ID

    {

    location = {
    
        device_group = {
    
        name = "example-device-group"
    
        rulebase = "pre-rulebase"
    
        panorama_device = "localhost.localdomain"
    
        }
    
    }
    
    names = [
    
        "require-auth-web-access", <- the first rule in the policy
    
    ]
    

    }

    $ pulumi import panos:index/authenticationPolicy:AuthenticationPolicy example $(echo '{"location":{"device_group":{"name":"example-device-group","panorama_device":"localhost.localdomain","rulebase":"pre-rulebase"}},"names":["require-auth-web-access"]}' | 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.10
    published on Thursday, Apr 9, 2026 by paloaltonetworks
      Try Pulumi Cloud free. Your team will thank you.