1. Packages
  2. Fortios
  3. API Docs
  4. fmg
  5. SystemAdminUser
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

fortios.fmg.SystemAdminUser

Explore with Pulumi AI

fortios logo
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

    This resource supports Create/Read/Update/Delete admin user for FortiManager

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test1 = new fortios.fmg.SystemAdminUser("test1", {
        description: "local user",
        password: "123",
        profileid: "Standard_User",
        rpcPermit: "read",
        trusthost1: "1.1.1.1 255.255.255.255",
        userType: "local",
        userid: "user1",
    });
    const test2 = new fortios.fmg.SystemAdminUser("test2", {
        description: "api user",
        password: "098",
        profileid: "Standard_User",
        rpcPermit: "read-write",
        trusthost1: "2.2.2.2 255.255.255.255",
        userid: "user2",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test1 = fortios.fmg.SystemAdminUser("test1",
        description="local user",
        password="123",
        profileid="Standard_User",
        rpc_permit="read",
        trusthost1="1.1.1.1 255.255.255.255",
        user_type="local",
        userid="user1")
    test2 = fortios.fmg.SystemAdminUser("test2",
        description="api user",
        password="098",
        profileid="Standard_User",
        rpc_permit="read-write",
        trusthost1="2.2.2.2 255.255.255.255",
        userid="user2")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/fmg"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fmg.NewSystemAdminUser(ctx, "test1", &fmg.SystemAdminUserArgs{
    			Description: pulumi.String("local user"),
    			Password:    pulumi.String("123"),
    			Profileid:   pulumi.String("Standard_User"),
    			RpcPermit:   pulumi.String("read"),
    			Trusthost1:  pulumi.String("1.1.1.1 255.255.255.255"),
    			UserType:    pulumi.String("local"),
    			Userid:      pulumi.String("user1"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = fmg.NewSystemAdminUser(ctx, "test2", &fmg.SystemAdminUserArgs{
    			Description: pulumi.String("api user"),
    			Password:    pulumi.String("098"),
    			Profileid:   pulumi.String("Standard_User"),
    			RpcPermit:   pulumi.String("read-write"),
    			Trusthost1:  pulumi.String("2.2.2.2 255.255.255.255"),
    			Userid:      pulumi.String("user2"),
    		})
    		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 test1 = new Fortios.Fmg.SystemAdminUser("test1", new()
        {
            Description = "local user",
            Password = "123",
            Profileid = "Standard_User",
            RpcPermit = "read",
            Trusthost1 = "1.1.1.1 255.255.255.255",
            UserType = "local",
            Userid = "user1",
        });
    
        var test2 = new Fortios.Fmg.SystemAdminUser("test2", new()
        {
            Description = "api user",
            Password = "098",
            Profileid = "Standard_User",
            RpcPermit = "read-write",
            Trusthost1 = "2.2.2.2 255.255.255.255",
            Userid = "user2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.fmg.SystemAdminUser;
    import com.pulumi.fortios.fmg.SystemAdminUserArgs;
    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 test1 = new SystemAdminUser("test1", SystemAdminUserArgs.builder()
                .description("local user")
                .password("123")
                .profileid("Standard_User")
                .rpcPermit("read")
                .trusthost1("1.1.1.1 255.255.255.255")
                .userType("local")
                .userid("user1")
                .build());
    
            var test2 = new SystemAdminUser("test2", SystemAdminUserArgs.builder()
                .description("api user")
                .password("098")
                .profileid("Standard_User")
                .rpcPermit("read-write")
                .trusthost1("2.2.2.2 255.255.255.255")
                .userid("user2")
                .build());
    
        }
    }
    
    resources:
      test1:
        type: fortios:fmg:SystemAdminUser
        properties:
          description: local user
          password: '123'
          profileid: Standard_User
          rpcPermit: read
          trusthost1: 1.1.1.1 255.255.255.255
          userType: local
          userid: user1
      test2:
        type: fortios:fmg:SystemAdminUser
        properties:
          description: api user
          password: '098'
          profileid: Standard_User
          rpcPermit: read-write
          trusthost1: 2.2.2.2 255.255.255.255
          userid: user2
    

    Create SystemAdminUser Resource

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

    Constructor syntax

    new SystemAdminUser(name: string, args: SystemAdminUserArgs, opts?: CustomResourceOptions);
    @overload
    def SystemAdminUser(resource_name: str,
                        args: SystemAdminUserArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def SystemAdminUser(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        userid: Optional[str] = None,
                        description: Optional[str] = None,
                        password: Optional[str] = None,
                        profileid: Optional[str] = None,
                        radius_server: Optional[str] = None,
                        rpc_permit: Optional[str] = None,
                        trusthost1: Optional[str] = None,
                        trusthost2: Optional[str] = None,
                        trusthost3: Optional[str] = None,
                        user_type: Optional[str] = None)
    func NewSystemAdminUser(ctx *Context, name string, args SystemAdminUserArgs, opts ...ResourceOption) (*SystemAdminUser, error)
    public SystemAdminUser(string name, SystemAdminUserArgs args, CustomResourceOptions? opts = null)
    public SystemAdminUser(String name, SystemAdminUserArgs args)
    public SystemAdminUser(String name, SystemAdminUserArgs args, CustomResourceOptions options)
    
    type: fortios:fmg:SystemAdminUser
    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 SystemAdminUserArgs
    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 SystemAdminUserArgs
    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 SystemAdminUserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SystemAdminUserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SystemAdminUserArgs
    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 systemAdminUserResource = new Fortios.Fmg.SystemAdminUser("systemAdminUserResource", new()
    {
        Userid = "string",
        Description = "string",
        Password = "string",
        Profileid = "string",
        RadiusServer = "string",
        RpcPermit = "string",
        Trusthost1 = "string",
        Trusthost2 = "string",
        Trusthost3 = "string",
        UserType = "string",
    });
    
    example, err := fmg.NewSystemAdminUser(ctx, "systemAdminUserResource", &fmg.SystemAdminUserArgs{
    	Userid:       pulumi.String("string"),
    	Description:  pulumi.String("string"),
    	Password:     pulumi.String("string"),
    	Profileid:    pulumi.String("string"),
    	RadiusServer: pulumi.String("string"),
    	RpcPermit:    pulumi.String("string"),
    	Trusthost1:   pulumi.String("string"),
    	Trusthost2:   pulumi.String("string"),
    	Trusthost3:   pulumi.String("string"),
    	UserType:     pulumi.String("string"),
    })
    
    var systemAdminUserResource = new SystemAdminUser("systemAdminUserResource", SystemAdminUserArgs.builder()
        .userid("string")
        .description("string")
        .password("string")
        .profileid("string")
        .radiusServer("string")
        .rpcPermit("string")
        .trusthost1("string")
        .trusthost2("string")
        .trusthost3("string")
        .userType("string")
        .build());
    
    system_admin_user_resource = fortios.fmg.SystemAdminUser("systemAdminUserResource",
        userid="string",
        description="string",
        password="string",
        profileid="string",
        radius_server="string",
        rpc_permit="string",
        trusthost1="string",
        trusthost2="string",
        trusthost3="string",
        user_type="string")
    
    const systemAdminUserResource = new fortios.fmg.SystemAdminUser("systemAdminUserResource", {
        userid: "string",
        description: "string",
        password: "string",
        profileid: "string",
        radiusServer: "string",
        rpcPermit: "string",
        trusthost1: "string",
        trusthost2: "string",
        trusthost3: "string",
        userType: "string",
    });
    
    type: fortios:fmg:SystemAdminUser
    properties:
        description: string
        password: string
        profileid: string
        radiusServer: string
        rpcPermit: string
        trusthost1: string
        trusthost2: string
        trusthost3: string
        userType: string
        userid: string
    

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

    Userid string
    User name.
    Description string
    Description.
    Password string
    Password.
    Profileid string
    Profile id.
    RadiusServer string
    RADIUS server name.
    RpcPermit string
    Rpc permit, Enum: ["read-write", "none", "read"]
    Trusthost1 string
    Admin user trusted host IP, default 0.0.0.0 0.0.0.0 for all.
    Trusthost2 string
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    Trusthost3 string
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    UserType string
    User type, Enum: ["local", "radius", "ldap", "tacacs-plus", "pki-auth", "group"]
    Userid string
    User name.
    Description string
    Description.
    Password string
    Password.
    Profileid string
    Profile id.
    RadiusServer string
    RADIUS server name.
    RpcPermit string
    Rpc permit, Enum: ["read-write", "none", "read"]
    Trusthost1 string
    Admin user trusted host IP, default 0.0.0.0 0.0.0.0 for all.
    Trusthost2 string
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    Trusthost3 string
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    UserType string
    User type, Enum: ["local", "radius", "ldap", "tacacs-plus", "pki-auth", "group"]
    userid String
    User name.
    description String
    Description.
    password String
    Password.
    profileid String
    Profile id.
    radiusServer String
    RADIUS server name.
    rpcPermit String
    Rpc permit, Enum: ["read-write", "none", "read"]
    trusthost1 String
    Admin user trusted host IP, default 0.0.0.0 0.0.0.0 for all.
    trusthost2 String
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    trusthost3 String
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    userType String
    User type, Enum: ["local", "radius", "ldap", "tacacs-plus", "pki-auth", "group"]
    userid string
    User name.
    description string
    Description.
    password string
    Password.
    profileid string
    Profile id.
    radiusServer string
    RADIUS server name.
    rpcPermit string
    Rpc permit, Enum: ["read-write", "none", "read"]
    trusthost1 string
    Admin user trusted host IP, default 0.0.0.0 0.0.0.0 for all.
    trusthost2 string
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    trusthost3 string
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    userType string
    User type, Enum: ["local", "radius", "ldap", "tacacs-plus", "pki-auth", "group"]
    userid str
    User name.
    description str
    Description.
    password str
    Password.
    profileid str
    Profile id.
    radius_server str
    RADIUS server name.
    rpc_permit str
    Rpc permit, Enum: ["read-write", "none", "read"]
    trusthost1 str
    Admin user trusted host IP, default 0.0.0.0 0.0.0.0 for all.
    trusthost2 str
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    trusthost3 str
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    user_type str
    User type, Enum: ["local", "radius", "ldap", "tacacs-plus", "pki-auth", "group"]
    userid String
    User name.
    description String
    Description.
    password String
    Password.
    profileid String
    Profile id.
    radiusServer String
    RADIUS server name.
    rpcPermit String
    Rpc permit, Enum: ["read-write", "none", "read"]
    trusthost1 String
    Admin user trusted host IP, default 0.0.0.0 0.0.0.0 for all.
    trusthost2 String
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    trusthost3 String
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    userType String
    User type, Enum: ["local", "radius", "ldap", "tacacs-plus", "pki-auth", "group"]

    Outputs

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

    Get an existing SystemAdminUser 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?: SystemAdminUserState, opts?: CustomResourceOptions): SystemAdminUser
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            password: Optional[str] = None,
            profileid: Optional[str] = None,
            radius_server: Optional[str] = None,
            rpc_permit: Optional[str] = None,
            trusthost1: Optional[str] = None,
            trusthost2: Optional[str] = None,
            trusthost3: Optional[str] = None,
            user_type: Optional[str] = None,
            userid: Optional[str] = None) -> SystemAdminUser
    func GetSystemAdminUser(ctx *Context, name string, id IDInput, state *SystemAdminUserState, opts ...ResourceOption) (*SystemAdminUser, error)
    public static SystemAdminUser Get(string name, Input<string> id, SystemAdminUserState? state, CustomResourceOptions? opts = null)
    public static SystemAdminUser get(String name, Output<String> id, SystemAdminUserState 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:
    Description string
    Description.
    Password string
    Password.
    Profileid string
    Profile id.
    RadiusServer string
    RADIUS server name.
    RpcPermit string
    Rpc permit, Enum: ["read-write", "none", "read"]
    Trusthost1 string
    Admin user trusted host IP, default 0.0.0.0 0.0.0.0 for all.
    Trusthost2 string
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    Trusthost3 string
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    UserType string
    User type, Enum: ["local", "radius", "ldap", "tacacs-plus", "pki-auth", "group"]
    Userid string
    User name.
    Description string
    Description.
    Password string
    Password.
    Profileid string
    Profile id.
    RadiusServer string
    RADIUS server name.
    RpcPermit string
    Rpc permit, Enum: ["read-write", "none", "read"]
    Trusthost1 string
    Admin user trusted host IP, default 0.0.0.0 0.0.0.0 for all.
    Trusthost2 string
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    Trusthost3 string
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    UserType string
    User type, Enum: ["local", "radius", "ldap", "tacacs-plus", "pki-auth", "group"]
    Userid string
    User name.
    description String
    Description.
    password String
    Password.
    profileid String
    Profile id.
    radiusServer String
    RADIUS server name.
    rpcPermit String
    Rpc permit, Enum: ["read-write", "none", "read"]
    trusthost1 String
    Admin user trusted host IP, default 0.0.0.0 0.0.0.0 for all.
    trusthost2 String
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    trusthost3 String
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    userType String
    User type, Enum: ["local", "radius", "ldap", "tacacs-plus", "pki-auth", "group"]
    userid String
    User name.
    description string
    Description.
    password string
    Password.
    profileid string
    Profile id.
    radiusServer string
    RADIUS server name.
    rpcPermit string
    Rpc permit, Enum: ["read-write", "none", "read"]
    trusthost1 string
    Admin user trusted host IP, default 0.0.0.0 0.0.0.0 for all.
    trusthost2 string
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    trusthost3 string
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    userType string
    User type, Enum: ["local", "radius", "ldap", "tacacs-plus", "pki-auth", "group"]
    userid string
    User name.
    description str
    Description.
    password str
    Password.
    profileid str
    Profile id.
    radius_server str
    RADIUS server name.
    rpc_permit str
    Rpc permit, Enum: ["read-write", "none", "read"]
    trusthost1 str
    Admin user trusted host IP, default 0.0.0.0 0.0.0.0 for all.
    trusthost2 str
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    trusthost3 str
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    user_type str
    User type, Enum: ["local", "radius", "ldap", "tacacs-plus", "pki-auth", "group"]
    userid str
    User name.
    description String
    Description.
    password String
    Password.
    profileid String
    Profile id.
    radiusServer String
    RADIUS server name.
    rpcPermit String
    Rpc permit, Enum: ["read-write", "none", "read"]
    trusthost1 String
    Admin user trusted host IP, default 0.0.0.0 0.0.0.0 for all.
    trusthost2 String
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    trusthost3 String
    Admin user trusted host IP, default 255.255.255.255 255.255.255.255 for none.
    userType String
    User type, Enum: ["local", "radius", "ldap", "tacacs-plus", "pki-auth", "group"]
    userid String
    User 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.6 published on Tuesday, Jul 9, 2024 by pulumiverse