protect command marks all incoming database objects as protected.
Protected objects will not be cleaned up even if they are marked for cleanup.
This command assumes that all incoming elements are either objects coming from a query or object IDs. All objects coming from a query will have a property
id. This command will return the updated object.
Query for and protect instances that are tagged with 'build node'
> query is(instance) and tags.job=="build node" | protect | list id, /metadata
Protect a list of specific resources
> json ["ins123"] | protect | list id, /metadata