Returns the firewall port states for a specific Amazon Lightsail instance, the IP addresses allowed to connect to the instance through the ports, and the protocol.
lightsail_get_instance_port_states(instanceName)
A list with the following syntax:
list(
portStates = list(
list(
fromPort = 123,
toPort = 123,
protocol = "tcp"|"all"|"udp"|"icmp",
state = "open"|"closed",
cidrs = list(
"string"
),
cidrListAliases = list(
"string"
)
)
)
)
[required] The name of the instance for which to return firewall port states.
svc$get_instance_port_states(
instanceName = "string"
)