v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14159650798.5 KB

Closes ports for a specific Amazon Lightsail instance.

The CloseInstancePublicPorts 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.CloseInstancePublicPorts

Headers

X-Amz-Target'Lightsail_20161128.CloseInstancePublicPorts' required

Request body

instanceNamestring required

The name of the instance for which to close ports.

Response

Success