Skip to content

Creating a device #2

@anaspeople

Description

@anaspeople

I am trying to create a device (object) with it's mac address and then trying to add it to a device group.
I could not find any information related to it in the REST API documentation.
This can be done like this in the command line:

config user device
edit device_name
   set mac AA:AA:AA:AA:AA
   set type windows-pc
...
next
end

And then adding it to a group:

config user device-group
edit group_name
   set member "device_name"
   next
end
...

Also if a device has more than one mac (ethernet and wifi), two separate devices need to be created, link then and set one as default.

Can this be done adapting your code? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions