1. Packages
  2. Panos Provider
  3. API Docs
  4. GeneralSettings
panos 2.0.2 published on Friday, Jun 6, 2025 by paloaltonetworks

panos.GeneralSettings

Explore with Pulumi AI

panos logo
panos 2.0.2 published on Friday, Jun 6, 2025 by paloaltonetworks

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as panos from "@pulumi/panos";
    
    const exampleTemplate = new panos.Template("exampleTemplate", {location: {
        panorama: {},
    }});
    const exampleGeneralSettings = new panos.GeneralSettings("exampleGeneralSettings", {
        location: {
            template: {
                name: exampleTemplate.name,
            },
        },
        hostname: "device",
        domain: "example.com",
        geoLocation: {
            latitude: "40.7128",
            longitude: "-74.0060",
        },
        loginBanner: "Example Login Banner",
    });
    
    import pulumi
    import pulumi_panos as panos
    
    example_template = panos.Template("exampleTemplate", location={
        "panorama": {},
    })
    example_general_settings = panos.GeneralSettings("exampleGeneralSettings",
        location={
            "template": {
                "name": example_template.name,
            },
        },
        hostname="device",
        domain="example.com",
        geo_location={
            "latitude": "40.7128",
            "longitude": "-74.0060",
        },
        login_banner="Example Login Banner")
    
    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 {
    		exampleTemplate, err := panos.NewTemplate(ctx, "exampleTemplate", &panos.TemplateArgs{
    			Location: &panos.TemplateLocationArgs{
    				Panorama: &panos.TemplateLocationPanoramaArgs{},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = panos.NewGeneralSettings(ctx, "exampleGeneralSettings", &panos.GeneralSettingsArgs{
    			Location: &panos.GeneralSettingsLocationArgs{
    				Template: &panos.GeneralSettingsLocationTemplateArgs{
    					Name: exampleTemplate.Name,
    				},
    			},
    			Hostname: pulumi.String("device"),
    			Domain:   pulumi.String("example.com"),
    			GeoLocation: &panos.GeneralSettingsGeoLocationArgs{
    				Latitude:  pulumi.String("40.7128"),
    				Longitude: pulumi.String("-74.0060"),
    			},
    			LoginBanner: pulumi.String("Example Login Banner"),
    		})
    		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 exampleTemplate = new Panos.Template("exampleTemplate", new()
        {
            Location = new Panos.Inputs.TemplateLocationArgs
            {
                Panorama = null,
            },
        });
    
        var exampleGeneralSettings = new Panos.GeneralSettings("exampleGeneralSettings", new()
        {
            Location = new Panos.Inputs.GeneralSettingsLocationArgs
            {
                Template = new Panos.Inputs.GeneralSettingsLocationTemplateArgs
                {
                    Name = exampleTemplate.Name,
                },
            },
            Hostname = "device",
            Domain = "example.com",
            GeoLocation = new Panos.Inputs.GeneralSettingsGeoLocationArgs
            {
                Latitude = "40.7128",
                Longitude = "-74.0060",
            },
            LoginBanner = "Example Login Banner",
        });
    
    });
    
    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.GeneralSettings;
    import com.pulumi.panos.GeneralSettingsArgs;
    import com.pulumi.panos.inputs.GeneralSettingsLocationArgs;
    import com.pulumi.panos.inputs.GeneralSettingsLocationTemplateArgs;
    import com.pulumi.panos.inputs.GeneralSettingsGeoLocationArgs;
    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 exampleTemplate = new Template("exampleTemplate", TemplateArgs.builder()
                .location(TemplateLocationArgs.builder()
                    .panorama()
                    .build())
                .build());
    
            var exampleGeneralSettings = new GeneralSettings("exampleGeneralSettings", GeneralSettingsArgs.builder()
                .location(GeneralSettingsLocationArgs.builder()
                    .template(GeneralSettingsLocationTemplateArgs.builder()
                        .name(exampleTemplate.name())
                        .build())
                    .build())
                .hostname("device")
                .domain("example.com")
                .geoLocation(GeneralSettingsGeoLocationArgs.builder()
                    .latitude("40.7128")
                    .longitude("-74.0060")
                    .build())
                .loginBanner("Example Login Banner")
                .build());
    
        }
    }
    
    resources:
      exampleTemplate:
        type: panos:Template
        properties:
          location:
            panorama: {}
      exampleGeneralSettings:
        type: panos:GeneralSettings
        properties:
          location:
            template:
              name: ${exampleTemplate.name}
          hostname: device
          domain: example.com
          geoLocation:
            latitude: '40.7128'
            longitude: '-74.0060'
          loginBanner: Example Login Banner
    

    Create GeneralSettings Resource

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

    Constructor syntax

    new GeneralSettings(name: string, args: GeneralSettingsArgs, opts?: CustomResourceOptions);
    @overload
    def GeneralSettings(resource_name: str,
                        args: GeneralSettingsArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def GeneralSettings(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        location: Optional[GeneralSettingsLocationArgs] = None,
                        domain: Optional[str] = None,
                        geo_location: Optional[GeneralSettingsGeoLocationArgs] = None,
                        hostname: Optional[str] = None,
                        login_banner: Optional[str] = None,
                        ssl_tls_service_profile: Optional[str] = None,
                        timezone: Optional[str] = None)
    func NewGeneralSettings(ctx *Context, name string, args GeneralSettingsArgs, opts ...ResourceOption) (*GeneralSettings, error)
    public GeneralSettings(string name, GeneralSettingsArgs args, CustomResourceOptions? opts = null)
    public GeneralSettings(String name, GeneralSettingsArgs args)
    public GeneralSettings(String name, GeneralSettingsArgs args, CustomResourceOptions options)
    
    type: panos:GeneralSettings
    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 GeneralSettingsArgs
    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 GeneralSettingsArgs
    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 GeneralSettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GeneralSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GeneralSettingsArgs
    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 generalSettingsResource = new Panos.GeneralSettings("generalSettingsResource", new()
    {
        Location = new Panos.Inputs.GeneralSettingsLocationArgs
        {
            System = new Panos.Inputs.GeneralSettingsLocationSystemArgs
            {
                Device = "string",
            },
            Template = new Panos.Inputs.GeneralSettingsLocationTemplateArgs
            {
                Name = "string",
                NgfwDevice = "string",
                PanoramaDevice = "string",
            },
            TemplateStack = new Panos.Inputs.GeneralSettingsLocationTemplateStackArgs
            {
                Name = "string",
                NgfwDevice = "string",
                PanoramaDevice = "string",
            },
        },
        Domain = "string",
        GeoLocation = new Panos.Inputs.GeneralSettingsGeoLocationArgs
        {
            Latitude = "string",
            Longitude = "string",
        },
        Hostname = "string",
        LoginBanner = "string",
        SslTlsServiceProfile = "string",
        Timezone = "string",
    });
    
    example, err := panos.NewGeneralSettings(ctx, "generalSettingsResource", &panos.GeneralSettingsArgs{
    	Location: &panos.GeneralSettingsLocationArgs{
    		System: &panos.GeneralSettingsLocationSystemArgs{
    			Device: pulumi.String("string"),
    		},
    		Template: &panos.GeneralSettingsLocationTemplateArgs{
    			Name:           pulumi.String("string"),
    			NgfwDevice:     pulumi.String("string"),
    			PanoramaDevice: pulumi.String("string"),
    		},
    		TemplateStack: &panos.GeneralSettingsLocationTemplateStackArgs{
    			Name:           pulumi.String("string"),
    			NgfwDevice:     pulumi.String("string"),
    			PanoramaDevice: pulumi.String("string"),
    		},
    	},
    	Domain: pulumi.String("string"),
    	GeoLocation: &panos.GeneralSettingsGeoLocationArgs{
    		Latitude:  pulumi.String("string"),
    		Longitude: pulumi.String("string"),
    	},
    	Hostname:             pulumi.String("string"),
    	LoginBanner:          pulumi.String("string"),
    	SslTlsServiceProfile: pulumi.String("string"),
    	Timezone:             pulumi.String("string"),
    })
    
    var generalSettingsResource = new GeneralSettings("generalSettingsResource", GeneralSettingsArgs.builder()
        .location(GeneralSettingsLocationArgs.builder()
            .system(GeneralSettingsLocationSystemArgs.builder()
                .device("string")
                .build())
            .template(GeneralSettingsLocationTemplateArgs.builder()
                .name("string")
                .ngfwDevice("string")
                .panoramaDevice("string")
                .build())
            .templateStack(GeneralSettingsLocationTemplateStackArgs.builder()
                .name("string")
                .ngfwDevice("string")
                .panoramaDevice("string")
                .build())
            .build())
        .domain("string")
        .geoLocation(GeneralSettingsGeoLocationArgs.builder()
            .latitude("string")
            .longitude("string")
            .build())
        .hostname("string")
        .loginBanner("string")
        .sslTlsServiceProfile("string")
        .timezone("string")
        .build());
    
    general_settings_resource = panos.GeneralSettings("generalSettingsResource",
        location={
            "system": {
                "device": "string",
            },
            "template": {
                "name": "string",
                "ngfw_device": "string",
                "panorama_device": "string",
            },
            "template_stack": {
                "name": "string",
                "ngfw_device": "string",
                "panorama_device": "string",
            },
        },
        domain="string",
        geo_location={
            "latitude": "string",
            "longitude": "string",
        },
        hostname="string",
        login_banner="string",
        ssl_tls_service_profile="string",
        timezone="string")
    
    const generalSettingsResource = new panos.GeneralSettings("generalSettingsResource", {
        location: {
            system: {
                device: "string",
            },
            template: {
                name: "string",
                ngfwDevice: "string",
                panoramaDevice: "string",
            },
            templateStack: {
                name: "string",
                ngfwDevice: "string",
                panoramaDevice: "string",
            },
        },
        domain: "string",
        geoLocation: {
            latitude: "string",
            longitude: "string",
        },
        hostname: "string",
        loginBanner: "string",
        sslTlsServiceProfile: "string",
        timezone: "string",
    });
    
    type: panos:GeneralSettings
    properties:
        domain: string
        geoLocation:
            latitude: string
            longitude: string
        hostname: string
        location:
            system:
                device: string
            template:
                name: string
                ngfwDevice: string
                panoramaDevice: string
            templateStack:
                name: string
                ngfwDevice: string
                panoramaDevice: string
        loginBanner: string
        sslTlsServiceProfile: string
        timezone: string
    

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

    Location GeneralSettingsLocation
    The location of this object.
    Domain string
    GeoLocation GeneralSettingsGeoLocation
    Hostname string
    LoginBanner string
    SslTlsServiceProfile string
    SSL TLS service profile
    Timezone string
    Location GeneralSettingsLocationArgs
    The location of this object.
    Domain string
    GeoLocation GeneralSettingsGeoLocationArgs
    Hostname string
    LoginBanner string
    SslTlsServiceProfile string
    SSL TLS service profile
    Timezone string
    location GeneralSettingsLocation
    The location of this object.
    domain String
    geoLocation GeneralSettingsGeoLocation
    hostname String
    loginBanner String
    sslTlsServiceProfile String
    SSL TLS service profile
    timezone String
    location GeneralSettingsLocation
    The location of this object.
    domain string
    geoLocation GeneralSettingsGeoLocation
    hostname string
    loginBanner string
    sslTlsServiceProfile string
    SSL TLS service profile
    timezone string
    location Property Map
    The location of this object.
    domain String
    geoLocation Property Map
    hostname String
    loginBanner String
    sslTlsServiceProfile String
    SSL TLS service profile
    timezone String

    Outputs

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

    Get an existing GeneralSettings 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?: GeneralSettingsState, opts?: CustomResourceOptions): GeneralSettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            domain: Optional[str] = None,
            geo_location: Optional[GeneralSettingsGeoLocationArgs] = None,
            hostname: Optional[str] = None,
            location: Optional[GeneralSettingsLocationArgs] = None,
            login_banner: Optional[str] = None,
            ssl_tls_service_profile: Optional[str] = None,
            timezone: Optional[str] = None) -> GeneralSettings
    func GetGeneralSettings(ctx *Context, name string, id IDInput, state *GeneralSettingsState, opts ...ResourceOption) (*GeneralSettings, error)
    public static GeneralSettings Get(string name, Input<string> id, GeneralSettingsState? state, CustomResourceOptions? opts = null)
    public static GeneralSettings get(String name, Output<String> id, GeneralSettingsState state, CustomResourceOptions options)
    resources:  _:    type: panos:GeneralSettings    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:
    Domain string
    GeoLocation GeneralSettingsGeoLocation
    Hostname string
    Location GeneralSettingsLocation
    The location of this object.
    LoginBanner string
    SslTlsServiceProfile string
    SSL TLS service profile
    Timezone string
    Domain string
    GeoLocation GeneralSettingsGeoLocationArgs
    Hostname string
    Location GeneralSettingsLocationArgs
    The location of this object.
    LoginBanner string
    SslTlsServiceProfile string
    SSL TLS service profile
    Timezone string
    domain String
    geoLocation GeneralSettingsGeoLocation
    hostname String
    location GeneralSettingsLocation
    The location of this object.
    loginBanner String
    sslTlsServiceProfile String
    SSL TLS service profile
    timezone String
    domain string
    geoLocation GeneralSettingsGeoLocation
    hostname string
    location GeneralSettingsLocation
    The location of this object.
    loginBanner string
    sslTlsServiceProfile string
    SSL TLS service profile
    timezone string
    domain String
    geoLocation Property Map
    hostname String
    location Property Map
    The location of this object.
    loginBanner String
    sslTlsServiceProfile String
    SSL TLS service profile
    timezone String

    Supporting Types

    GeneralSettingsGeoLocation, GeneralSettingsGeoLocationArgs

    Latitude string
    latitude coordinate
    Longitude string
    longitude coordinate
    Latitude string
    latitude coordinate
    Longitude string
    longitude coordinate
    latitude String
    latitude coordinate
    longitude String
    longitude coordinate
    latitude string
    latitude coordinate
    longitude string
    longitude coordinate
    latitude str
    latitude coordinate
    longitude str
    longitude coordinate
    latitude String
    latitude coordinate
    longitude String
    longitude coordinate

    GeneralSettingsLocation, GeneralSettingsLocationArgs

    System GeneralSettingsLocationSystem
    System-level configuration
    Template GeneralSettingsLocationTemplate
    Located in a specific template
    TemplateStack GeneralSettingsLocationTemplateStack
    Located in a specific template stack
    System GeneralSettingsLocationSystem
    System-level configuration
    Template GeneralSettingsLocationTemplate
    Located in a specific template
    TemplateStack GeneralSettingsLocationTemplateStack
    Located in a specific template stack
    system GeneralSettingsLocationSystem
    System-level configuration
    template GeneralSettingsLocationTemplate
    Located in a specific template
    templateStack GeneralSettingsLocationTemplateStack
    Located in a specific template stack
    system GeneralSettingsLocationSystem
    System-level configuration
    template GeneralSettingsLocationTemplate
    Located in a specific template
    templateStack GeneralSettingsLocationTemplateStack
    Located in a specific template stack
    system GeneralSettingsLocationSystem
    System-level configuration
    template GeneralSettingsLocationTemplate
    Located in a specific template
    template_stack GeneralSettingsLocationTemplateStack
    Located in a specific template stack
    system Property Map
    System-level configuration
    template Property Map
    Located in a specific template
    templateStack Property Map
    Located in a specific template stack

    GeneralSettingsLocationSystem, GeneralSettingsLocationSystemArgs

    Device string
    Device
    Device string
    Device
    device String
    Device
    device string
    Device
    device str
    Device
    device String
    Device

    GeneralSettingsLocationTemplate, GeneralSettingsLocationTemplateArgs

    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

    GeneralSettingsLocationTemplateStack, GeneralSettingsLocationTemplateStackArgs

    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

    Package Details

    Repository
    panos paloaltonetworks/terraform-provider-panos
    License
    Notes
    This Pulumi package is based on the panos Terraform Provider.
    panos logo
    panos 2.0.2 published on Friday, Jun 6, 2025 by paloaltonetworks