Skip to content

Get Instance Port States

lightsail_get_instance_port_states R Documentation

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

Description

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.

Usage

lightsail_get_instance_port_states(instanceName)

Arguments

instanceName

[required] The name of the instance for which to return firewall port states.

Value

A list with the following syntax:

list(
  portStates = list(
    list(
      fromPort = 123,
      toPort = 123,
      protocol = "tcp"|"all"|"udp"|"icmp"|"icmpv6",
      state = "open"|"closed",
      cidrs = list(
        "string"
      ),
      ipv6Cidrs = list(
        "string"
      ),
      cidrListAliases = list(
        "string"
      )
    )
  )
)

Request syntax

svc$get_instance_port_states(
  instanceName = "string"
)