panos.GeneralSettings
Explore with Pulumi AI
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
General
Settings Location - The location of this object.
- Domain string
- Geo
Location GeneralSettings Geo Location - Hostname string
- string
- Ssl
Tls stringService Profile - SSL TLS service profile
- Timezone string
- Location
General
Settings Location Args - The location of this object.
- Domain string
- Geo
Location GeneralSettings Geo Location Args - Hostname string
- string
- Ssl
Tls stringService Profile - SSL TLS service profile
- Timezone string
- location
General
Settings Location - The location of this object.
- domain String
- geo
Location GeneralSettings Geo Location - hostname String
- String
- ssl
Tls StringService Profile - SSL TLS service profile
- timezone String
- location
General
Settings Location - The location of this object.
- domain string
- geo
Location GeneralSettings Geo Location - hostname string
- string
- ssl
Tls stringService Profile - SSL TLS service profile
- timezone string
- location
General
Settings Location Args - The location of this object.
- domain str
- geo_
location GeneralSettings Geo Location Args - hostname str
- str
- ssl_
tls_ strservice_ profile - SSL TLS service profile
- timezone str
- location Property Map
- The location of this object.
- domain String
- geo
Location Property Map - hostname String
- String
- ssl
Tls StringService Profile - 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.
- Domain string
- Geo
Location GeneralSettings Geo Location - Hostname string
- Location
General
Settings Location - The location of this object.
- string
- Ssl
Tls stringService Profile - SSL TLS service profile
- Timezone string
- Domain string
- Geo
Location GeneralSettings Geo Location Args - Hostname string
- Location
General
Settings Location Args - The location of this object.
- string
- Ssl
Tls stringService Profile - SSL TLS service profile
- Timezone string
- domain String
- geo
Location GeneralSettings Geo Location - hostname String
- location
General
Settings Location - The location of this object.
- String
- ssl
Tls StringService Profile - SSL TLS service profile
- timezone String
- domain string
- geo
Location GeneralSettings Geo Location - hostname string
- location
General
Settings Location - The location of this object.
- string
- ssl
Tls stringService Profile - SSL TLS service profile
- timezone string
- domain str
- geo_
location GeneralSettings Geo Location Args - hostname str
- location
General
Settings Location Args - The location of this object.
- str
- ssl_
tls_ strservice_ profile - SSL TLS service profile
- timezone str
- domain String
- geo
Location Property Map - hostname String
- location Property Map
- The location of this object.
- String
- ssl
Tls StringService Profile - SSL TLS service profile
- timezone String
Supporting Types
GeneralSettingsGeoLocation, GeneralSettingsGeoLocationArgs
GeneralSettingsLocation, GeneralSettingsLocationArgs
- System
General
Settings Location System - System-level configuration
- Template
General
Settings Location Template - Located in a specific template
- Template
Stack GeneralSettings Location Template Stack - Located in a specific template stack
- System
General
Settings Location System - System-level configuration
- Template
General
Settings Location Template - Located in a specific template
- Template
Stack GeneralSettings Location Template Stack - Located in a specific template stack
- system
General
Settings Location System - System-level configuration
- template
General
Settings Location Template - Located in a specific template
- template
Stack GeneralSettings Location Template Stack - Located in a specific template stack
- system
General
Settings Location System - System-level configuration
- template
General
Settings Location Template - Located in a specific template
- template
Stack GeneralSettings Location Template Stack - Located in a specific template stack
- system
General
Settings Location System - System-level configuration
- template
General
Settings Location Template - Located in a specific template
- template_
stack GeneralSettings Location Template Stack - Located in a specific template stack
- system Property Map
- System-level configuration
- template Property Map
- Located in a specific template
- template
Stack 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
- 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
GeneralSettingsLocationTemplateStack, GeneralSettingsLocationTemplateStackArgs
- 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
panos
Terraform Provider.