DynamicPortForwardingSessionTargetResourceDetails

class oci.bastion.models.DynamicPortForwardingSessionTargetResourceDetails(**kwargs)

Bases: oci.bastion.models.target_resource_details.TargetResourceDetails

Details about a dynamic port forwarding session for a target subnet.

Attributes

SESSION_TYPE_DYNAMIC_PORT_FORWARDING str(object=’’) -> str
SESSION_TYPE_MANAGED_SSH str(object=’’) -> str
SESSION_TYPE_PORT_FORWARDING str(object=’’) -> str
session_type [Required] Gets the session_type of this TargetResourceDetails.

Methods

__init__(**kwargs) Initializes a new DynamicPortForwardingSessionTargetResourceDetails object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
SESSION_TYPE_DYNAMIC_PORT_FORWARDING = 'DYNAMIC_PORT_FORWARDING'
SESSION_TYPE_MANAGED_SSH = 'MANAGED_SSH'
SESSION_TYPE_PORT_FORWARDING = 'PORT_FORWARDING'
__init__(**kwargs)

Initializes a new DynamicPortForwardingSessionTargetResourceDetails object with values from keyword arguments. The default value of the session_type attribute of this class is DYNAMIC_PORT_FORWARDING and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:session_type (str) – The value to assign to the session_type property of this DynamicPortForwardingSessionTargetResourceDetails. Allowed values for this property are: “MANAGED_SSH”, “PORT_FORWARDING”, “DYNAMIC_PORT_FORWARDING”
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

session_type

[Required] Gets the session_type of this TargetResourceDetails. The Bastion service recognizes three types of sessions, managed SSH sessions, SSH port forwarding sessions, and Dynamic SSH port forwarding sessions. Managed SSH sessions require that the target resource has an OpenSSH server and the Oracle Cloud Agent both running.

Allowed values for this property are: “MANAGED_SSH”, “PORT_FORWARDING”, “DYNAMIC_PORT_FORWARDING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The session_type of this TargetResourceDetails.
Return type:str