1. Packages
  2. Routeros Provider
  3. API Docs
  4. SystemUserGroup
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

routeros.SystemUserGroup

Explore with Pulumi AI

routeros logo
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as routeros from "@pulumi/routeros";
    
    const terraform = new routeros.SystemUserGroup("terraform", {policies: [
        "api",
        "!ftp",
        "!local",
        "password",
        "policy",
        "read",
        "!reboot",
        "!rest-api",
        "!romon",
        "sensitive",
        "!sniff",
        "!ssh",
        "!telnet",
        "!test",
        "!web",
        "!winbox",
        "write",
    ]});
    
    import pulumi
    import pulumi_routeros as routeros
    
    terraform = routeros.SystemUserGroup("terraform", policies=[
        "api",
        "!ftp",
        "!local",
        "password",
        "policy",
        "read",
        "!reboot",
        "!rest-api",
        "!romon",
        "sensitive",
        "!sniff",
        "!ssh",
        "!telnet",
        "!test",
        "!web",
        "!winbox",
        "write",
    ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := routeros.NewSystemUserGroup(ctx, "terraform", &routeros.SystemUserGroupArgs{
    			Policies: pulumi.StringArray{
    				pulumi.String("api"),
    				pulumi.String("!ftp"),
    				pulumi.String("!local"),
    				pulumi.String("password"),
    				pulumi.String("policy"),
    				pulumi.String("read"),
    				pulumi.String("!reboot"),
    				pulumi.String("!rest-api"),
    				pulumi.String("!romon"),
    				pulumi.String("sensitive"),
    				pulumi.String("!sniff"),
    				pulumi.String("!ssh"),
    				pulumi.String("!telnet"),
    				pulumi.String("!test"),
    				pulumi.String("!web"),
    				pulumi.String("!winbox"),
    				pulumi.String("write"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Routeros = Pulumi.Routeros;
    
    return await Deployment.RunAsync(() => 
    {
        var terraform = new Routeros.SystemUserGroup("terraform", new()
        {
            Policies = new[]
            {
                "api",
                "!ftp",
                "!local",
                "password",
                "policy",
                "read",
                "!reboot",
                "!rest-api",
                "!romon",
                "sensitive",
                "!sniff",
                "!ssh",
                "!telnet",
                "!test",
                "!web",
                "!winbox",
                "write",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.routeros.SystemUserGroup;
    import com.pulumi.routeros.SystemUserGroupArgs;
    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 terraform = new SystemUserGroup("terraform", SystemUserGroupArgs.builder()
                .policies(            
                    "api",
                    "!ftp",
                    "!local",
                    "password",
                    "policy",
                    "read",
                    "!reboot",
                    "!rest-api",
                    "!romon",
                    "sensitive",
                    "!sniff",
                    "!ssh",
                    "!telnet",
                    "!test",
                    "!web",
                    "!winbox",
                    "write")
                .build());
    
        }
    }
    
    resources:
      terraform:
        type: routeros:SystemUserGroup
        properties:
          policies:
            - api
            - '!ftp'
            - '!local'
            - password
            - policy
            - read
            - '!reboot'
            - '!rest-api'
            - '!romon'
            - sensitive
            - '!sniff'
            - '!ssh'
            - '!telnet'
            - '!test'
            - '!web'
            - '!winbox'
            - write
    

    Create SystemUserGroup Resource

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

    Constructor syntax

    new SystemUserGroup(name: string, args?: SystemUserGroupArgs, opts?: CustomResourceOptions);
    @overload
    def SystemUserGroup(resource_name: str,
                        args: Optional[SystemUserGroupArgs] = None,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def SystemUserGroup(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        ___id_: Optional[float] = None,
                        ___path_: Optional[str] = None,
                        ___unset_: Optional[str] = None,
                        comment: Optional[str] = None,
                        name: Optional[str] = None,
                        policies: Optional[Sequence[str]] = None,
                        skin: Optional[str] = None,
                        system_user_group_id: Optional[str] = None)
    func NewSystemUserGroup(ctx *Context, name string, args *SystemUserGroupArgs, opts ...ResourceOption) (*SystemUserGroup, error)
    public SystemUserGroup(string name, SystemUserGroupArgs? args = null, CustomResourceOptions? opts = null)
    public SystemUserGroup(String name, SystemUserGroupArgs args)
    public SystemUserGroup(String name, SystemUserGroupArgs args, CustomResourceOptions options)
    
    type: routeros:SystemUserGroup
    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 SystemUserGroupArgs
    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 SystemUserGroupArgs
    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 SystemUserGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SystemUserGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SystemUserGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Comment string
    Name string
    The name of the user group
    Policies List<string>
    A set of allowed policies.
    Skin string
    The name of the skin that will be used for WebFig.
    SystemUserGroupId string
    The ID of this resource.
    ___id_ double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___unset_ string
    A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
    Comment string
    Name string
    The name of the user group
    Policies []string
    A set of allowed policies.
    Skin string
    The name of the skin that will be used for WebFig.
    SystemUserGroupId string
    The ID of this resource.
    ___id_ float64
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___unset_ string
    A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
    ___id_ Double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___unset_ String
    A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
    comment String
    name String
    The name of the user group
    policies List<String>
    A set of allowed policies.
    skin String
    The name of the skin that will be used for WebFig.
    systemUserGroupId String
    The ID of this resource.
    ___id_ number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___unset_ string
    A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
    comment string
    name string
    The name of the user group
    policies string[]
    A set of allowed policies.
    skin string
    The name of the skin that will be used for WebFig.
    systemUserGroupId string
    The ID of this resource.
    ___id_ float
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ str
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___unset_ str
    A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
    comment str
    name str
    The name of the user group
    policies Sequence[str]
    A set of allowed policies.
    skin str
    The name of the skin that will be used for WebFig.
    system_user_group_id str
    The ID of this resource.
    ___id_ Number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___unset_ String
    A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
    comment String
    name String
    The name of the user group
    policies List<String>
    A set of allowed policies.
    skin String
    The name of the skin that will be used for WebFig.
    systemUserGroupId String
    The ID of this resource.

    Outputs

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

    Get an existing SystemUserGroup 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?: SystemUserGroupState, opts?: CustomResourceOptions): SystemUserGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ___id_: Optional[float] = None,
            ___path_: Optional[str] = None,
            ___unset_: Optional[str] = None,
            comment: Optional[str] = None,
            name: Optional[str] = None,
            policies: Optional[Sequence[str]] = None,
            skin: Optional[str] = None,
            system_user_group_id: Optional[str] = None) -> SystemUserGroup
    func GetSystemUserGroup(ctx *Context, name string, id IDInput, state *SystemUserGroupState, opts ...ResourceOption) (*SystemUserGroup, error)
    public static SystemUserGroup Get(string name, Input<string> id, SystemUserGroupState? state, CustomResourceOptions? opts = null)
    public static SystemUserGroup get(String name, Output<String> id, SystemUserGroupState state, CustomResourceOptions options)
    resources:  _:    type: routeros:SystemUserGroup    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:
    Comment string
    Name string
    The name of the user group
    Policies List<string>
    A set of allowed policies.
    Skin string
    The name of the skin that will be used for WebFig.
    SystemUserGroupId string
    The ID of this resource.
    ___id_ double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___unset_ string
    A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
    Comment string
    Name string
    The name of the user group
    Policies []string
    A set of allowed policies.
    Skin string
    The name of the skin that will be used for WebFig.
    SystemUserGroupId string
    The ID of this resource.
    ___id_ float64
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___unset_ string
    A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
    ___id_ Double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___unset_ String
    A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
    comment String
    name String
    The name of the user group
    policies List<String>
    A set of allowed policies.
    skin String
    The name of the skin that will be used for WebFig.
    systemUserGroupId String
    The ID of this resource.
    ___id_ number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___unset_ string
    A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
    comment string
    name string
    The name of the user group
    policies string[]
    A set of allowed policies.
    skin string
    The name of the skin that will be used for WebFig.
    systemUserGroupId string
    The ID of this resource.
    ___id_ float
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ str
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___unset_ str
    A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
    comment str
    name str
    The name of the user group
    policies Sequence[str]
    A set of allowed policies.
    skin str
    The name of the skin that will be used for WebFig.
    system_user_group_id str
    The ID of this resource.
    ___id_ Number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___unset_ String
    A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
    comment String
    name String
    The name of the user group
    policies List<String>
    A set of allowed policies.
    skin String
    The name of the skin that will be used for WebFig.
    systemUserGroupId String
    The ID of this resource.

    Import

    #The ID can be found via API or the terminal

    #The command for the terminal is -> :put [/user/group get [print show-ids]]

    $ pulumi import routeros:index/systemUserGroup:SystemUserGroup terraform *1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    routeros terraform-routeros/terraform-provider-routeros
    License
    Notes
    This Pulumi package is based on the routeros Terraform Provider.
    routeros logo
    routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros