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

fortimanager.ObjectUserDeviceaccesslist

Explore with Pulumi AI

Configure device access control lists.

The following variables have sub resource. Avoid using them together, otherwise conflicts and overwrites may occur.

  • device_list: fortimanager_object_user_deviceaccesslist_devicelist

Create ObjectUserDeviceaccesslist Resource

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

Constructor syntax

new ObjectUserDeviceaccesslist(name: string, args?: ObjectUserDeviceaccesslistArgs, opts?: CustomResourceOptions);
@overload
def ObjectUserDeviceaccesslist(resource_name: str,
                               args: Optional[ObjectUserDeviceaccesslistArgs] = None,
                               opts: Optional[ResourceOptions] = None)

@overload
def ObjectUserDeviceaccesslist(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               adom: Optional[str] = None,
                               default_action: Optional[str] = None,
                               device_lists: Optional[Sequence[ObjectUserDeviceaccesslistDeviceListArgs]] = None,
                               dynamic_sort_subtable: Optional[str] = None,
                               name: Optional[str] = None,
                               object_user_deviceaccesslist_id: Optional[str] = None,
                               scopetype: Optional[str] = None)
func NewObjectUserDeviceaccesslist(ctx *Context, name string, args *ObjectUserDeviceaccesslistArgs, opts ...ResourceOption) (*ObjectUserDeviceaccesslist, error)
public ObjectUserDeviceaccesslist(string name, ObjectUserDeviceaccesslistArgs? args = null, CustomResourceOptions? opts = null)
public ObjectUserDeviceaccesslist(String name, ObjectUserDeviceaccesslistArgs args)
public ObjectUserDeviceaccesslist(String name, ObjectUserDeviceaccesslistArgs args, CustomResourceOptions options)
type: fortimanager:ObjectUserDeviceaccesslist
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args ObjectUserDeviceaccesslistArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args ObjectUserDeviceaccesslistArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args ObjectUserDeviceaccesslistArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args ObjectUserDeviceaccesslistArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ObjectUserDeviceaccesslistArgs
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 objectUserDeviceaccesslistResource = new Fortimanager.ObjectUserDeviceaccesslist("objectUserDeviceaccesslistResource", new()
{
    Adom = "string",
    DefaultAction = "string",
    DeviceLists = new[]
    {
        new Fortimanager.Inputs.ObjectUserDeviceaccesslistDeviceListArgs
        {
            Action = "string",
            Device = "string",
            Id = 0,
        },
    },
    DynamicSortSubtable = "string",
    Name = "string",
    ObjectUserDeviceaccesslistId = "string",
    Scopetype = "string",
});
Copy
example, err := fortimanager.NewObjectUserDeviceaccesslist(ctx, "objectUserDeviceaccesslistResource", &fortimanager.ObjectUserDeviceaccesslistArgs{
Adom: pulumi.String("string"),
DefaultAction: pulumi.String("string"),
DeviceLists: .ObjectUserDeviceaccesslistDeviceListArray{
&.ObjectUserDeviceaccesslistDeviceListArgs{
Action: pulumi.String("string"),
Device: pulumi.String("string"),
Id: pulumi.Float64(0),
},
},
DynamicSortSubtable: pulumi.String("string"),
Name: pulumi.String("string"),
ObjectUserDeviceaccesslistId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
})
Copy
var objectUserDeviceaccesslistResource = new ObjectUserDeviceaccesslist("objectUserDeviceaccesslistResource", ObjectUserDeviceaccesslistArgs.builder()
    .adom("string")
    .defaultAction("string")
    .deviceLists(ObjectUserDeviceaccesslistDeviceListArgs.builder()
        .action("string")
        .device("string")
        .id(0)
        .build())
    .dynamicSortSubtable("string")
    .name("string")
    .objectUserDeviceaccesslistId("string")
    .scopetype("string")
    .build());
Copy
object_user_deviceaccesslist_resource = fortimanager.ObjectUserDeviceaccesslist("objectUserDeviceaccesslistResource",
    adom="string",
    default_action="string",
    device_lists=[{
        "action": "string",
        "device": "string",
        "id": 0,
    }],
    dynamic_sort_subtable="string",
    name="string",
    object_user_deviceaccesslist_id="string",
    scopetype="string")
Copy
const objectUserDeviceaccesslistResource = new fortimanager.ObjectUserDeviceaccesslist("objectUserDeviceaccesslistResource", {
    adom: "string",
    defaultAction: "string",
    deviceLists: [{
        action: "string",
        device: "string",
        id: 0,
    }],
    dynamicSortSubtable: "string",
    name: "string",
    objectUserDeviceaccesslistId: "string",
    scopetype: "string",
});
Copy
type: fortimanager:ObjectUserDeviceaccesslist
properties:
    adom: string
    defaultAction: string
    deviceLists:
        - action: string
          device: string
          id: 0
    dynamicSortSubtable: string
    name: string
    objectUserDeviceaccesslistId: string
    scopetype: string
Copy

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

Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
DefaultAction string
Accept or deny unknown/unspecified devices. Valid values: deny, accept.
DeviceLists List<ObjectUserDeviceaccesslistDeviceList>
Device-List. The structure of device_list block is documented below.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Name string
Device access list name.
ObjectUserDeviceaccesslistId string
an identifier for the resource with format {{name}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
DefaultAction string
Accept or deny unknown/unspecified devices. Valid values: deny, accept.
DeviceLists []ObjectUserDeviceaccesslistDeviceListArgs
Device-List. The structure of device_list block is documented below.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Name string
Device access list name.
ObjectUserDeviceaccesslistId string
an identifier for the resource with format {{name}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
defaultAction String
Accept or deny unknown/unspecified devices. Valid values: deny, accept.
deviceLists List<ObjectUserDeviceaccesslistDeviceList>
Device-List. The structure of device_list block is documented below.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name String
Device access list name.
objectUserDeviceaccesslistId String
an identifier for the resource with format {{name}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
defaultAction string
Accept or deny unknown/unspecified devices. Valid values: deny, accept.
deviceLists ObjectUserDeviceaccesslistDeviceList[]
Device-List. The structure of device_list block is documented below.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name string
Device access list name.
objectUserDeviceaccesslistId string
an identifier for the resource with format {{name}}.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
default_action str
Accept or deny unknown/unspecified devices. Valid values: deny, accept.
device_lists Sequence[ObjectUserDeviceaccesslistDeviceListArgs]
Device-List. The structure of device_list block is documented below.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name str
Device access list name.
object_user_deviceaccesslist_id str
an identifier for the resource with format {{name}}.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
defaultAction String
Accept or deny unknown/unspecified devices. Valid values: deny, accept.
deviceLists List<Property Map>
Device-List. The structure of device_list block is documented below.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name String
Device access list name.
objectUserDeviceaccesslistId String
an identifier for the resource with format {{name}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.

Outputs

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

Get an existing ObjectUserDeviceaccesslist 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?: ObjectUserDeviceaccesslistState, opts?: CustomResourceOptions): ObjectUserDeviceaccesslist
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        default_action: Optional[str] = None,
        device_lists: Optional[Sequence[ObjectUserDeviceaccesslistDeviceListArgs]] = None,
        dynamic_sort_subtable: Optional[str] = None,
        name: Optional[str] = None,
        object_user_deviceaccesslist_id: Optional[str] = None,
        scopetype: Optional[str] = None) -> ObjectUserDeviceaccesslist
func GetObjectUserDeviceaccesslist(ctx *Context, name string, id IDInput, state *ObjectUserDeviceaccesslistState, opts ...ResourceOption) (*ObjectUserDeviceaccesslist, error)
public static ObjectUserDeviceaccesslist Get(string name, Input<string> id, ObjectUserDeviceaccesslistState? state, CustomResourceOptions? opts = null)
public static ObjectUserDeviceaccesslist get(String name, Output<String> id, ObjectUserDeviceaccesslistState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectUserDeviceaccesslist    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
DefaultAction string
Accept or deny unknown/unspecified devices. Valid values: deny, accept.
DeviceLists List<ObjectUserDeviceaccesslistDeviceList>
Device-List. The structure of device_list block is documented below.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Name string
Device access list name.
ObjectUserDeviceaccesslistId string
an identifier for the resource with format {{name}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
DefaultAction string
Accept or deny unknown/unspecified devices. Valid values: deny, accept.
DeviceLists []ObjectUserDeviceaccesslistDeviceListArgs
Device-List. The structure of device_list block is documented below.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Name string
Device access list name.
ObjectUserDeviceaccesslistId string
an identifier for the resource with format {{name}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
defaultAction String
Accept or deny unknown/unspecified devices. Valid values: deny, accept.
deviceLists List<ObjectUserDeviceaccesslistDeviceList>
Device-List. The structure of device_list block is documented below.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name String
Device access list name.
objectUserDeviceaccesslistId String
an identifier for the resource with format {{name}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
defaultAction string
Accept or deny unknown/unspecified devices. Valid values: deny, accept.
deviceLists ObjectUserDeviceaccesslistDeviceList[]
Device-List. The structure of device_list block is documented below.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name string
Device access list name.
objectUserDeviceaccesslistId string
an identifier for the resource with format {{name}}.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
default_action str
Accept or deny unknown/unspecified devices. Valid values: deny, accept.
device_lists Sequence[ObjectUserDeviceaccesslistDeviceListArgs]
Device-List. The structure of device_list block is documented below.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name str
Device access list name.
object_user_deviceaccesslist_id str
an identifier for the resource with format {{name}}.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
defaultAction String
Accept or deny unknown/unspecified devices. Valid values: deny, accept.
deviceLists List<Property Map>
Device-List. The structure of device_list block is documented below.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name String
Device access list name.
objectUserDeviceaccesslistId String
an identifier for the resource with format {{name}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.

Supporting Types

ObjectUserDeviceaccesslistDeviceList
, ObjectUserDeviceaccesslistDeviceListArgs

Action string
Allow or block device. Valid values: deny, accept.
Device string
Firewall device or device group.
Id double
Entry ID.
Action string
Allow or block device. Valid values: deny, accept.
Device string
Firewall device or device group.
Id float64
Entry ID.
action String
Allow or block device. Valid values: deny, accept.
device String
Firewall device or device group.
id Double
Entry ID.
action string
Allow or block device. Valid values: deny, accept.
device string
Firewall device or device group.
id number
Entry ID.
action str
Allow or block device. Valid values: deny, accept.
device str
Firewall device or device group.
id float
Entry ID.
action String
Allow or block device. Valid values: deny, accept.
device String
Firewall device or device group.
id Number
Entry ID.

Import

ObjectUser DeviceAccessList can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectUserDeviceaccesslist:ObjectUserDeviceaccesslist labelname {{name}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

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.