v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14159650798.5 KB

Opens ports for a specific Amazon Lightsail instance, and specifies the IP addresses allowed to connect to the instance through the ports, and the protocol.

The OpenInstancePublicPorts action supports tag-based access control via resource tags applied to the resource identified by instanceName. For more information, see the Amazon Lightsail Developer Guide.

post/#X-Amz-Target=Lightsail_20161128.OpenInstancePublicPorts

Headers

X-Amz-Target'Lightsail_20161128.OpenInstancePublicPorts' required

Request body

instanceNamestring required

The name of the instance for which to open ports.

Response

Success