Put Instance Public Ports

POST {{aws_lightsail_base_url}}/?instanceName&portInfos&Version=2016-11-28

Request Params

KeyDatatypeRequiredDescription
instanceNamenullThe Lightsail instance name of the public port(s) you are setting.
portInfosnullSpecifies information about the public port(s).
VersionstringThe version of the API.

Request Body

{"instanceName"=>"string", "portInfos"=>[{"fromPort"=>42, "protocol"=>"string", "toPort"=>42}]}