Allow a set of ip addresses for a managed database using linode-cli


This command gives me the error: "Must be of type Array"


/usr/local/bin/linode-cli databases mysql-update --allow_list ${ips} 971

Where 971 is the instance id of a managed mysql instance.

Does anyone know the correct syntax for the "allow_list" parameter?



1 Reply

This looks like a snippet from a shell script. If so, then


can be replaced with (the far more readable, IMHO):


What I would do is block all traffic for port 3306 except for the 3 IP addresses listed (and localhost) in the firewall. Then, you don't have to use --allow-list at all and, IMHO, you have a much more foolproof solution (that is enforced at a much lower level than mysql).

You can do this with ipset using a single rule to allow the ipset entries. That way, if your list changes, you modify the ipset…not the firewall rule(s).

-- sw


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct