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

fortimanager.SystemAdminGroupMember

Explore with Pulumi AI

fortimanager logo
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

    Group members.

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortimanager from "@pulumi/fortimanager";
    
    const trnameSystemAdminGroup = new fortimanager.SystemAdminGroup("trnameSystemAdminGroup", {});
    const trnameSystemAdminRadius = new fortimanager.SystemAdminRadius("trnameSystemAdminRadius", {server: "ALL"});
    const trnameSystemAdminGroupMember = new fortimanager.SystemAdminGroupMember("trnameSystemAdminGroupMember", {group: trnameSystemAdminGroup.name}, {
        dependsOn: [
            trnameSystemAdminGroup,
            trnameSystemAdminRadius,
        ],
    });
    
    import pulumi
    import pulumi_fortimanager as fortimanager
    
    trname_system_admin_group = fortimanager.SystemAdminGroup("trnameSystemAdminGroup")
    trname_system_admin_radius = fortimanager.SystemAdminRadius("trnameSystemAdminRadius", server="ALL")
    trname_system_admin_group_member = fortimanager.SystemAdminGroupMember("trnameSystemAdminGroupMember", group=trname_system_admin_group.name,
    opts = pulumi.ResourceOptions(depends_on=[
            trname_system_admin_group,
            trname_system_admin_radius,
        ]))
    
    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 {
    		trnameSystemAdminGroup, err := fortimanager.NewSystemAdminGroup(ctx, "trnameSystemAdminGroup", nil)
    		if err != nil {
    			return err
    		}
    		trnameSystemAdminRadius, err := fortimanager.NewSystemAdminRadius(ctx, "trnameSystemAdminRadius", &fortimanager.SystemAdminRadiusArgs{
    			Server: pulumi.String("ALL"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = fortimanager.NewSystemAdminGroupMember(ctx, "trnameSystemAdminGroupMember", &fortimanager.SystemAdminGroupMemberArgs{
    			Group: trnameSystemAdminGroup.Name,
    		}, pulumi.DependsOn([]pulumi.Resource{
    			trnameSystemAdminGroup,
    			trnameSystemAdminRadius,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fortimanager = Pulumi.Fortimanager;
    
    return await Deployment.RunAsync(() => 
    {
        var trnameSystemAdminGroup = new Fortimanager.SystemAdminGroup("trnameSystemAdminGroup");
    
        var trnameSystemAdminRadius = new Fortimanager.SystemAdminRadius("trnameSystemAdminRadius", new()
        {
            Server = "ALL",
        });
    
        var trnameSystemAdminGroupMember = new Fortimanager.SystemAdminGroupMember("trnameSystemAdminGroupMember", new()
        {
            Group = trnameSystemAdminGroup.Name,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                trnameSystemAdminGroup,
                trnameSystemAdminRadius,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortimanager.SystemAdminGroup;
    import com.pulumi.fortimanager.SystemAdminRadius;
    import com.pulumi.fortimanager.SystemAdminRadiusArgs;
    import com.pulumi.fortimanager.SystemAdminGroupMember;
    import com.pulumi.fortimanager.SystemAdminGroupMemberArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 trnameSystemAdminGroup = new SystemAdminGroup("trnameSystemAdminGroup");
    
            var trnameSystemAdminRadius = new SystemAdminRadius("trnameSystemAdminRadius", SystemAdminRadiusArgs.builder()
                .server("ALL")
                .build());
    
            var trnameSystemAdminGroupMember = new SystemAdminGroupMember("trnameSystemAdminGroupMember", SystemAdminGroupMemberArgs.builder()
                .group(trnameSystemAdminGroup.name())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(                
                        trnameSystemAdminGroup,
                        trnameSystemAdminRadius)
                    .build());
    
        }
    }
    
    resources:
      trnameSystemAdminGroupMember:
        type: fortimanager:SystemAdminGroupMember
        properties:
          group: ${trnameSystemAdminGroup.name}
        options:
          dependsOn:
            - ${trnameSystemAdminGroup}
            - ${trnameSystemAdminRadius}
      trnameSystemAdminGroup:
        type: fortimanager:SystemAdminGroup
      trnameSystemAdminRadius:
        type: fortimanager:SystemAdminRadius
        properties:
          server: ALL
    

    Create SystemAdminGroupMember Resource

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

    Constructor syntax

    new SystemAdminGroupMember(name: string, args: SystemAdminGroupMemberArgs, opts?: CustomResourceOptions);
    @overload
    def SystemAdminGroupMember(resource_name: str,
                               args: SystemAdminGroupMemberInitArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def SystemAdminGroupMember(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               group: Optional[str] = None,
                               name: Optional[str] = None,
                               system_admin_group_member_id: Optional[str] = None)
    func NewSystemAdminGroupMember(ctx *Context, name string, args SystemAdminGroupMemberArgs, opts ...ResourceOption) (*SystemAdminGroupMember, error)
    public SystemAdminGroupMember(string name, SystemAdminGroupMemberArgs args, CustomResourceOptions? opts = null)
    public SystemAdminGroupMember(String name, SystemAdminGroupMemberArgs args)
    public SystemAdminGroupMember(String name, SystemAdminGroupMemberArgs args, CustomResourceOptions options)
    
    type: fortimanager:SystemAdminGroupMember
    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 SystemAdminGroupMemberArgs
    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 SystemAdminGroupMemberInitArgs
    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 SystemAdminGroupMemberArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SystemAdminGroupMemberArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SystemAdminGroupMemberArgs
    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 systemAdminGroupMemberResource = new Fortimanager.SystemAdminGroupMember("systemAdminGroupMemberResource", new()
    {
        Group = "string",
        Name = "string",
        SystemAdminGroupMemberId = "string",
    });
    
    example, err := fortimanager.NewSystemAdminGroupMember(ctx, "systemAdminGroupMemberResource", &fortimanager.SystemAdminGroupMemberArgs{
    Group: pulumi.String("string"),
    Name: pulumi.String("string"),
    SystemAdminGroupMemberId: pulumi.String("string"),
    })
    
    var systemAdminGroupMemberResource = new SystemAdminGroupMember("systemAdminGroupMemberResource", SystemAdminGroupMemberArgs.builder()
        .group("string")
        .name("string")
        .systemAdminGroupMemberId("string")
        .build());
    
    system_admin_group_member_resource = fortimanager.SystemAdminGroupMember("systemAdminGroupMemberResource",
        group="string",
        name="string",
        system_admin_group_member_id="string")
    
    const systemAdminGroupMemberResource = new fortimanager.SystemAdminGroupMember("systemAdminGroupMemberResource", {
        group: "string",
        name: "string",
        systemAdminGroupMemberId: "string",
    });
    
    type: fortimanager:SystemAdminGroupMember
    properties:
        group: string
        name: string
        systemAdminGroupMemberId: string
    

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

    Group string
    Group.
    Name string
    Group member name.
    SystemAdminGroupMemberId string
    an identifier for the resource with format {{name}}.
    Group string
    Group.
    Name string
    Group member name.
    SystemAdminGroupMemberId string
    an identifier for the resource with format {{name}}.
    group String
    Group.
    name String
    Group member name.
    systemAdminGroupMemberId String
    an identifier for the resource with format {{name}}.
    group string
    Group.
    name string
    Group member name.
    systemAdminGroupMemberId string
    an identifier for the resource with format {{name}}.
    group str
    Group.
    name str
    Group member name.
    system_admin_group_member_id str
    an identifier for the resource with format {{name}}.
    group String
    Group.
    name String
    Group member name.
    systemAdminGroupMemberId String
    an identifier for the resource with format {{name}}.

    Outputs

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

    Get an existing SystemAdminGroupMember 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?: SystemAdminGroupMemberState, opts?: CustomResourceOptions): SystemAdminGroupMember
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            group: Optional[str] = None,
            name: Optional[str] = None,
            system_admin_group_member_id: Optional[str] = None) -> SystemAdminGroupMember
    func GetSystemAdminGroupMember(ctx *Context, name string, id IDInput, state *SystemAdminGroupMemberState, opts ...ResourceOption) (*SystemAdminGroupMember, error)
    public static SystemAdminGroupMember Get(string name, Input<string> id, SystemAdminGroupMemberState? state, CustomResourceOptions? opts = null)
    public static SystemAdminGroupMember get(String name, Output<String> id, SystemAdminGroupMemberState state, CustomResourceOptions options)
    resources:  _:    type: fortimanager:SystemAdminGroupMember    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.
    The following state arguments are supported:
    Group string
    Group.
    Name string
    Group member name.
    SystemAdminGroupMemberId string
    an identifier for the resource with format {{name}}.
    Group string
    Group.
    Name string
    Group member name.
    SystemAdminGroupMemberId string
    an identifier for the resource with format {{name}}.
    group String
    Group.
    name String
    Group member name.
    systemAdminGroupMemberId String
    an identifier for the resource with format {{name}}.
    group string
    Group.
    name string
    Group member name.
    systemAdminGroupMemberId string
    an identifier for the resource with format {{name}}.
    group str
    Group.
    name str
    Group member name.
    system_admin_group_member_id str
    an identifier for the resource with format {{name}}.
    group String
    Group.
    name String
    Group member name.
    systemAdminGroupMemberId String
    an identifier for the resource with format {{name}}.

    Import

    System AdminGroupMember can be imported using any of these accepted formats:

    Set import_options = [“group=YOUR_VALUE”] in the provider section.

    $ export “FORTIMANAGER_IMPORT_TABLE”=“true”

    $ pulumi import fortimanager:index/systemAdminGroupMember:SystemAdminGroupMember labelname {{name}}
    

    $ 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 fortimanager Terraform Provider.
    fortimanager logo
    fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev