Accept/reject devices matching specified filter types.
Create SystemLogDeviceselector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SystemLogDeviceselector(name: string, args?: SystemLogDeviceselectorArgs, opts?: CustomResourceOptions);@overload
def SystemLogDeviceselector(resource_name: str,
args: Optional[SystemLogDeviceselectorArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SystemLogDeviceselector(resource_name: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
comment: Optional[str] = None,
devid: Optional[str] = None,
expire: Optional[str] = None,
fosid: Optional[float] = None,
srcip: Optional[str] = None,
srcip_mode: Optional[str] = None,
system_log_deviceselector_id: Optional[str] = None,
type: Optional[str] = None)func NewSystemLogDeviceselector(ctx *Context, name string, args *SystemLogDeviceselectorArgs, opts ...ResourceOption) (*SystemLogDeviceselector, error)public SystemLogDeviceselector(string name, SystemLogDeviceselectorArgs? args = null, CustomResourceOptions? opts = null)
public SystemLogDeviceselector(String name, SystemLogDeviceselectorArgs args)
public SystemLogDeviceselector(String name, SystemLogDeviceselectorArgs args, CustomResourceOptions options)
type: fortimanager:SystemLogDeviceselector
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 SystemLogDeviceselectorArgs
- 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 SystemLogDeviceselectorArgs
- 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 SystemLogDeviceselectorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SystemLogDeviceselectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SystemLogDeviceselectorArgs
- 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 systemLogDeviceselectorResource = new Fortimanager.SystemLogDeviceselector("systemLogDeviceselectorResource", new()
{
Action = "string",
Comment = "string",
Devid = "string",
Expire = "string",
Fosid = 0,
Srcip = "string",
SrcipMode = "string",
SystemLogDeviceselectorId = "string",
Type = "string",
});
example, err := fortimanager.NewSystemLogDeviceselector(ctx, "systemLogDeviceselectorResource", &fortimanager.SystemLogDeviceselectorArgs{
Action: pulumi.String("string"),
Comment: pulumi.String("string"),
Devid: pulumi.String("string"),
Expire: pulumi.String("string"),
Fosid: pulumi.Float64(0),
Srcip: pulumi.String("string"),
SrcipMode: pulumi.String("string"),
SystemLogDeviceselectorId: pulumi.String("string"),
Type: pulumi.String("string"),
})
var systemLogDeviceselectorResource = new SystemLogDeviceselector("systemLogDeviceselectorResource", SystemLogDeviceselectorArgs.builder()
.action("string")
.comment("string")
.devid("string")
.expire("string")
.fosid(0.0)
.srcip("string")
.srcipMode("string")
.systemLogDeviceselectorId("string")
.type("string")
.build());
system_log_deviceselector_resource = fortimanager.SystemLogDeviceselector("systemLogDeviceselectorResource",
action="string",
comment="string",
devid="string",
expire="string",
fosid=0,
srcip="string",
srcip_mode="string",
system_log_deviceselector_id="string",
type="string")
const systemLogDeviceselectorResource = new fortimanager.SystemLogDeviceselector("systemLogDeviceselectorResource", {
action: "string",
comment: "string",
devid: "string",
expire: "string",
fosid: 0,
srcip: "string",
srcipMode: "string",
systemLogDeviceselectorId: "string",
type: "string",
});
type: fortimanager:SystemLogDeviceselector
properties:
action: string
comment: string
devid: string
expire: string
fosid: 0
srcip: string
srcipMode: string
systemLogDeviceselectorId: string
type: string
SystemLogDeviceselector 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 SystemLogDeviceselector resource accepts the following input properties:
- Action string
- Include or exclude the matching devices. include - Include devices matching specified filter type. exclude - Exclude devices matching specified filter type. Valid values:
include,exclude. - Comment string
- Additional comment for the selector.
- Devid string
- Device ID. Wildcard matching supported.
- Expire string
- Expiration time of the selector.
- Fosid double
- ID of device selector entry.
- Srcip string
- Source IP or IP range.
- Srcip
Mode string - Apply the selector to UDP/514, TCP/514 or any mode. UDP514 - Clients logging through UDP port 514. TCP514 - Clients logging through TCP port 514. any - Clients logging through any mode. Valid values:
UDP514,TCP514,any. - System
Log stringDeviceselector Id - an identifier for the resource with format {{fosid}}.
- Type string
- Type of the selector. unspecified - Filter type unspecified. devid - Filter devices by DeviceID. srcip - Filter devices by source IP. Valid values:
unspecified,devid,srcip.
- Action string
- Include or exclude the matching devices. include - Include devices matching specified filter type. exclude - Exclude devices matching specified filter type. Valid values:
include,exclude. - Comment string
- Additional comment for the selector.
- Devid string
- Device ID. Wildcard matching supported.
- Expire string
- Expiration time of the selector.
- Fosid float64
- ID of device selector entry.
- Srcip string
- Source IP or IP range.
- Srcip
Mode string - Apply the selector to UDP/514, TCP/514 or any mode. UDP514 - Clients logging through UDP port 514. TCP514 - Clients logging through TCP port 514. any - Clients logging through any mode. Valid values:
UDP514,TCP514,any. - System
Log stringDeviceselector Id - an identifier for the resource with format {{fosid}}.
- Type string
- Type of the selector. unspecified - Filter type unspecified. devid - Filter devices by DeviceID. srcip - Filter devices by source IP. Valid values:
unspecified,devid,srcip.
- action String
- Include or exclude the matching devices. include - Include devices matching specified filter type. exclude - Exclude devices matching specified filter type. Valid values:
include,exclude. - comment String
- Additional comment for the selector.
- devid String
- Device ID. Wildcard matching supported.
- expire String
- Expiration time of the selector.
- fosid Double
- ID of device selector entry.
- srcip String
- Source IP or IP range.
- srcip
Mode String - Apply the selector to UDP/514, TCP/514 or any mode. UDP514 - Clients logging through UDP port 514. TCP514 - Clients logging through TCP port 514. any - Clients logging through any mode. Valid values:
UDP514,TCP514,any. - system
Log StringDeviceselector Id - an identifier for the resource with format {{fosid}}.
- type String
- Type of the selector. unspecified - Filter type unspecified. devid - Filter devices by DeviceID. srcip - Filter devices by source IP. Valid values:
unspecified,devid,srcip.
- action string
- Include or exclude the matching devices. include - Include devices matching specified filter type. exclude - Exclude devices matching specified filter type. Valid values:
include,exclude. - comment string
- Additional comment for the selector.
- devid string
- Device ID. Wildcard matching supported.
- expire string
- Expiration time of the selector.
- fosid number
- ID of device selector entry.
- srcip string
- Source IP or IP range.
- srcip
Mode string - Apply the selector to UDP/514, TCP/514 or any mode. UDP514 - Clients logging through UDP port 514. TCP514 - Clients logging through TCP port 514. any - Clients logging through any mode. Valid values:
UDP514,TCP514,any. - system
Log stringDeviceselector Id - an identifier for the resource with format {{fosid}}.
- type string
- Type of the selector. unspecified - Filter type unspecified. devid - Filter devices by DeviceID. srcip - Filter devices by source IP. Valid values:
unspecified,devid,srcip.
- action str
- Include or exclude the matching devices. include - Include devices matching specified filter type. exclude - Exclude devices matching specified filter type. Valid values:
include,exclude. - comment str
- Additional comment for the selector.
- devid str
- Device ID. Wildcard matching supported.
- expire str
- Expiration time of the selector.
- fosid float
- ID of device selector entry.
- srcip str
- Source IP or IP range.
- srcip_
mode str - Apply the selector to UDP/514, TCP/514 or any mode. UDP514 - Clients logging through UDP port 514. TCP514 - Clients logging through TCP port 514. any - Clients logging through any mode. Valid values:
UDP514,TCP514,any. - system_
log_ strdeviceselector_ id - an identifier for the resource with format {{fosid}}.
- type str
- Type of the selector. unspecified - Filter type unspecified. devid - Filter devices by DeviceID. srcip - Filter devices by source IP. Valid values:
unspecified,devid,srcip.
- action String
- Include or exclude the matching devices. include - Include devices matching specified filter type. exclude - Exclude devices matching specified filter type. Valid values:
include,exclude. - comment String
- Additional comment for the selector.
- devid String
- Device ID. Wildcard matching supported.
- expire String
- Expiration time of the selector.
- fosid Number
- ID of device selector entry.
- srcip String
- Source IP or IP range.
- srcip
Mode String - Apply the selector to UDP/514, TCP/514 or any mode. UDP514 - Clients logging through UDP port 514. TCP514 - Clients logging through TCP port 514. any - Clients logging through any mode. Valid values:
UDP514,TCP514,any. - system
Log StringDeviceselector Id - an identifier for the resource with format {{fosid}}.
- type String
- Type of the selector. unspecified - Filter type unspecified. devid - Filter devices by DeviceID. srcip - Filter devices by source IP. Valid values:
unspecified,devid,srcip.
Outputs
All input properties are implicitly available as output properties. Additionally, the SystemLogDeviceselector 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 SystemLogDeviceselector Resource
Get an existing SystemLogDeviceselector 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?: SystemLogDeviceselectorState, opts?: CustomResourceOptions): SystemLogDeviceselector@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
comment: Optional[str] = None,
devid: Optional[str] = None,
expire: Optional[str] = None,
fosid: Optional[float] = None,
srcip: Optional[str] = None,
srcip_mode: Optional[str] = None,
system_log_deviceselector_id: Optional[str] = None,
type: Optional[str] = None) -> SystemLogDeviceselectorfunc GetSystemLogDeviceselector(ctx *Context, name string, id IDInput, state *SystemLogDeviceselectorState, opts ...ResourceOption) (*SystemLogDeviceselector, error)public static SystemLogDeviceselector Get(string name, Input<string> id, SystemLogDeviceselectorState? state, CustomResourceOptions? opts = null)public static SystemLogDeviceselector get(String name, Output<String> id, SystemLogDeviceselectorState state, CustomResourceOptions options)resources: _: type: fortimanager:SystemLogDeviceselector 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.
- Action string
- Include or exclude the matching devices. include - Include devices matching specified filter type. exclude - Exclude devices matching specified filter type. Valid values:
include,exclude. - Comment string
- Additional comment for the selector.
- Devid string
- Device ID. Wildcard matching supported.
- Expire string
- Expiration time of the selector.
- Fosid double
- ID of device selector entry.
- Srcip string
- Source IP or IP range.
- Srcip
Mode string - Apply the selector to UDP/514, TCP/514 or any mode. UDP514 - Clients logging through UDP port 514. TCP514 - Clients logging through TCP port 514. any - Clients logging through any mode. Valid values:
UDP514,TCP514,any. - System
Log stringDeviceselector Id - an identifier for the resource with format {{fosid}}.
- Type string
- Type of the selector. unspecified - Filter type unspecified. devid - Filter devices by DeviceID. srcip - Filter devices by source IP. Valid values:
unspecified,devid,srcip.
- Action string
- Include or exclude the matching devices. include - Include devices matching specified filter type. exclude - Exclude devices matching specified filter type. Valid values:
include,exclude. - Comment string
- Additional comment for the selector.
- Devid string
- Device ID. Wildcard matching supported.
- Expire string
- Expiration time of the selector.
- Fosid float64
- ID of device selector entry.
- Srcip string
- Source IP or IP range.
- Srcip
Mode string - Apply the selector to UDP/514, TCP/514 or any mode. UDP514 - Clients logging through UDP port 514. TCP514 - Clients logging through TCP port 514. any - Clients logging through any mode. Valid values:
UDP514,TCP514,any. - System
Log stringDeviceselector Id - an identifier for the resource with format {{fosid}}.
- Type string
- Type of the selector. unspecified - Filter type unspecified. devid - Filter devices by DeviceID. srcip - Filter devices by source IP. Valid values:
unspecified,devid,srcip.
- action String
- Include or exclude the matching devices. include - Include devices matching specified filter type. exclude - Exclude devices matching specified filter type. Valid values:
include,exclude. - comment String
- Additional comment for the selector.
- devid String
- Device ID. Wildcard matching supported.
- expire String
- Expiration time of the selector.
- fosid Double
- ID of device selector entry.
- srcip String
- Source IP or IP range.
- srcip
Mode String - Apply the selector to UDP/514, TCP/514 or any mode. UDP514 - Clients logging through UDP port 514. TCP514 - Clients logging through TCP port 514. any - Clients logging through any mode. Valid values:
UDP514,TCP514,any. - system
Log StringDeviceselector Id - an identifier for the resource with format {{fosid}}.
- type String
- Type of the selector. unspecified - Filter type unspecified. devid - Filter devices by DeviceID. srcip - Filter devices by source IP. Valid values:
unspecified,devid,srcip.
- action string
- Include or exclude the matching devices. include - Include devices matching specified filter type. exclude - Exclude devices matching specified filter type. Valid values:
include,exclude. - comment string
- Additional comment for the selector.
- devid string
- Device ID. Wildcard matching supported.
- expire string
- Expiration time of the selector.
- fosid number
- ID of device selector entry.
- srcip string
- Source IP or IP range.
- srcip
Mode string - Apply the selector to UDP/514, TCP/514 or any mode. UDP514 - Clients logging through UDP port 514. TCP514 - Clients logging through TCP port 514. any - Clients logging through any mode. Valid values:
UDP514,TCP514,any. - system
Log stringDeviceselector Id - an identifier for the resource with format {{fosid}}.
- type string
- Type of the selector. unspecified - Filter type unspecified. devid - Filter devices by DeviceID. srcip - Filter devices by source IP. Valid values:
unspecified,devid,srcip.
- action str
- Include or exclude the matching devices. include - Include devices matching specified filter type. exclude - Exclude devices matching specified filter type. Valid values:
include,exclude. - comment str
- Additional comment for the selector.
- devid str
- Device ID. Wildcard matching supported.
- expire str
- Expiration time of the selector.
- fosid float
- ID of device selector entry.
- srcip str
- Source IP or IP range.
- srcip_
mode str - Apply the selector to UDP/514, TCP/514 or any mode. UDP514 - Clients logging through UDP port 514. TCP514 - Clients logging through TCP port 514. any - Clients logging through any mode. Valid values:
UDP514,TCP514,any. - system_
log_ strdeviceselector_ id - an identifier for the resource with format {{fosid}}.
- type str
- Type of the selector. unspecified - Filter type unspecified. devid - Filter devices by DeviceID. srcip - Filter devices by source IP. Valid values:
unspecified,devid,srcip.
- action String
- Include or exclude the matching devices. include - Include devices matching specified filter type. exclude - Exclude devices matching specified filter type. Valid values:
include,exclude. - comment String
- Additional comment for the selector.
- devid String
- Device ID. Wildcard matching supported.
- expire String
- Expiration time of the selector.
- fosid Number
- ID of device selector entry.
- srcip String
- Source IP or IP range.
- srcip
Mode String - Apply the selector to UDP/514, TCP/514 or any mode. UDP514 - Clients logging through UDP port 514. TCP514 - Clients logging through TCP port 514. any - Clients logging through any mode. Valid values:
UDP514,TCP514,any. - system
Log StringDeviceselector Id - an identifier for the resource with format {{fosid}}.
- type String
- Type of the selector. unspecified - Filter type unspecified. devid - Filter devices by DeviceID. srcip - Filter devices by source IP. Valid values:
unspecified,devid,srcip.
Import
System LogDeviceSelector can be imported using any of these accepted formats:
$ export “FORTIMANAGER_IMPORT_TABLE”=“true”
$ pulumi import fortimanager:index/systemLogDeviceselector:SystemLogDeviceselector labelname {{fosid}}
$ unset “FORTIMANAGER_IMPORT_TABLE”
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortimanager fortinetdev/terraform-provider-fortimanager
- License
- Notes
- This Pulumi package is based on the
fortimanagerTerraform Provider.
