1. Packages
  2. Fortios
  3. API Docs
  4. firewall
  5. ObjectServicegroup
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

fortios.firewall.ObjectServicegroup

Explore with Pulumi AI

fortios logo
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

    Provides a resource to configure firewall service group of FortiOS.

    !> Warning: The resource will be deprecated and replaced by new resource fortios.firewall/service.Group, we recommend that you use the new resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const v11 = new fortios.firewall.ObjectServicegroup("v11", {
        comment: "fdsafdsa",
        members: [
            "DCE-RPC",
            "DNS",
            "HTTPS",
        ],
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    v11 = fortios.firewall.ObjectServicegroup("v11",
        comment="fdsafdsa",
        members=[
            "DCE-RPC",
            "DNS",
            "HTTPS",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/firewall"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := firewall.NewObjectServicegroup(ctx, "v11", &firewall.ObjectServicegroupArgs{
    			Comment: pulumi.String("fdsafdsa"),
    			Members: pulumi.StringArray{
    				pulumi.String("DCE-RPC"),
    				pulumi.String("DNS"),
    				pulumi.String("HTTPS"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fortios = Pulumiverse.Fortios;
    
    return await Deployment.RunAsync(() => 
    {
        var v11 = new Fortios.Firewall.ObjectServicegroup("v11", new()
        {
            Comment = "fdsafdsa",
            Members = new[]
            {
                "DCE-RPC",
                "DNS",
                "HTTPS",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.firewall.ObjectServicegroup;
    import com.pulumi.fortios.firewall.ObjectServicegroupArgs;
    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 v11 = new ObjectServicegroup("v11", ObjectServicegroupArgs.builder()        
                .comment("fdsafdsa")
                .members(            
                    "DCE-RPC",
                    "DNS",
                    "HTTPS")
                .build());
    
        }
    }
    
    resources:
      v11:
        type: fortios:firewall:ObjectServicegroup
        properties:
          comment: fdsafdsa
          members:
            - DCE-RPC
            - DNS
            - HTTPS
    

    Create ObjectServicegroup Resource

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

    Constructor syntax

    new ObjectServicegroup(name: string, args: ObjectServicegroupArgs, opts?: CustomResourceOptions);
    @overload
    def ObjectServicegroup(resource_name: str,
                           args: ObjectServicegroupArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObjectServicegroup(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           members: Optional[Sequence[str]] = None,
                           comment: Optional[str] = None,
                           name: Optional[str] = None)
    func NewObjectServicegroup(ctx *Context, name string, args ObjectServicegroupArgs, opts ...ResourceOption) (*ObjectServicegroup, error)
    public ObjectServicegroup(string name, ObjectServicegroupArgs args, CustomResourceOptions? opts = null)
    public ObjectServicegroup(String name, ObjectServicegroupArgs args)
    public ObjectServicegroup(String name, ObjectServicegroupArgs args, CustomResourceOptions options)
    
    type: fortios:firewall:ObjectServicegroup
    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 ObjectServicegroupArgs
    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 ObjectServicegroupArgs
    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 ObjectServicegroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectServicegroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectServicegroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var objectServicegroupResource = new Fortios.Firewall.ObjectServicegroup("objectServicegroupResource", new()
    {
        Members = new[]
        {
            "string",
        },
        Comment = "string",
        Name = "string",
    });
    
    example, err := firewall.NewObjectServicegroup(ctx, "objectServicegroupResource", &firewall.ObjectServicegroupArgs{
    	Members: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Comment: pulumi.String("string"),
    	Name:    pulumi.String("string"),
    })
    
    var objectServicegroupResource = new ObjectServicegroup("objectServicegroupResource", ObjectServicegroupArgs.builder()
        .members("string")
        .comment("string")
        .name("string")
        .build());
    
    object_servicegroup_resource = fortios.firewall.ObjectServicegroup("objectServicegroupResource",
        members=["string"],
        comment="string",
        name="string")
    
    const objectServicegroupResource = new fortios.firewall.ObjectServicegroup("objectServicegroupResource", {
        members: ["string"],
        comment: "string",
        name: "string",
    });
    
    type: fortios:firewall:ObjectServicegroup
    properties:
        comment: string
        members:
            - string
        name: string
    

    ObjectServicegroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ObjectServicegroup resource accepts the following input properties:

    Members List<string>
    Service objects contained within the group.
    Comment string
    Comment.
    Name string
    Service group name.
    Members []string
    Service objects contained within the group.
    Comment string
    Comment.
    Name string
    Service group name.
    members List<String>
    Service objects contained within the group.
    comment String
    Comment.
    name String
    Service group name.
    members string[]
    Service objects contained within the group.
    comment string
    Comment.
    name string
    Service group name.
    members Sequence[str]
    Service objects contained within the group.
    comment str
    Comment.
    name str
    Service group name.
    members List<String>
    Service objects contained within the group.
    comment String
    Comment.
    name String
    Service group name.

    Outputs

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

    Get an existing ObjectServicegroup 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?: ObjectServicegroupState, opts?: CustomResourceOptions): ObjectServicegroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            comment: Optional[str] = None,
            members: Optional[Sequence[str]] = None,
            name: Optional[str] = None) -> ObjectServicegroup
    func GetObjectServicegroup(ctx *Context, name string, id IDInput, state *ObjectServicegroupState, opts ...ResourceOption) (*ObjectServicegroup, error)
    public static ObjectServicegroup Get(string name, Input<string> id, ObjectServicegroupState? state, CustomResourceOptions? opts = null)
    public static ObjectServicegroup get(String name, Output<String> id, ObjectServicegroupState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    Comment string
    Comment.
    Members List<string>
    Service objects contained within the group.
    Name string
    Service group name.
    Comment string
    Comment.
    Members []string
    Service objects contained within the group.
    Name string
    Service group name.
    comment String
    Comment.
    members List<String>
    Service objects contained within the group.
    name String
    Service group name.
    comment string
    Comment.
    members string[]
    Service objects contained within the group.
    name string
    Service group name.
    comment str
    Comment.
    members Sequence[str]
    Service objects contained within the group.
    name str
    Service group name.
    comment String
    Comment.
    members List<String>
    Service objects contained within the group.
    name String
    Service group name.

    Package Details

    Repository
    fortios pulumiverse/pulumi-fortios
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fortios Terraform Provider.
    fortios logo
    Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse