I am looking to use the REST API in order to delete items, and understand I need to use the .id field previously returned from a GET request in order to do so. My question is is this ID guaranteed to be the same for as long as the item exists? As far as I understand, when using regular RouterOS scripting, the IDs you get are only valid during the execution of that command or something.
@mrz is right about REST. And you’re right about the CLI’s “print” command - but those are “numbers=”, not “.id=”. To see the “*XX” form in .id in CLI, just add “show-ids” to any print to see same as REST.
/ip address print show-ids
The .id’s can be also be used in CLI with “*” any place the 1… based numbers would work.