Create SystemLogSettings Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SystemLogSettings(name: string, args: SystemLogSettingsArgs, opts?: CustomResourceOptions);@overload
def SystemLogSettings(resource_name: str,
args: SystemLogSettingsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SystemLogSettings(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[SystemLogSettingsLocationArgs] = None,
actions: Optional[Sequence[SystemLogSettingsActionArgs]] = None,
description: Optional[str] = None,
email_profiles: Optional[Sequence[str]] = None,
filter: Optional[str] = None,
http_profiles: Optional[Sequence[str]] = None,
name: Optional[str] = None,
send_to_panorama: Optional[bool] = None,
snmp_profiles: Optional[Sequence[str]] = None,
syslog_profiles: Optional[Sequence[str]] = None)func NewSystemLogSettings(ctx *Context, name string, args SystemLogSettingsArgs, opts ...ResourceOption) (*SystemLogSettings, error)public SystemLogSettings(string name, SystemLogSettingsArgs args, CustomResourceOptions? opts = null)
public SystemLogSettings(String name, SystemLogSettingsArgs args)
public SystemLogSettings(String name, SystemLogSettingsArgs args, CustomResourceOptions options)
type: panos:SystemLogSettings
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 SystemLogSettingsArgs
- 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 SystemLogSettingsArgs
- 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 SystemLogSettingsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SystemLogSettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SystemLogSettingsArgs
- 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 systemLogSettingsResource = new Panos.SystemLogSettings("systemLogSettingsResource", new()
{
Location = new Panos.Inputs.SystemLogSettingsLocationArgs
{
Panorama = null,
Template = new Panos.Inputs.SystemLogSettingsLocationTemplateArgs
{
Name = "string",
PanoramaDevice = "string",
},
TemplateStack = new Panos.Inputs.SystemLogSettingsLocationTemplateStackArgs
{
Name = "string",
PanoramaDevice = "string",
},
TemplateStackVsys = new Panos.Inputs.SystemLogSettingsLocationTemplateStackVsysArgs
{
NgfwDevice = "string",
PanoramaDevice = "string",
TemplateStack = "string",
Vsys = "string",
},
TemplateVsys = new Panos.Inputs.SystemLogSettingsLocationTemplateVsysArgs
{
NgfwDevice = "string",
PanoramaDevice = "string",
Template = "string",
Vsys = "string",
},
},
Actions = new[]
{
new Panos.Inputs.SystemLogSettingsActionArgs
{
Name = "string",
Type = new Panos.Inputs.SystemLogSettingsActionTypeArgs
{
Integration = new Panos.Inputs.SystemLogSettingsActionTypeIntegrationArgs
{
Action = "string",
},
},
},
},
Description = "string",
EmailProfiles = new[]
{
"string",
},
Filter = "string",
HttpProfiles = new[]
{
"string",
},
Name = "string",
SendToPanorama = false,
SnmpProfiles = new[]
{
"string",
},
SyslogProfiles = new[]
{
"string",
},
});
example, err := panos.NewSystemLogSettings(ctx, "systemLogSettingsResource", &panos.SystemLogSettingsArgs{
Location: &panos.SystemLogSettingsLocationArgs{
Panorama: &panos.SystemLogSettingsLocationPanoramaArgs{},
Template: &panos.SystemLogSettingsLocationTemplateArgs{
Name: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
TemplateStack: &panos.SystemLogSettingsLocationTemplateStackArgs{
Name: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
TemplateStackVsys: &panos.SystemLogSettingsLocationTemplateStackVsysArgs{
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
TemplateStack: pulumi.String("string"),
Vsys: pulumi.String("string"),
},
TemplateVsys: &panos.SystemLogSettingsLocationTemplateVsysArgs{
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
Template: pulumi.String("string"),
Vsys: pulumi.String("string"),
},
},
Actions: panos.SystemLogSettingsActionArray{
&panos.SystemLogSettingsActionArgs{
Name: pulumi.String("string"),
Type: &panos.SystemLogSettingsActionTypeArgs{
Integration: &panos.SystemLogSettingsActionTypeIntegrationArgs{
Action: pulumi.String("string"),
},
},
},
},
Description: pulumi.String("string"),
EmailProfiles: pulumi.StringArray{
pulumi.String("string"),
},
Filter: pulumi.String("string"),
HttpProfiles: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
SendToPanorama: pulumi.Bool(false),
SnmpProfiles: pulumi.StringArray{
pulumi.String("string"),
},
SyslogProfiles: pulumi.StringArray{
pulumi.String("string"),
},
})
var systemLogSettingsResource = new SystemLogSettings("systemLogSettingsResource", SystemLogSettingsArgs.builder()
.location(SystemLogSettingsLocationArgs.builder()
.panorama(SystemLogSettingsLocationPanoramaArgs.builder()
.build())
.template(SystemLogSettingsLocationTemplateArgs.builder()
.name("string")
.panoramaDevice("string")
.build())
.templateStack(SystemLogSettingsLocationTemplateStackArgs.builder()
.name("string")
.panoramaDevice("string")
.build())
.templateStackVsys(SystemLogSettingsLocationTemplateStackVsysArgs.builder()
.ngfwDevice("string")
.panoramaDevice("string")
.templateStack("string")
.vsys("string")
.build())
.templateVsys(SystemLogSettingsLocationTemplateVsysArgs.builder()
.ngfwDevice("string")
.panoramaDevice("string")
.template("string")
.vsys("string")
.build())
.build())
.actions(SystemLogSettingsActionArgs.builder()
.name("string")
.type(SystemLogSettingsActionTypeArgs.builder()
.integration(SystemLogSettingsActionTypeIntegrationArgs.builder()
.action("string")
.build())
.build())
.build())
.description("string")
.emailProfiles("string")
.filter("string")
.httpProfiles("string")
.name("string")
.sendToPanorama(false)
.snmpProfiles("string")
.syslogProfiles("string")
.build());
system_log_settings_resource = panos.SystemLogSettings("systemLogSettingsResource",
location={
"panorama": {},
"template": {
"name": "string",
"panorama_device": "string",
},
"template_stack": {
"name": "string",
"panorama_device": "string",
},
"template_stack_vsys": {
"ngfw_device": "string",
"panorama_device": "string",
"template_stack": "string",
"vsys": "string",
},
"template_vsys": {
"ngfw_device": "string",
"panorama_device": "string",
"template": "string",
"vsys": "string",
},
},
actions=[{
"name": "string",
"type": {
"integration": {
"action": "string",
},
},
}],
description="string",
email_profiles=["string"],
filter="string",
http_profiles=["string"],
name="string",
send_to_panorama=False,
snmp_profiles=["string"],
syslog_profiles=["string"])
const systemLogSettingsResource = new panos.SystemLogSettings("systemLogSettingsResource", {
location: {
panorama: {},
template: {
name: "string",
panoramaDevice: "string",
},
templateStack: {
name: "string",
panoramaDevice: "string",
},
templateStackVsys: {
ngfwDevice: "string",
panoramaDevice: "string",
templateStack: "string",
vsys: "string",
},
templateVsys: {
ngfwDevice: "string",
panoramaDevice: "string",
template: "string",
vsys: "string",
},
},
actions: [{
name: "string",
type: {
integration: {
action: "string",
},
},
}],
description: "string",
emailProfiles: ["string"],
filter: "string",
httpProfiles: ["string"],
name: "string",
sendToPanorama: false,
snmpProfiles: ["string"],
syslogProfiles: ["string"],
});
type: panos:SystemLogSettings
properties:
actions:
- name: string
type:
integration:
action: string
description: string
emailProfiles:
- string
filter: string
httpProfiles:
- string
location:
panorama: {}
template:
name: string
panoramaDevice: string
templateStack:
name: string
panoramaDevice: string
templateStackVsys:
ngfwDevice: string
panoramaDevice: string
templateStack: string
vsys: string
templateVsys:
ngfwDevice: string
panoramaDevice: string
template: string
vsys: string
name: string
sendToPanorama: false
snmpProfiles:
- string
syslogProfiles:
- string
SystemLogSettings 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 SystemLogSettings resource accepts the following input properties:
- Location
System
Log Settings Location - The location of this object.
- Actions
List<System
Log Settings Action> - Description string
- Email
Profiles List<string> - Filter string
- Http
Profiles List<string> - Name string
- Send
To boolPanorama - Snmp
Profiles List<string> - Syslog
Profiles List<string>
- Location
System
Log Settings Location Args - The location of this object.
- Actions
[]System
Log Settings Action Args - Description string
- Email
Profiles []string - Filter string
- Http
Profiles []string - Name string
- Send
To boolPanorama - Snmp
Profiles []string - Syslog
Profiles []string
- location
System
Log Settings Location - The location of this object.
- actions
List<System
Log Settings Action> - description String
- email
Profiles List<String> - filter String
- http
Profiles List<String> - name String
- send
To BooleanPanorama - snmp
Profiles List<String> - syslog
Profiles List<String>
- location
System
Log Settings Location - The location of this object.
- actions
System
Log Settings Action[] - description string
- email
Profiles string[] - filter string
- http
Profiles string[] - name string
- send
To booleanPanorama - snmp
Profiles string[] - syslog
Profiles string[]
- location
System
Log Settings Location Args - The location of this object.
- actions
Sequence[System
Log Settings Action Args] - description str
- email_
profiles Sequence[str] - filter str
- http_
profiles Sequence[str] - name str
- send_
to_ boolpanorama - snmp_
profiles Sequence[str] - syslog_
profiles Sequence[str]
- location Property Map
- The location of this object.
- actions List<Property Map>
- description String
- email
Profiles List<String> - filter String
- http
Profiles List<String> - name String
- send
To BooleanPanorama - snmp
Profiles List<String> - syslog
Profiles List<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the SystemLogSettings 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 SystemLogSettings Resource
Get an existing SystemLogSettings 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?: SystemLogSettingsState, opts?: CustomResourceOptions): SystemLogSettings@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[SystemLogSettingsActionArgs]] = None,
description: Optional[str] = None,
email_profiles: Optional[Sequence[str]] = None,
filter: Optional[str] = None,
http_profiles: Optional[Sequence[str]] = None,
location: Optional[SystemLogSettingsLocationArgs] = None,
name: Optional[str] = None,
send_to_panorama: Optional[bool] = None,
snmp_profiles: Optional[Sequence[str]] = None,
syslog_profiles: Optional[Sequence[str]] = None) -> SystemLogSettingsfunc GetSystemLogSettings(ctx *Context, name string, id IDInput, state *SystemLogSettingsState, opts ...ResourceOption) (*SystemLogSettings, error)public static SystemLogSettings Get(string name, Input<string> id, SystemLogSettingsState? state, CustomResourceOptions? opts = null)public static SystemLogSettings get(String name, Output<String> id, SystemLogSettingsState state, CustomResourceOptions options)resources: _: type: panos:SystemLogSettings 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.
- Actions
List<System
Log Settings Action> - Description string
- Email
Profiles List<string> - Filter string
- Http
Profiles List<string> - Location
System
Log Settings Location - The location of this object.
- Name string
- Send
To boolPanorama - Snmp
Profiles List<string> - Syslog
Profiles List<string>
- Actions
[]System
Log Settings Action Args - Description string
- Email
Profiles []string - Filter string
- Http
Profiles []string - Location
System
Log Settings Location Args - The location of this object.
- Name string
- Send
To boolPanorama - Snmp
Profiles []string - Syslog
Profiles []string
- actions
List<System
Log Settings Action> - description String
- email
Profiles List<String> - filter String
- http
Profiles List<String> - location
System
Log Settings Location - The location of this object.
- name String
- send
To BooleanPanorama - snmp
Profiles List<String> - syslog
Profiles List<String>
- actions
System
Log Settings Action[] - description string
- email
Profiles string[] - filter string
- http
Profiles string[] - location
System
Log Settings Location - The location of this object.
- name string
- send
To booleanPanorama - snmp
Profiles string[] - syslog
Profiles string[]
- actions
Sequence[System
Log Settings Action Args] - description str
- email_
profiles Sequence[str] - filter str
- http_
profiles Sequence[str] - location
System
Log Settings Location Args - The location of this object.
- name str
- send_
to_ boolpanorama - snmp_
profiles Sequence[str] - syslog_
profiles Sequence[str]
- actions List<Property Map>
- description String
- email
Profiles List<String> - filter String
- http
Profiles List<String> - location Property Map
- The location of this object.
- name String
- send
To BooleanPanorama - snmp
Profiles List<String> - syslog
Profiles List<String>
Supporting Types
SystemLogSettingsAction, SystemLogSettingsActionArgs
- name String
- type Property Map
SystemLogSettingsActionType, SystemLogSettingsActionTypeArgs
SystemLogSettingsActionTypeIntegration, SystemLogSettingsActionTypeIntegrationArgs
- Action string
- Action string
- action String
- action string
- action str
- action String
SystemLogSettingsLocation, SystemLogSettingsLocationArgs
- Panorama
System
Log Settings Location Panorama - Located in a panorama.
- Template
System
Log Settings Location Template - A shared resource located within a specific template
- Template
Stack SystemLog Settings Location Template Stack - Located in a specific template
- Template
Stack SystemVsys Log Settings Location Template Stack Vsys - Located in a specific template, device and vsys.
- Template
Vsys SystemLog Settings Location Template Vsys - Located in a specific template, device and vsys.
- Panorama
System
Log Settings Location Panorama - Located in a panorama.
- Template
System
Log Settings Location Template - A shared resource located within a specific template
- Template
Stack SystemLog Settings Location Template Stack - Located in a specific template
- Template
Stack SystemVsys Log Settings Location Template Stack Vsys - Located in a specific template, device and vsys.
- Template
Vsys SystemLog Settings Location Template Vsys - Located in a specific template, device and vsys.
- panorama
System
Log Settings Location Panorama - Located in a panorama.
- template
System
Log Settings Location Template - A shared resource located within a specific template
- template
Stack SystemLog Settings Location Template Stack - Located in a specific template
- template
Stack SystemVsys Log Settings Location Template Stack Vsys - Located in a specific template, device and vsys.
- template
Vsys SystemLog Settings Location Template Vsys - Located in a specific template, device and vsys.
- panorama
System
Log Settings Location Panorama - Located in a panorama.
- template
System
Log Settings Location Template - A shared resource located within a specific template
- template
Stack SystemLog Settings Location Template Stack - Located in a specific template
- template
Stack SystemVsys Log Settings Location Template Stack Vsys - Located in a specific template, device and vsys.
- template
Vsys SystemLog Settings Location Template Vsys - Located in a specific template, device and vsys.
- panorama
System
Log Settings Location Panorama - Located in a panorama.
- template
System
Log Settings Location Template - A shared resource located within a specific template
- template_
stack SystemLog Settings Location Template Stack - Located in a specific template
- template_
stack_ Systemvsys Log Settings Location Template Stack Vsys - Located in a specific template, device and vsys.
- template_
vsys SystemLog Settings Location Template Vsys - Located in a specific template, device and vsys.
- panorama Property Map
- Located in a panorama.
- template Property Map
- A shared resource located within a specific template
- template
Stack Property Map - Located in a specific template
- template
Stack Property MapVsys - Located in a specific template, device and vsys.
- template
Vsys Property Map - Located in a specific template, device and vsys.
SystemLogSettingsLocationTemplate, SystemLogSettingsLocationTemplateArgs
- Name string
- Specific Panorama template
- Panorama
Device string - Specific Panorama device
- Name string
- Specific Panorama template
- Panorama
Device string - Specific Panorama device
- name String
- Specific Panorama template
- panorama
Device String - Specific Panorama device
- name string
- Specific Panorama template
- panorama
Device string - Specific Panorama device
- name str
- Specific Panorama template
- panorama_
device str - Specific Panorama device
- name String
- Specific Panorama template
- panorama
Device String - Specific Panorama device
SystemLogSettingsLocationTemplateStack, SystemLogSettingsLocationTemplateStackArgs
- Name string
- The template stack
- Panorama
Device string - Specific Panorama device
- Name string
- The template stack
- Panorama
Device string - Specific Panorama device
- name String
- The template stack
- panorama
Device String - Specific Panorama device
- name string
- The template stack
- panorama
Device string - Specific Panorama device
- name str
- The template stack
- panorama_
device str - Specific Panorama device
- name String
- The template stack
- panorama
Device String - Specific Panorama device
SystemLogSettingsLocationTemplateStackVsys, SystemLogSettingsLocationTemplateStackVsysArgs
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Template
Stack string - The template stack
- Vsys string
- The vsys.
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Template
Stack string - The template stack
- Vsys string
- The vsys.
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- template
Stack String - The template stack
- vsys String
- The vsys.
- ngfw
Device string - The NGFW device
- panorama
Device string - Specific Panorama device
- template
Stack string - The template stack
- vsys string
- The vsys.
- ngfw_
device str - The NGFW device
- panorama_
device str - Specific Panorama device
- template_
stack str - The template stack
- vsys str
- The vsys.
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- template
Stack String - The template stack
- vsys String
- The vsys.
SystemLogSettingsLocationTemplateVsys, SystemLogSettingsLocationTemplateVsysArgs
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Template string
- Specific Panorama template
- Vsys string
- The vsys.
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Template string
- Specific Panorama template
- Vsys string
- The vsys.
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- template String
- Specific Panorama template
- vsys String
- The vsys.
- ngfw
Device string - The NGFW device
- panorama
Device string - Specific Panorama device
- template string
- Specific Panorama template
- vsys string
- The vsys.
- ngfw_
device str - The NGFW device
- panorama_
device str - Specific Panorama device
- template str
- Specific Panorama template
- vsys str
- The vsys.
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- template String
- Specific Panorama template
- vsys String
- The vsys.
Package Details
- Repository
- panos paloaltonetworks/terraform-provider-panos
- License
- Notes
- This Pulumi package is based on the
panosTerraform Provider.
