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

fortimanager.ObjectFirewallServiceGroup

Explore with Pulumi AI

Configure service groups.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trname = new fortimanager.ObjectFirewallServiceGroup("trname", {
    color: 1,
    comment: "terraform-comment",
    members: ["ALL"],
    proxy: "disable",
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname = fortimanager.ObjectFirewallServiceGroup("trname",
    color=1,
    comment="terraform-comment",
    members=["ALL"],
    proxy="disable")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fortimanager.NewObjectFirewallServiceGroup(ctx, "trname", &fortimanager.ObjectFirewallServiceGroupArgs{
			Color:   pulumi.Float64(1),
			Comment: pulumi.String("terraform-comment"),
			Members: pulumi.StringArray{
				pulumi.String("ALL"),
			},
			Proxy: pulumi.String("disable"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trname = new Fortimanager.ObjectFirewallServiceGroup("trname", new()
    {
        Color = 1,
        Comment = "terraform-comment",
        Members = new[]
        {
            "ALL",
        },
        Proxy = "disable",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectFirewallServiceGroup;
import com.pulumi.fortimanager.ObjectFirewallServiceGroupArgs;
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 trname = new ObjectFirewallServiceGroup("trname", ObjectFirewallServiceGroupArgs.builder()
            .color(1)
            .comment("terraform-comment")
            .members("ALL")
            .proxy("disable")
            .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:ObjectFirewallServiceGroup
    properties:
      color: 1
      comment: terraform-comment
      members:
        - ALL
      proxy: disable
Copy

Create ObjectFirewallServiceGroup Resource

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

Constructor syntax

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

@overload
def ObjectFirewallServiceGroup(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               adom: Optional[str] = None,
                               color: Optional[float] = None,
                               comment: Optional[str] = None,
                               fabric_object: Optional[str] = None,
                               global_object: Optional[float] = None,
                               members: Optional[Sequence[str]] = None,
                               name: Optional[str] = None,
                               object_firewall_service_group_id: Optional[str] = None,
                               proxy: Optional[str] = None,
                               scopetype: Optional[str] = None,
                               uuid: Optional[str] = None)
func NewObjectFirewallServiceGroup(ctx *Context, name string, args *ObjectFirewallServiceGroupArgs, opts ...ResourceOption) (*ObjectFirewallServiceGroup, error)
public ObjectFirewallServiceGroup(string name, ObjectFirewallServiceGroupArgs? args = null, CustomResourceOptions? opts = null)
public ObjectFirewallServiceGroup(String name, ObjectFirewallServiceGroupArgs args)
public ObjectFirewallServiceGroup(String name, ObjectFirewallServiceGroupArgs args, CustomResourceOptions options)
type: fortimanager:ObjectFirewallServiceGroup
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 ObjectFirewallServiceGroupArgs
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 ObjectFirewallServiceGroupArgs
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 ObjectFirewallServiceGroupArgs
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 ObjectFirewallServiceGroupArgs
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. ObjectFirewallServiceGroupArgs
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 objectFirewallServiceGroupResource = new Fortimanager.ObjectFirewallServiceGroup("objectFirewallServiceGroupResource", new()
{
    Adom = "string",
    Color = 0,
    Comment = "string",
    FabricObject = "string",
    GlobalObject = 0,
    Members = new[]
    {
        "string",
    },
    Name = "string",
    ObjectFirewallServiceGroupId = "string",
    Proxy = "string",
    Scopetype = "string",
    Uuid = "string",
});
Copy
example, err := fortimanager.NewObjectFirewallServiceGroup(ctx, "objectFirewallServiceGroupResource", &fortimanager.ObjectFirewallServiceGroupArgs{
Adom: pulumi.String("string"),
Color: pulumi.Float64(0),
Comment: pulumi.String("string"),
FabricObject: pulumi.String("string"),
GlobalObject: pulumi.Float64(0),
Members: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
ObjectFirewallServiceGroupId: pulumi.String("string"),
Proxy: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Uuid: pulumi.String("string"),
})
Copy
var objectFirewallServiceGroupResource = new ObjectFirewallServiceGroup("objectFirewallServiceGroupResource", ObjectFirewallServiceGroupArgs.builder()
    .adom("string")
    .color(0)
    .comment("string")
    .fabricObject("string")
    .globalObject(0)
    .members("string")
    .name("string")
    .objectFirewallServiceGroupId("string")
    .proxy("string")
    .scopetype("string")
    .uuid("string")
    .build());
Copy
object_firewall_service_group_resource = fortimanager.ObjectFirewallServiceGroup("objectFirewallServiceGroupResource",
    adom="string",
    color=0,
    comment="string",
    fabric_object="string",
    global_object=0,
    members=["string"],
    name="string",
    object_firewall_service_group_id="string",
    proxy="string",
    scopetype="string",
    uuid="string")
Copy
const objectFirewallServiceGroupResource = new fortimanager.ObjectFirewallServiceGroup("objectFirewallServiceGroupResource", {
    adom: "string",
    color: 0,
    comment: "string",
    fabricObject: "string",
    globalObject: 0,
    members: ["string"],
    name: "string",
    objectFirewallServiceGroupId: "string",
    proxy: "string",
    scopetype: "string",
    uuid: "string",
});
Copy
type: fortimanager:ObjectFirewallServiceGroup
properties:
    adom: string
    color: 0
    comment: string
    fabricObject: string
    globalObject: 0
    members:
        - string
    name: string
    objectFirewallServiceGroupId: string
    proxy: string
    scopetype: string
    uuid: string
Copy

ObjectFirewallServiceGroup 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 ObjectFirewallServiceGroup 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.
Color double
Color of icon on the GUI.
Comment string
Comment.
FabricObject string
Security Fabric global object setting. Valid values: disable, enable.
GlobalObject double
Global Object.
Members List<string>
Service objects contained within the group.
Name string
Address group name.
ObjectFirewallServiceGroupId string
an identifier for the resource with format {{name}}.
Proxy string
Enable/disable web proxy service group. Valid values: disable, enable.
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.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Color float64
Color of icon on the GUI.
Comment string
Comment.
FabricObject string
Security Fabric global object setting. Valid values: disable, enable.
GlobalObject float64
Global Object.
Members []string
Service objects contained within the group.
Name string
Address group name.
ObjectFirewallServiceGroupId string
an identifier for the resource with format {{name}}.
Proxy string
Enable/disable web proxy service group. Valid values: disable, enable.
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.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color Double
Color of icon on the GUI.
comment String
Comment.
fabricObject String
Security Fabric global object setting. Valid values: disable, enable.
globalObject Double
Global Object.
members List<String>
Service objects contained within the group.
name String
Address group name.
objectFirewallServiceGroupId String
an identifier for the resource with format {{name}}.
proxy String
Enable/disable web proxy service group. Valid values: disable, enable.
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.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color number
Color of icon on the GUI.
comment string
Comment.
fabricObject string
Security Fabric global object setting. Valid values: disable, enable.
globalObject number
Global Object.
members string[]
Service objects contained within the group.
name string
Address group name.
objectFirewallServiceGroupId string
an identifier for the resource with format {{name}}.
proxy string
Enable/disable web proxy service group. Valid values: disable, enable.
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.
uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color float
Color of icon on the GUI.
comment str
Comment.
fabric_object str
Security Fabric global object setting. Valid values: disable, enable.
global_object float
Global Object.
members Sequence[str]
Service objects contained within the group.
name str
Address group name.
object_firewall_service_group_id str
an identifier for the resource with format {{name}}.
proxy str
Enable/disable web proxy service group. Valid values: disable, enable.
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.
uuid str
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color Number
Color of icon on the GUI.
comment String
Comment.
fabricObject String
Security Fabric global object setting. Valid values: disable, enable.
globalObject Number
Global Object.
members List<String>
Service objects contained within the group.
name String
Address group name.
objectFirewallServiceGroupId String
an identifier for the resource with format {{name}}.
proxy String
Enable/disable web proxy service group. Valid values: disable, enable.
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.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).

Outputs

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

Get an existing ObjectFirewallServiceGroup 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?: ObjectFirewallServiceGroupState, opts?: CustomResourceOptions): ObjectFirewallServiceGroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        color: Optional[float] = None,
        comment: Optional[str] = None,
        fabric_object: Optional[str] = None,
        global_object: Optional[float] = None,
        members: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        object_firewall_service_group_id: Optional[str] = None,
        proxy: Optional[str] = None,
        scopetype: Optional[str] = None,
        uuid: Optional[str] = None) -> ObjectFirewallServiceGroup
func GetObjectFirewallServiceGroup(ctx *Context, name string, id IDInput, state *ObjectFirewallServiceGroupState, opts ...ResourceOption) (*ObjectFirewallServiceGroup, error)
public static ObjectFirewallServiceGroup Get(string name, Input<string> id, ObjectFirewallServiceGroupState? state, CustomResourceOptions? opts = null)
public static ObjectFirewallServiceGroup get(String name, Output<String> id, ObjectFirewallServiceGroupState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectFirewallServiceGroup    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.
Color double
Color of icon on the GUI.
Comment string
Comment.
FabricObject string
Security Fabric global object setting. Valid values: disable, enable.
GlobalObject double
Global Object.
Members List<string>
Service objects contained within the group.
Name string
Address group name.
ObjectFirewallServiceGroupId string
an identifier for the resource with format {{name}}.
Proxy string
Enable/disable web proxy service group. Valid values: disable, enable.
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.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Color float64
Color of icon on the GUI.
Comment string
Comment.
FabricObject string
Security Fabric global object setting. Valid values: disable, enable.
GlobalObject float64
Global Object.
Members []string
Service objects contained within the group.
Name string
Address group name.
ObjectFirewallServiceGroupId string
an identifier for the resource with format {{name}}.
Proxy string
Enable/disable web proxy service group. Valid values: disable, enable.
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.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color Double
Color of icon on the GUI.
comment String
Comment.
fabricObject String
Security Fabric global object setting. Valid values: disable, enable.
globalObject Double
Global Object.
members List<String>
Service objects contained within the group.
name String
Address group name.
objectFirewallServiceGroupId String
an identifier for the resource with format {{name}}.
proxy String
Enable/disable web proxy service group. Valid values: disable, enable.
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.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color number
Color of icon on the GUI.
comment string
Comment.
fabricObject string
Security Fabric global object setting. Valid values: disable, enable.
globalObject number
Global Object.
members string[]
Service objects contained within the group.
name string
Address group name.
objectFirewallServiceGroupId string
an identifier for the resource with format {{name}}.
proxy string
Enable/disable web proxy service group. Valid values: disable, enable.
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.
uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color float
Color of icon on the GUI.
comment str
Comment.
fabric_object str
Security Fabric global object setting. Valid values: disable, enable.
global_object float
Global Object.
members Sequence[str]
Service objects contained within the group.
name str
Address group name.
object_firewall_service_group_id str
an identifier for the resource with format {{name}}.
proxy str
Enable/disable web proxy service group. Valid values: disable, enable.
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.
uuid str
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color Number
Color of icon on the GUI.
comment String
Comment.
fabricObject String
Security Fabric global object setting. Valid values: disable, enable.
globalObject Number
Global Object.
members List<String>
Service objects contained within the group.
name String
Address group name.
objectFirewallServiceGroupId String
an identifier for the resource with format {{name}}.
proxy String
Enable/disable web proxy service group. Valid values: disable, enable.
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.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).

Import

ObjectFirewall ServiceGroup can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectFirewallServiceGroup:ObjectFirewallServiceGroup labelname {{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.