dcloud rds instances set-public-accessTurn public access on or off; the firewall changes at once, the address stays
IAM rds:ModifyDBInstanceChanges stateAsks before it deletes (-y skips)
Single-node databases only (a cluster answers 409). Clients inside the VPC keep working either way. Turning it off closes the client ports to the internet; the platform keeps its own access for backups and the console.
Synopsis
dcloud rds instances set-public-access id --publicly-accessible publiclyAccessibleArguments
<id>Requiredstring
Also accepted as
--id. Constraints: 3-64 chars, /^(?!ewdoc-)[a-z0-9-]+$/
Flags
--publicly-accessibleRequiredboolean (--publicly-accessible / --no-publicly-accessible)
true: the database answers on the internet; false: only its network and the platform
Example
dcloud rds instances set-public-access id --publicly-accessibleGenerated from the API description, the same one the API checks requests against and the CLI is built from.