1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectLogNpuserverServergroup
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

fortimanager.ObjectLogNpuserverServergroup

Explore with Pulumi AI

create server group.

This resource is a sub resource for variable server_group of resource fortimanager.ObjectLogNpuserver. Conflict and overwrite may occur if use both of them.

Create ObjectLogNpuserverServergroup Resource

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

Constructor syntax

new ObjectLogNpuserverServergroup(name: string, args?: ObjectLogNpuserverServergroupArgs, opts?: CustomResourceOptions);
@overload
def ObjectLogNpuserverServergroup(resource_name: str,
                                  args: Optional[ObjectLogNpuserverServergroupArgs] = None,
                                  opts: Optional[ResourceOptions] = None)

@overload
def ObjectLogNpuserverServergroup(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  adom: Optional[str] = None,
                                  group_name: Optional[str] = None,
                                  log_format: Optional[str] = None,
                                  log_gen_event: Optional[str] = None,
                                  log_mode: Optional[str] = None,
                                  log_tx_mode: Optional[str] = None,
                                  log_user_info: Optional[str] = None,
                                  object_log_npuserver_servergroup_id: Optional[str] = None,
                                  scopetype: Optional[str] = None,
                                  server_number: Optional[float] = None,
                                  server_start_id: Optional[float] = None,
                                  sw_log_flags: Optional[str] = None)
func NewObjectLogNpuserverServergroup(ctx *Context, name string, args *ObjectLogNpuserverServergroupArgs, opts ...ResourceOption) (*ObjectLogNpuserverServergroup, error)
public ObjectLogNpuserverServergroup(string name, ObjectLogNpuserverServergroupArgs? args = null, CustomResourceOptions? opts = null)
public ObjectLogNpuserverServergroup(String name, ObjectLogNpuserverServergroupArgs args)
public ObjectLogNpuserverServergroup(String name, ObjectLogNpuserverServergroupArgs args, CustomResourceOptions options)
type: fortimanager:ObjectLogNpuserverServergroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args ObjectLogNpuserverServergroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args ObjectLogNpuserverServergroupArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args ObjectLogNpuserverServergroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args ObjectLogNpuserverServergroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ObjectLogNpuserverServergroupArgs
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 objectLogNpuserverServergroupResource = new Fortimanager.ObjectLogNpuserverServergroup("objectLogNpuserverServergroupResource", new()
{
    Adom = "string",
    GroupName = "string",
    LogFormat = "string",
    LogGenEvent = "string",
    LogMode = "string",
    LogTxMode = "string",
    LogUserInfo = "string",
    ObjectLogNpuserverServergroupId = "string",
    Scopetype = "string",
    ServerNumber = 0,
    ServerStartId = 0,
    SwLogFlags = "string",
});
Copy
example, err := fortimanager.NewObjectLogNpuserverServergroup(ctx, "objectLogNpuserverServergroupResource", &fortimanager.ObjectLogNpuserverServergroupArgs{
Adom: pulumi.String("string"),
GroupName: pulumi.String("string"),
LogFormat: pulumi.String("string"),
LogGenEvent: pulumi.String("string"),
LogMode: pulumi.String("string"),
LogTxMode: pulumi.String("string"),
LogUserInfo: pulumi.String("string"),
ObjectLogNpuserverServergroupId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
ServerNumber: pulumi.Float64(0),
ServerStartId: pulumi.Float64(0),
SwLogFlags: pulumi.String("string"),
})
Copy
var objectLogNpuserverServergroupResource = new ObjectLogNpuserverServergroup("objectLogNpuserverServergroupResource", ObjectLogNpuserverServergroupArgs.builder()
    .adom("string")
    .groupName("string")
    .logFormat("string")
    .logGenEvent("string")
    .logMode("string")
    .logTxMode("string")
    .logUserInfo("string")
    .objectLogNpuserverServergroupId("string")
    .scopetype("string")
    .serverNumber(0)
    .serverStartId(0)
    .swLogFlags("string")
    .build());
Copy
object_log_npuserver_servergroup_resource = fortimanager.ObjectLogNpuserverServergroup("objectLogNpuserverServergroupResource",
    adom="string",
    group_name="string",
    log_format="string",
    log_gen_event="string",
    log_mode="string",
    log_tx_mode="string",
    log_user_info="string",
    object_log_npuserver_servergroup_id="string",
    scopetype="string",
    server_number=0,
    server_start_id=0,
    sw_log_flags="string")
Copy
const objectLogNpuserverServergroupResource = new fortimanager.ObjectLogNpuserverServergroup("objectLogNpuserverServergroupResource", {
    adom: "string",
    groupName: "string",
    logFormat: "string",
    logGenEvent: "string",
    logMode: "string",
    logTxMode: "string",
    logUserInfo: "string",
    objectLogNpuserverServergroupId: "string",
    scopetype: "string",
    serverNumber: 0,
    serverStartId: 0,
    swLogFlags: "string",
});
Copy
type: fortimanager:ObjectLogNpuserverServergroup
properties:
    adom: string
    groupName: string
    logFormat: string
    logGenEvent: string
    logMode: string
    logTxMode: string
    logUserInfo: string
    objectLogNpuserverServergroupId: string
    scopetype: string
    serverNumber: 0
    serverStartId: 0
    swLogFlags: string
Copy

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

Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
GroupName string
server group name.
LogFormat string
Set the log format Valid values: syslog, netflow.
LogGenEvent string
Enable/disbale generating event for Per-Mapping log Valid values: disable, enable.
LogMode string
Set the log mode Valid values: per-session, per-nat-mapping, per-session-ending.
LogTxMode string
Configure log transmit mode. Valid values: multicast, roundrobin.
LogUserInfo string
Enable/disbale logging user information. Valid values: disable, enable.
ObjectLogNpuserverServergroupId string
an identifier for the resource with format {{group_name}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
ServerNumber double
server number in this group.
ServerStartId double
the start id of the continuous server series in this group,[1,16].
SwLogFlags string
Set flags for software logging via driver. Valid values: tcp-udp-only, enable-all-log, disable-all-log.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
GroupName string
server group name.
LogFormat string
Set the log format Valid values: syslog, netflow.
LogGenEvent string
Enable/disbale generating event for Per-Mapping log Valid values: disable, enable.
LogMode string
Set the log mode Valid values: per-session, per-nat-mapping, per-session-ending.
LogTxMode string
Configure log transmit mode. Valid values: multicast, roundrobin.
LogUserInfo string
Enable/disbale logging user information. Valid values: disable, enable.
ObjectLogNpuserverServergroupId string
an identifier for the resource with format {{group_name}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
ServerNumber float64
server number in this group.
ServerStartId float64
the start id of the continuous server series in this group,[1,16].
SwLogFlags string
Set flags for software logging via driver. Valid values: tcp-udp-only, enable-all-log, disable-all-log.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
groupName String
server group name.
logFormat String
Set the log format Valid values: syslog, netflow.
logGenEvent String
Enable/disbale generating event for Per-Mapping log Valid values: disable, enable.
logMode String
Set the log mode Valid values: per-session, per-nat-mapping, per-session-ending.
logTxMode String
Configure log transmit mode. Valid values: multicast, roundrobin.
logUserInfo String
Enable/disbale logging user information. Valid values: disable, enable.
objectLogNpuserverServergroupId String
an identifier for the resource with format {{group_name}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
serverNumber Double
server number in this group.
serverStartId Double
the start id of the continuous server series in this group,[1,16].
swLogFlags String
Set flags for software logging via driver. Valid values: tcp-udp-only, enable-all-log, disable-all-log.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
groupName string
server group name.
logFormat string
Set the log format Valid values: syslog, netflow.
logGenEvent string
Enable/disbale generating event for Per-Mapping log Valid values: disable, enable.
logMode string
Set the log mode Valid values: per-session, per-nat-mapping, per-session-ending.
logTxMode string
Configure log transmit mode. Valid values: multicast, roundrobin.
logUserInfo string
Enable/disbale logging user information. Valid values: disable, enable.
objectLogNpuserverServergroupId string
an identifier for the resource with format {{group_name}}.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
serverNumber number
server number in this group.
serverStartId number
the start id of the continuous server series in this group,[1,16].
swLogFlags string
Set flags for software logging via driver. Valid values: tcp-udp-only, enable-all-log, disable-all-log.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
group_name str
server group name.
log_format str
Set the log format Valid values: syslog, netflow.
log_gen_event str
Enable/disbale generating event for Per-Mapping log Valid values: disable, enable.
log_mode str
Set the log mode Valid values: per-session, per-nat-mapping, per-session-ending.
log_tx_mode str
Configure log transmit mode. Valid values: multicast, roundrobin.
log_user_info str
Enable/disbale logging user information. Valid values: disable, enable.
object_log_npuserver_servergroup_id str
an identifier for the resource with format {{group_name}}.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
server_number float
server number in this group.
server_start_id float
the start id of the continuous server series in this group,[1,16].
sw_log_flags str
Set flags for software logging via driver. Valid values: tcp-udp-only, enable-all-log, disable-all-log.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
groupName String
server group name.
logFormat String
Set the log format Valid values: syslog, netflow.
logGenEvent String
Enable/disbale generating event for Per-Mapping log Valid values: disable, enable.
logMode String
Set the log mode Valid values: per-session, per-nat-mapping, per-session-ending.
logTxMode String
Configure log transmit mode. Valid values: multicast, roundrobin.
logUserInfo String
Enable/disbale logging user information. Valid values: disable, enable.
objectLogNpuserverServergroupId String
an identifier for the resource with format {{group_name}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
serverNumber Number
server number in this group.
serverStartId Number
the start id of the continuous server series in this group,[1,16].
swLogFlags String
Set flags for software logging via driver. Valid values: tcp-udp-only, enable-all-log, disable-all-log.

Outputs

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

Get an existing ObjectLogNpuserverServergroup 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?: ObjectLogNpuserverServergroupState, opts?: CustomResourceOptions): ObjectLogNpuserverServergroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        group_name: Optional[str] = None,
        log_format: Optional[str] = None,
        log_gen_event: Optional[str] = None,
        log_mode: Optional[str] = None,
        log_tx_mode: Optional[str] = None,
        log_user_info: Optional[str] = None,
        object_log_npuserver_servergroup_id: Optional[str] = None,
        scopetype: Optional[str] = None,
        server_number: Optional[float] = None,
        server_start_id: Optional[float] = None,
        sw_log_flags: Optional[str] = None) -> ObjectLogNpuserverServergroup
func GetObjectLogNpuserverServergroup(ctx *Context, name string, id IDInput, state *ObjectLogNpuserverServergroupState, opts ...ResourceOption) (*ObjectLogNpuserverServergroup, error)
public static ObjectLogNpuserverServergroup Get(string name, Input<string> id, ObjectLogNpuserverServergroupState? state, CustomResourceOptions? opts = null)
public static ObjectLogNpuserverServergroup get(String name, Output<String> id, ObjectLogNpuserverServergroupState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectLogNpuserverServergroup    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
GroupName string
server group name.
LogFormat string
Set the log format Valid values: syslog, netflow.
LogGenEvent string
Enable/disbale generating event for Per-Mapping log Valid values: disable, enable.
LogMode string
Set the log mode Valid values: per-session, per-nat-mapping, per-session-ending.
LogTxMode string
Configure log transmit mode. Valid values: multicast, roundrobin.
LogUserInfo string
Enable/disbale logging user information. Valid values: disable, enable.
ObjectLogNpuserverServergroupId string
an identifier for the resource with format {{group_name}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
ServerNumber double
server number in this group.
ServerStartId double
the start id of the continuous server series in this group,[1,16].
SwLogFlags string
Set flags for software logging via driver. Valid values: tcp-udp-only, enable-all-log, disable-all-log.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
GroupName string
server group name.
LogFormat string
Set the log format Valid values: syslog, netflow.
LogGenEvent string
Enable/disbale generating event for Per-Mapping log Valid values: disable, enable.
LogMode string
Set the log mode Valid values: per-session, per-nat-mapping, per-session-ending.
LogTxMode string
Configure log transmit mode. Valid values: multicast, roundrobin.
LogUserInfo string
Enable/disbale logging user information. Valid values: disable, enable.
ObjectLogNpuserverServergroupId string
an identifier for the resource with format {{group_name}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
ServerNumber float64
server number in this group.
ServerStartId float64
the start id of the continuous server series in this group,[1,16].
SwLogFlags string
Set flags for software logging via driver. Valid values: tcp-udp-only, enable-all-log, disable-all-log.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
groupName String
server group name.
logFormat String
Set the log format Valid values: syslog, netflow.
logGenEvent String
Enable/disbale generating event for Per-Mapping log Valid values: disable, enable.
logMode String
Set the log mode Valid values: per-session, per-nat-mapping, per-session-ending.
logTxMode String
Configure log transmit mode. Valid values: multicast, roundrobin.
logUserInfo String
Enable/disbale logging user information. Valid values: disable, enable.
objectLogNpuserverServergroupId String
an identifier for the resource with format {{group_name}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
serverNumber Double
server number in this group.
serverStartId Double
the start id of the continuous server series in this group,[1,16].
swLogFlags String
Set flags for software logging via driver. Valid values: tcp-udp-only, enable-all-log, disable-all-log.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
groupName string
server group name.
logFormat string
Set the log format Valid values: syslog, netflow.
logGenEvent string
Enable/disbale generating event for Per-Mapping log Valid values: disable, enable.
logMode string
Set the log mode Valid values: per-session, per-nat-mapping, per-session-ending.
logTxMode string
Configure log transmit mode. Valid values: multicast, roundrobin.
logUserInfo string
Enable/disbale logging user information. Valid values: disable, enable.
objectLogNpuserverServergroupId string
an identifier for the resource with format {{group_name}}.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
serverNumber number
server number in this group.
serverStartId number
the start id of the continuous server series in this group,[1,16].
swLogFlags string
Set flags for software logging via driver. Valid values: tcp-udp-only, enable-all-log, disable-all-log.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
group_name str
server group name.
log_format str
Set the log format Valid values: syslog, netflow.
log_gen_event str
Enable/disbale generating event for Per-Mapping log Valid values: disable, enable.
log_mode str
Set the log mode Valid values: per-session, per-nat-mapping, per-session-ending.
log_tx_mode str
Configure log transmit mode. Valid values: multicast, roundrobin.
log_user_info str
Enable/disbale logging user information. Valid values: disable, enable.
object_log_npuserver_servergroup_id str
an identifier for the resource with format {{group_name}}.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
server_number float
server number in this group.
server_start_id float
the start id of the continuous server series in this group,[1,16].
sw_log_flags str
Set flags for software logging via driver. Valid values: tcp-udp-only, enable-all-log, disable-all-log.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
groupName String
server group name.
logFormat String
Set the log format Valid values: syslog, netflow.
logGenEvent String
Enable/disbale generating event for Per-Mapping log Valid values: disable, enable.
logMode String
Set the log mode Valid values: per-session, per-nat-mapping, per-session-ending.
logTxMode String
Configure log transmit mode. Valid values: multicast, roundrobin.
logUserInfo String
Enable/disbale logging user information. Valid values: disable, enable.
objectLogNpuserverServergroupId String
an identifier for the resource with format {{group_name}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
serverNumber Number
server number in this group.
serverStartId Number
the start id of the continuous server series in this group,[1,16].
swLogFlags String
Set flags for software logging via driver. Valid values: tcp-udp-only, enable-all-log, disable-all-log.

Import

ObjectLog NpuServerServerGroup can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectLogNpuserverServergroup:ObjectLogNpuserverServergroup labelname {{group_name}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

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 fortimanager Terraform Provider.