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

fortios.system.AdminAdministrator

Explore with Pulumi AI

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

    Provides a resource to configure administrator accounts of FortiOS.

    !> Warning: The resource will be deprecated and replaced by new resource fortios.system.Admin, we recommend that you use the new resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const admintest = new fortios.system.AdminAdministrator("admintest", {
        accprofile: "3d3",
        comments: "comments",
        password: "cc37331AC1",
        trusthost1: "1.1.1.0 255.255.255.0",
        trusthost2: "2.2.2.0 255.255.255.0",
        vdoms: ["root"],
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    admintest = fortios.system.AdminAdministrator("admintest",
        accprofile="3d3",
        comments="comments",
        password="cc37331AC1",
        trusthost1="1.1.1.0 255.255.255.0",
        trusthost2="2.2.2.0 255.255.255.0",
        vdoms=["root"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/system"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := system.NewAdminAdministrator(ctx, "admintest", &system.AdminAdministratorArgs{
    			Accprofile: pulumi.String("3d3"),
    			Comments:   pulumi.String("comments"),
    			Password:   pulumi.String("cc37331AC1"),
    			Trusthost1: pulumi.String("1.1.1.0 255.255.255.0"),
    			Trusthost2: pulumi.String("2.2.2.0 255.255.255.0"),
    			Vdoms: pulumi.StringArray{
    				pulumi.String("root"),
    			},
    		})
    		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 admintest = new Fortios.System.AdminAdministrator("admintest", new()
        {
            Accprofile = "3d3",
            Comments = "comments",
            Password = "cc37331AC1",
            Trusthost1 = "1.1.1.0 255.255.255.0",
            Trusthost2 = "2.2.2.0 255.255.255.0",
            Vdoms = new[]
            {
                "root",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.system.AdminAdministrator;
    import com.pulumi.fortios.system.AdminAdministratorArgs;
    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 admintest = new AdminAdministrator("admintest", AdminAdministratorArgs.builder()
                .accprofile("3d3")
                .comments("comments")
                .password("cc37331AC1")
                .trusthost1("1.1.1.0 255.255.255.0")
                .trusthost2("2.2.2.0 255.255.255.0")
                .vdoms("root")
                .build());
    
        }
    }
    
    resources:
      admintest:
        type: fortios:system:AdminAdministrator
        properties:
          accprofile: 3d3
          comments: comments
          password: cc37331AC1
          trusthost1: 1.1.1.0 255.255.255.0
          trusthost2: 2.2.2.0 255.255.255.0
          vdoms:
            - root
    

    Create AdminAdministrator Resource

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

    Constructor syntax

    new AdminAdministrator(name: string, args: AdminAdministratorArgs, opts?: CustomResourceOptions);
    @overload
    def AdminAdministrator(resource_name: str,
                           args: AdminAdministratorArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def AdminAdministrator(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           password: Optional[str] = None,
                           accprofile: Optional[str] = None,
                           trusthost2: Optional[str] = None,
                           name: Optional[str] = None,
                           trusthost1: Optional[str] = None,
                           trusthost10: Optional[str] = None,
                           comments: Optional[str] = None,
                           trusthost3: Optional[str] = None,
                           trusthost4: Optional[str] = None,
                           trusthost5: Optional[str] = None,
                           trusthost6: Optional[str] = None,
                           trusthost7: Optional[str] = None,
                           trusthost8: Optional[str] = None,
                           trusthost9: Optional[str] = None,
                           vdoms: Optional[Sequence[str]] = None)
    func NewAdminAdministrator(ctx *Context, name string, args AdminAdministratorArgs, opts ...ResourceOption) (*AdminAdministrator, error)
    public AdminAdministrator(string name, AdminAdministratorArgs args, CustomResourceOptions? opts = null)
    public AdminAdministrator(String name, AdminAdministratorArgs args)
    public AdminAdministrator(String name, AdminAdministratorArgs args, CustomResourceOptions options)
    
    type: fortios:system:AdminAdministrator
    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 AdminAdministratorArgs
    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 AdminAdministratorArgs
    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 AdminAdministratorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AdminAdministratorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AdminAdministratorArgs
    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 adminAdministratorResource = new Fortios.System.AdminAdministrator("adminAdministratorResource", new()
    {
        Password = "string",
        Accprofile = "string",
        Trusthost2 = "string",
        Name = "string",
        Trusthost1 = "string",
        Trusthost10 = "string",
        Comments = "string",
        Trusthost3 = "string",
        Trusthost4 = "string",
        Trusthost5 = "string",
        Trusthost6 = "string",
        Trusthost7 = "string",
        Trusthost8 = "string",
        Trusthost9 = "string",
        Vdoms = new[]
        {
            "string",
        },
    });
    
    example, err := system.NewAdminAdministrator(ctx, "adminAdministratorResource", &system.AdminAdministratorArgs{
    	Password:    pulumi.String("string"),
    	Accprofile:  pulumi.String("string"),
    	Trusthost2:  pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Trusthost1:  pulumi.String("string"),
    	Trusthost10: pulumi.String("string"),
    	Comments:    pulumi.String("string"),
    	Trusthost3:  pulumi.String("string"),
    	Trusthost4:  pulumi.String("string"),
    	Trusthost5:  pulumi.String("string"),
    	Trusthost6:  pulumi.String("string"),
    	Trusthost7:  pulumi.String("string"),
    	Trusthost8:  pulumi.String("string"),
    	Trusthost9:  pulumi.String("string"),
    	Vdoms: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var adminAdministratorResource = new AdminAdministrator("adminAdministratorResource", AdminAdministratorArgs.builder()
        .password("string")
        .accprofile("string")
        .trusthost2("string")
        .name("string")
        .trusthost1("string")
        .trusthost10("string")
        .comments("string")
        .trusthost3("string")
        .trusthost4("string")
        .trusthost5("string")
        .trusthost6("string")
        .trusthost7("string")
        .trusthost8("string")
        .trusthost9("string")
        .vdoms("string")
        .build());
    
    admin_administrator_resource = fortios.system.AdminAdministrator("adminAdministratorResource",
        password="string",
        accprofile="string",
        trusthost2="string",
        name="string",
        trusthost1="string",
        trusthost10="string",
        comments="string",
        trusthost3="string",
        trusthost4="string",
        trusthost5="string",
        trusthost6="string",
        trusthost7="string",
        trusthost8="string",
        trusthost9="string",
        vdoms=["string"])
    
    const adminAdministratorResource = new fortios.system.AdminAdministrator("adminAdministratorResource", {
        password: "string",
        accprofile: "string",
        trusthost2: "string",
        name: "string",
        trusthost1: "string",
        trusthost10: "string",
        comments: "string",
        trusthost3: "string",
        trusthost4: "string",
        trusthost5: "string",
        trusthost6: "string",
        trusthost7: "string",
        trusthost8: "string",
        trusthost9: "string",
        vdoms: ["string"],
    });
    
    type: fortios:system:AdminAdministrator
    properties:
        accprofile: string
        comments: string
        name: string
        password: string
        trusthost1: string
        trusthost2: string
        trusthost3: string
        trusthost4: string
        trusthost5: string
        trusthost6: string
        trusthost7: string
        trusthost8: string
        trusthost9: string
        trusthost10: string
        vdoms:
            - string
    

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

    Accprofile string
    Access profile for this administrator. Access profiles control administrator access to FortiGate features.
    Password string
    Admin user password.

    • trusthostN - Any IPv4 address or subnet address and netmask from which the administrator can connect to the FortiGate unit.
    Comments string
    Comment.
    Name string
    User name.
    Trusthost1 string
    Trusthost10 string
    Trusthost2 string
    Trusthost3 string
    Trusthost4 string
    Trusthost5 string
    Trusthost6 string
    Trusthost7 string
    Trusthost8 string
    Trusthost9 string
    Vdoms List<string>
    Virtual domain(s) that the administrator can access.
    Accprofile string
    Access profile for this administrator. Access profiles control administrator access to FortiGate features.
    Password string
    Admin user password.

    • trusthostN - Any IPv4 address or subnet address and netmask from which the administrator can connect to the FortiGate unit.
    Comments string
    Comment.
    Name string
    User name.
    Trusthost1 string
    Trusthost10 string
    Trusthost2 string
    Trusthost3 string
    Trusthost4 string
    Trusthost5 string
    Trusthost6 string
    Trusthost7 string
    Trusthost8 string
    Trusthost9 string
    Vdoms []string
    Virtual domain(s) that the administrator can access.
    accprofile String
    Access profile for this administrator. Access profiles control administrator access to FortiGate features.
    password String
    Admin user password.

    • trusthostN - Any IPv4 address or subnet address and netmask from which the administrator can connect to the FortiGate unit.
    comments String
    Comment.
    name String
    User name.
    trusthost1 String
    trusthost10 String
    trusthost2 String
    trusthost3 String
    trusthost4 String
    trusthost5 String
    trusthost6 String
    trusthost7 String
    trusthost8 String
    trusthost9 String
    vdoms List<String>
    Virtual domain(s) that the administrator can access.
    accprofile string
    Access profile for this administrator. Access profiles control administrator access to FortiGate features.
    password string
    Admin user password.

    • trusthostN - Any IPv4 address or subnet address and netmask from which the administrator can connect to the FortiGate unit.
    comments string
    Comment.
    name string
    User name.
    trusthost1 string
    trusthost10 string
    trusthost2 string
    trusthost3 string
    trusthost4 string
    trusthost5 string
    trusthost6 string
    trusthost7 string
    trusthost8 string
    trusthost9 string
    vdoms string[]
    Virtual domain(s) that the administrator can access.
    accprofile str
    Access profile for this administrator. Access profiles control administrator access to FortiGate features.
    password str
    Admin user password.

    • trusthostN - Any IPv4 address or subnet address and netmask from which the administrator can connect to the FortiGate unit.
    comments str
    Comment.
    name str
    User name.
    trusthost1 str
    trusthost10 str
    trusthost2 str
    trusthost3 str
    trusthost4 str
    trusthost5 str
    trusthost6 str
    trusthost7 str
    trusthost8 str
    trusthost9 str
    vdoms Sequence[str]
    Virtual domain(s) that the administrator can access.
    accprofile String
    Access profile for this administrator. Access profiles control administrator access to FortiGate features.
    password String
    Admin user password.

    • trusthostN - Any IPv4 address or subnet address and netmask from which the administrator can connect to the FortiGate unit.
    comments String
    Comment.
    name String
    User name.
    trusthost1 String
    trusthost10 String
    trusthost2 String
    trusthost3 String
    trusthost4 String
    trusthost5 String
    trusthost6 String
    trusthost7 String
    trusthost8 String
    trusthost9 String
    vdoms List<String>
    Virtual domain(s) that the administrator can access.

    Outputs

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

    Get an existing AdminAdministrator 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?: AdminAdministratorState, opts?: CustomResourceOptions): AdminAdministrator
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accprofile: Optional[str] = None,
            comments: Optional[str] = None,
            name: Optional[str] = None,
            password: Optional[str] = None,
            trusthost1: Optional[str] = None,
            trusthost10: Optional[str] = None,
            trusthost2: Optional[str] = None,
            trusthost3: Optional[str] = None,
            trusthost4: Optional[str] = None,
            trusthost5: Optional[str] = None,
            trusthost6: Optional[str] = None,
            trusthost7: Optional[str] = None,
            trusthost8: Optional[str] = None,
            trusthost9: Optional[str] = None,
            vdoms: Optional[Sequence[str]] = None) -> AdminAdministrator
    func GetAdminAdministrator(ctx *Context, name string, id IDInput, state *AdminAdministratorState, opts ...ResourceOption) (*AdminAdministrator, error)
    public static AdminAdministrator Get(string name, Input<string> id, AdminAdministratorState? state, CustomResourceOptions? opts = null)
    public static AdminAdministrator get(String name, Output<String> id, AdminAdministratorState 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:
    Accprofile string
    Access profile for this administrator. Access profiles control administrator access to FortiGate features.
    Comments string
    Comment.
    Name string
    User name.
    Password string
    Admin user password.

    • trusthostN - Any IPv4 address or subnet address and netmask from which the administrator can connect to the FortiGate unit.
    Trusthost1 string
    Trusthost10 string
    Trusthost2 string
    Trusthost3 string
    Trusthost4 string
    Trusthost5 string
    Trusthost6 string
    Trusthost7 string
    Trusthost8 string
    Trusthost9 string
    Vdoms List<string>
    Virtual domain(s) that the administrator can access.
    Accprofile string
    Access profile for this administrator. Access profiles control administrator access to FortiGate features.
    Comments string
    Comment.
    Name string
    User name.
    Password string
    Admin user password.

    • trusthostN - Any IPv4 address or subnet address and netmask from which the administrator can connect to the FortiGate unit.
    Trusthost1 string
    Trusthost10 string
    Trusthost2 string
    Trusthost3 string
    Trusthost4 string
    Trusthost5 string
    Trusthost6 string
    Trusthost7 string
    Trusthost8 string
    Trusthost9 string
    Vdoms []string
    Virtual domain(s) that the administrator can access.
    accprofile String
    Access profile for this administrator. Access profiles control administrator access to FortiGate features.
    comments String
    Comment.
    name String
    User name.
    password String
    Admin user password.

    • trusthostN - Any IPv4 address or subnet address and netmask from which the administrator can connect to the FortiGate unit.
    trusthost1 String
    trusthost10 String
    trusthost2 String
    trusthost3 String
    trusthost4 String
    trusthost5 String
    trusthost6 String
    trusthost7 String
    trusthost8 String
    trusthost9 String
    vdoms List<String>
    Virtual domain(s) that the administrator can access.
    accprofile string
    Access profile for this administrator. Access profiles control administrator access to FortiGate features.
    comments string
    Comment.
    name string
    User name.
    password string
    Admin user password.

    • trusthostN - Any IPv4 address or subnet address and netmask from which the administrator can connect to the FortiGate unit.
    trusthost1 string
    trusthost10 string
    trusthost2 string
    trusthost3 string
    trusthost4 string
    trusthost5 string
    trusthost6 string
    trusthost7 string
    trusthost8 string
    trusthost9 string
    vdoms string[]
    Virtual domain(s) that the administrator can access.
    accprofile str
    Access profile for this administrator. Access profiles control administrator access to FortiGate features.
    comments str
    Comment.
    name str
    User name.
    password str
    Admin user password.

    • trusthostN - Any IPv4 address or subnet address and netmask from which the administrator can connect to the FortiGate unit.
    trusthost1 str
    trusthost10 str
    trusthost2 str
    trusthost3 str
    trusthost4 str
    trusthost5 str
    trusthost6 str
    trusthost7 str
    trusthost8 str
    trusthost9 str
    vdoms Sequence[str]
    Virtual domain(s) that the administrator can access.
    accprofile String
    Access profile for this administrator. Access profiles control administrator access to FortiGate features.
    comments String
    Comment.
    name String
    User name.
    password String
    Admin user password.

    • trusthostN - Any IPv4 address or subnet address and netmask from which the administrator can connect to the FortiGate unit.
    trusthost1 String
    trusthost10 String
    trusthost2 String
    trusthost3 String
    trusthost4 String
    trusthost5 String
    trusthost6 String
    trusthost7 String
    trusthost8 String
    trusthost9 String
    vdoms List<String>
    Virtual domain(s) that the administrator can access.

    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